Tabnine Logo
Controller.getMap
Code IndexAdd Tabnine to your IDE (free)

How to use
getMap
method
in
org.freeplane.features.mode.Controller

Best Java code snippets using org.freeplane.features.mode.Controller.getMap (Showing top 20 results out of 315)

origin: freeplane/freeplane

public RenderedImage createBufferedImage(MapModel map) {
  final Controller controller = Controller.getCurrentController();
  if(! map.equals(controller.getMap())) {
    return null;
  }
  return controller.getMapViewManager().createImage(imageResolutionInDpi);
}
origin: freeplane/freeplane

void redo() {
  if (!filters.hasNext()) {
    return;
  }
  Controller controller = Controller.getCurrentController();
  final MapModel map = controller.getMap();
  final Filter next = filters.next();
  next.applyFilter(this, map, true);
}
origin: freeplane/freeplane

public ListModel getFilteredProperties() {
  final AttributeRegistry registry = AttributeRegistry.getRegistry(Controller.getCurrentController().getMap());
  final DefaultListModel anyAttributeList = new DefaultListModel();
  anyAttributeList.addElement(ANY_ATTRIBUTE_NAME_OR_VALUE_OBJECT);
  if (registry != null) {
    return new DoubleListModel(anyAttributeList, registry.getListBoxModel());
  }
  return anyAttributeList;
}
origin: freeplane/freeplane

public RenderedImage createBufferedImage(MapModel map, final Dimension slideSize, NodeModel placedNode, NodePosition placedNodePosition) {
  final Controller controller = Controller.getCurrentController();
  if(! map.equals(controller.getMap())) {
    return null;
  }
  return controller.getMapViewManager().createImage(slideSize, placedNode, placedNodePosition, imageResolutionInDpi);
}
origin: freeplane/freeplane

  @Override
  public void setEnabled() {
    final Controller controller = Controller.getCurrentController();
    MapModel map = controller.getMap();
    setEnabled(map != null && ! map.isSaved());
  }
}
origin: freeplane/freeplane

public void select(final NodeModel node) {
  final MapModel map = node.getMap();
  final Controller controller = Controller.getCurrentController();
  if (! map.equals(controller.getMap())){
    controller.getMapViewManager().changeToMap(map);
  }
  displayNode(node);
  controller.getSelection().selectAsTheOnlyOneSelected(node);
}
origin: freeplane/freeplane

  protected String getAttributeViewType() {
    final MapModel map = Controller.getCurrentController().getMap();
    return ModelessAttributeController.getController().getAttributeViewType(map);
  }
}
origin: freeplane/freeplane

  @Override
  public void startup() {
    final Controller controller = getController();
    controller.getMapViewManager().changeToMode(MODENAME);
    if (controller.getMap() == null) {
      ((FMapController) getMapController()).newMap(File.listRoots());
    }
    super.startup();
  }
}
origin: freeplane/freeplane

@Override
public void actionPerformed(ActionEvent e) {
  final NodeModel rootNode = Controller.getCurrentController().getMap().getRootNode();
  final NodeModel node = rootNode;
  setAlwaysUnfoldedNodeFlags(node);
}
origin: freeplane/freeplane

@Override
public void commit() {
  final MapModel map = getController().getMap();
  final IUndoHandler undoHandler = map.getExtension(IUndoHandler.class);
  undoHandler.commit();
}
origin: freeplane/freeplane

@Override
public void actionPerformed(ActionEvent e) {
  final NodeModel rootNode = Controller.getCurrentController().getMap().getRootNode();
  final NodeModel node = rootNode;
  removeAlwaysUnfoldedNodeFlags(node);
}
origin: freeplane/freeplane

@Override
public void startTransaction() {
  final MapModel map = getController().getMap();
  final IUndoHandler undoHandler = map.getExtension(IUndoHandler.class);
  undoHandler.startTransaction();
}
origin: freeplane/freeplane

  @Override
  public void actionPerformed(final ActionEvent e) {
    final AttributeTable table = AttributePopupMenu.this.table;
    final URI relative = ((MFileManager) UrlManager.getController())
    .getLinkByFileChooser(Controller.getCurrentController().getMap());
    if (relative != null) {
      table.setValueAt(relative, row, col);
    }
  }
});
origin: freeplane/freeplane

  public void actionPerformed(final ActionEvent e) {
    final Controller controller = Controller.getCurrentController();
    final MapStyle mapStyle = controller.getModeController().getExtension(MapStyle.class);
    final MapModel model = controller.getMap();
    mapStyle.setProperty(model, MapStyle.RESOURCES_BACKGROUND_IMAGE, null);
  }
}
origin: freeplane/freeplane

public void actionPerformed(final ActionEvent e) {
  if(exp == null){
    final ExportController exportController = ExportController.getContoller();
    exp = exportController.createMapExportDialog();
  }
  final MapModel map = Controller.getCurrentController().getMap();
  if (map == null) {
    return;
  }
  exp.export(UITools.getCurrentRootComponent(), Collections.singletonList(map.getRootNode()));
}
origin: freeplane/freeplane

private SortedComboBoxModel aliases() {
  final MapModel map = Controller.getCurrentController().getMap();
  Collection<NodeAlias> aliases = NodeAliases.of(map).aliases();
  SortedComboBoxModel box = new SortedComboBoxModel();
  for(NodeAlias a : aliases)
    box.add(a.value);
  return box;
}

origin: freeplane/freeplane

public void act() {
  model.setEquation(newEquation);
  final MapModel map = Controller.getCurrentModeController().getController().getMap();
  Controller.getCurrentModeController().getMapController().setSaved(map, false);
}
origin: freeplane/freeplane

public void act() {
  extension.updateLocation(newlyChoosenLocation);
  extension.updateZoom(newlyChoosenZoom);
  final MapModel map = Controller.getCurrentModeController()
      .getController().getMap();
  Controller.getCurrentModeController().getMapController()
      .setSaved(map, false);
}
origin: freeplane/freeplane

public void actionPerformed(final ActionEvent e) {
  if (frame == null) {
    frame = UITools.getCurrentFrame();
  }
  if (getAttributeDialog().isVisible() == false && Controller.getCurrentController().getMap() != null) {
    getAttributeDialog().pack();
    getAttributeDialog().show();
  }
}
origin: freeplane/freeplane

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();
}
org.freeplane.features.modeControllergetMap

Popular methods of Controller

  • getCurrentController
  • getCurrentModeController
  • getMapViewManager
  • getModeController
  • getViewController
  • getResourceController
  • getSelection
  • addApplicationLifecycleListener
  • addOptionValidator
  • getExtension
  • <init>
  • addAction
  • <init>,
  • addAction,
  • addActionIfNotAlreadySet,
  • addExtension,
  • addMapLifeCycleListener,
  • addModeController,
  • close,
  • closeAllMaps,
  • exec

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • addToBackStack (FragmentTransaction)
  • putExtra (Intent)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Runner (org.openjdk.jmh.runner)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now