Search in sources :

Example 1 with INodeView

use of org.freeplane.features.map.INodeView in project freeplane by freeplane.

the class LatexNodeHook method add.

@Override
public void add(final NodeModel node, final IExtension extension) {
    final LatexExtension latexExtension = (LatexExtension) extension;
    for (NodeModel nodeClone : node.allClones()) {
        for (final INodeView iNodeView : nodeClone.getViewers()) {
            final NodeView view = (NodeView) iNodeView;
            createViewer(latexExtension, view);
        }
    }
    super.add(node, extension);
}
Also used : NodeModel(org.freeplane.features.map.NodeModel) INodeView(org.freeplane.features.map.INodeView) NodeView(org.freeplane.view.swing.map.NodeView) INodeView(org.freeplane.features.map.INodeView)

Example 2 with INodeView

use of org.freeplane.features.map.INodeView in project freeplane by freeplane.

the class ViewerController method add.

@Override
protected void add(final NodeModel node, final IExtension extension) {
    final ExternalResource preview = (ExternalResource) extension;
    for (NodeModel nodeClone : node.allClones()) {
        for (final INodeView iNodeView : nodeClone.getViewers()) {
            final NodeView view = (NodeView) iNodeView;
            createViewer(preview, view);
        }
    }
    super.add(node, extension);
}
Also used : NodeModel(org.freeplane.features.map.NodeModel) NodeView(org.freeplane.view.swing.map.NodeView) INodeView(org.freeplane.features.map.INodeView) INodeView(org.freeplane.features.map.INodeView)

Aggregations

INodeView (org.freeplane.features.map.INodeView)2 NodeModel (org.freeplane.features.map.NodeModel)2 NodeView (org.freeplane.view.swing.map.NodeView)2