Search in sources :

Example 1 with SummaryGroupEdgeListAdder

use of org.freeplane.features.map.mindmapmode.SummaryGroupEdgeListAdder in project freeplane by freeplane.

the class MClipboardController method cut.

Transferable cut(final List<NodeModel> collection) {
    Controller.getCurrentModeController().getMapController().sortNodesByDepth(collection);
    final MindMapNodesSelection transferable = copy(new SummaryGroupEdgeListAdder(collection).addSummaryEdgeNodes(), true);
    ((MMapController) Controller.getCurrentModeController().getMapController()).deleteNodes(collection);
    setClipboardContents(transferable);
    return transferable;
}
Also used : MMapController(org.freeplane.features.map.mindmapmode.MMapController) SummaryGroupEdgeListAdder(org.freeplane.features.map.mindmapmode.SummaryGroupEdgeListAdder) MindMapNodesSelection(org.freeplane.features.clipboard.MindMapNodesSelection)

Example 2 with SummaryGroupEdgeListAdder

use of org.freeplane.features.map.mindmapmode.SummaryGroupEdgeListAdder in project freeplane by freeplane.

the class MClipboardController method copy.

@Override
public Transferable copy(IMapSelection selection) {
    final List<NodeModel> collection = selection.getSortedSelection(true);
    final MindMapNodesSelection transferable = copy(new SummaryGroupEdgeListAdder(collection).addSummaryEdgeNodes(), false);
    transferable.setNodeObjects(collection, false);
    return transferable;
}
Also used : NodeModel(org.freeplane.features.map.NodeModel) SummaryGroupEdgeListAdder(org.freeplane.features.map.mindmapmode.SummaryGroupEdgeListAdder) MindMapNodesSelection(org.freeplane.features.clipboard.MindMapNodesSelection)

Aggregations

MindMapNodesSelection (org.freeplane.features.clipboard.MindMapNodesSelection)2 SummaryGroupEdgeListAdder (org.freeplane.features.map.mindmapmode.SummaryGroupEdgeListAdder)2 NodeModel (org.freeplane.features.map.NodeModel)1 MMapController (org.freeplane.features.map.mindmapmode.MMapController)1