Codota Logo
Controller.getMap
Code IndexAdd Codota 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)

  • Common ways to obtain Controller
private void myMethod () {
Controller c =
  • Codota IconController.getCurrentController()
  • Smart code suggestions by Codota
}
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 actionPerformed(ActionEvent e) {
  final NodeModel rootNode = Controller.getCurrentController().getMap().getRootNode();
  final NodeModel node = rootNode;
  setAlwaysUnfoldedNodeFlags(node);
}
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

  @Override
  public void setEnabled() {
    final Controller controller = Controller.getCurrentController();
    MapModel map = controller.getMap();
    setEnabled(map != null && ! map.isSaved());
  }
}
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 commit() {
  final MapModel map = getController().getMap();
  final IUndoHandler undoHandler = map.getExtension(IUndoHandler.class);
  undoHandler.commit();
}
origin: freeplane/freeplane

  protected String getAttributeViewType() {
    final MapModel map = Controller.getCurrentController().getMap();
    return ModelessAttributeController.getController().getAttributeViewType(map);
  }
}
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(ActionEvent e) {
  final NodeModel rootNode = Controller.getCurrentController().getMap().getRootNode();
  final NodeModel node = rootNode;
  removeAlwaysUnfoldedNodeFlags(node);
}
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

  @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) {
  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

  • Finding current android device location
  • scheduleAtFixedRate (ScheduledExecutorService)
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now