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);
}
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);
}
}
}
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();
}
}
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();
}
}
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();
}
Aggregations