Search in sources :

Example 6 with MNoteController

use of org.freeplane.features.note.mindmapmode.MNoteController in project freeplane by freeplane.

the class NodeProxy method setNoteText.

// Node: R/W
public void setNoteText(final String html) {
    final MNoteController noteController = (MNoteController) NoteController.getController();
    noteController.setNoteText(getDelegate(), html);
}
Also used : MNoteController(org.freeplane.features.note.mindmapmode.MNoteController)

Example 7 with MNoteController

use of org.freeplane.features.note.mindmapmode.MNoteController in project freeplane by freeplane.

the class MLogicalStyleController method copyStyleExtensions.

public void copyStyleExtensions(final IStyle style, final NodeModel target) {
    final MTextController textController = MTextController.getController();
    final MapStyleModel extension = MapStyleModel.getExtension(target.getMap());
    final NodeModel styleNode = extension.getStyleNode(style);
    if (styleNode != null) {
        final MAttributeController attributeController = MAttributeController.getController();
        attributeController.copyAttributesToNode(styleNode, target);
        final String detailTextText = DetailTextModel.getDetailTextText(styleNode);
        if (detailTextText != null)
            textController.setDetails(target, detailTextText);
        final String noteText = NoteModel.getNoteText(styleNode);
        if (noteText != null) {
            MNoteController noteController = (MNoteController) NoteController.getController();
            noteController.setNoteText(target, noteText);
        }
    }
}
Also used : MNoteController(org.freeplane.features.note.mindmapmode.MNoteController) NodeModel(org.freeplane.features.map.NodeModel) MAttributeController(org.freeplane.features.attribute.mindmapmode.MAttributeController) MapStyleModel(org.freeplane.features.styles.MapStyleModel) MTextController(org.freeplane.features.text.mindmapmode.MTextController)

Example 8 with MNoteController

use of org.freeplane.features.note.mindmapmode.MNoteController in project freeplane by freeplane.

the class MModeController method startup.

/**
 * This method is called after and before a change of the map mapView. Use
 * it to perform the actions that cannot be performed at creation time.
 */
@Override
public void startup() {
    super.startup();
    final NoteController noteController = NoteController.getController();
    if (noteController != null) {
        ((MNoteController) noteController).startupController();
    }
}
Also used : MNoteController(org.freeplane.features.note.mindmapmode.MNoteController) MNoteController(org.freeplane.features.note.mindmapmode.MNoteController) NoteController(org.freeplane.features.note.NoteController)

Example 9 with MNoteController

use of org.freeplane.features.note.mindmapmode.MNoteController in project freeplane by freeplane.

the class MModeController method shutdown.

@Override
public void shutdown() {
    super.shutdown();
    final MNoteController noteController = (MNoteController) NoteController.getController();
    if (noteController != null) {
        noteController.shutdownController();
    }
}
Also used : MNoteController(org.freeplane.features.note.mindmapmode.MNoteController)

Example 10 with MNoteController

use of org.freeplane.features.note.mindmapmode.MNoteController in project freeplane by freeplane.

the class ShowNotesInMapAction method actionPerformed.

public void actionPerformed(ActionEvent e) {
    final MapModel map = Controller.getCurrentController().getMap();
    final MNoteController noteController = (MNoteController) NoteController.getController();
    noteController.setShowNotesInMap(map, !NoteController.getController().showNotesInMap(map));
    final IMapSelection selection = Controller.getCurrentController().getSelection();
    selection.keepNodePosition(selection.getSelected(), 0.0f, 0.0f);
    setSelected();
}
Also used : MNoteController(org.freeplane.features.note.mindmapmode.MNoteController) IMapSelection(org.freeplane.features.map.IMapSelection) MapModel(org.freeplane.features.map.MapModel)

Aggregations

MNoteController (org.freeplane.features.note.mindmapmode.MNoteController)10 MAttributeController (org.freeplane.features.attribute.mindmapmode.MAttributeController)4 NoteController (org.freeplane.features.note.NoteController)4 TextController (org.freeplane.features.text.TextController)4 MTextController (org.freeplane.features.text.mindmapmode.MTextController)4 AttributeController (org.freeplane.features.attribute.AttributeController)3 CloudController (org.freeplane.features.cloud.CloudController)3 MCloudController (org.freeplane.features.cloud.mindmapmode.MCloudController)3 EdgeController (org.freeplane.features.edge.EdgeController)3 MEdgeController (org.freeplane.features.edge.mindmapmode.MEdgeController)3 IconController (org.freeplane.features.icon.IconController)3 MIconController (org.freeplane.features.icon.mindmapmode.MIconController)3 LinkController (org.freeplane.features.link.LinkController)3 MLinkController (org.freeplane.features.link.mindmapmode.MLinkController)3 MMapController (org.freeplane.features.map.mindmapmode.MMapController)3 Controller (org.freeplane.features.mode.Controller)3 NodeStyleController (org.freeplane.features.nodestyle.NodeStyleController)3 MNodeStyleController (org.freeplane.features.nodestyle.mindmapmode.MNodeStyleController)3 SpellCheckerController (org.freeplane.features.spellchecker.mindmapmode.SpellCheckerController)3 LogicalStyleController (org.freeplane.features.styles.LogicalStyleController)3