congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Controller.getExtension
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: freeplane/freeplane

public static ScannerController getController(Controller controller) {
  return (ScannerController) controller.getExtension(ScannerController.class);
}

origin: freeplane/freeplane

public static FilterController getController(Controller controller) {
  return controller.getExtension(FilterController.class);
}
origin: freeplane/freeplane

public static FormatController getController(Controller controller) {
  return (FormatController) controller.getExtension(FormatController.class);
}

origin: freeplane/freeplane

public static ModelessAttributeController getController() {
  Controller controller = Controller.getCurrentController();
  return (ModelessAttributeController) controller.getExtension(ModelessAttributeController.class);
}
origin: freeplane/freeplane

public static PrintController getController() {
  Controller controller = Controller.getCurrentController();
  return controller.getExtension(PrintController.class);
}
origin: freeplane/freeplane

public static HelpController getController() {
  return Controller.getCurrentController().getExtension(HelpController.class);
}
origin: freeplane/freeplane

public static void exec(final String string, boolean waitFor) throws IOException {
  IControllerExecuteExtension ext = Controller.getCurrentController().getExtension(IControllerExecuteExtension.class);
  if(ext == null) {
    ext = Controller.getCurrentController().getDefaultExecuter();
  }
  
  ext.exec(string, waitFor);
}

origin: freeplane/freeplane

public static void exec(final String[] command, boolean waitFor) throws IOException {
  IControllerExecuteExtension ext = Controller.getCurrentController().getExtension(IControllerExecuteExtension.class);
  if(ext == null) {
    ext = Controller.getCurrentController().getDefaultExecuter();
  }
  
  ext.exec(command, waitFor);
}
origin: freeplane/freeplane

public static void install() {
  final Controller controller = Controller.getCurrentController();
  final FilterController extension = new FilterController();
  controller.addExtension(FilterController.class, extension);
  controller.getExtension(HighlightController.class).addNodeHighlighter(new NodeHighlighter() {
    @Override
    public boolean isNodeHighlighted(NodeModel node, boolean isPrinting) {
      return !isPrinting && FilterController.getController(controller).isNodeHighlighted(node);
    }
    @Override
    public void configure(Graphics2D g, boolean isPrinting) {
      g.setColor(HIGHLIGHT_COLOR);
    }
  });
}
origin: freeplane/freeplane

for(PatternFormat f : Controller.getCurrentController().getExtension(FormatController.class).getSpecialFormats()){
  if (pattern.equals(f.getPattern())) {
    return f;
origin: freeplane/freeplane

  @Override
  public void hierarchyChanged(HierarchyEvent e) {
    menuBar.removeHierarchyListener(this);
    final FilterController filterController = Controller.getCurrentController().getExtension(FilterController.class);
    if(filterController != null)
      MnemonicSetter.INSTANCE.setComponentMnemonics(menuBar,
        filterController.getQuickEditor());
    else
      MnemonicSetter.INSTANCE.setComponentMnemonics(menuBar);
  }
});
origin: freeplane/freeplane

public void installExtension(final ModeController modeController) {
  //LattexNodeHook -> Menu insert
  final LatexNodeHook nodeHook = new LatexNodeHook();
  modeController.getExtension(TextController.class).addTextTransformer(//
      new ConditionalContentTransformer(new LatexRenderer(), Activator.TOGGLE_PARSE_LATEX));
  modeController.getController().getExtension(FormatController.class).addPatternFormat(new LatexFormat());
  modeController.getController().getExtension(FormatController.class).addPatternFormat(new UnparsedLatexFormat());
  if (modeController.getModeName().equals("MindMap")) {
    modeController.addAction(new InsertLatexAction(nodeHook));
    modeController.addAction(new EditLatexAction(nodeHook));
    modeController.addAction(new DeleteLatexAction(nodeHook));
    addPreferencesToOptionPanel();
  }
}
origin: freeplane/freeplane

private void paintDecoration(final Graphics2D g) {
  final PaintingMode paintingMode = map.getPaintingMode();
  if(! (getMainView() != null &&
      ( paintingMode.equals(PaintingMode.NODES) && !isSelected() || paintingMode.equals(PaintingMode.SELECTED_NODES) && isSelected())
      && isContentVisible()))
    return;
  final Graphics2D g2 = g;
  final ModeController modeController = map.getModeController();
  final Object renderingHint = g2.getRenderingHint(RenderingHints.KEY_ANTIALIASING);
  g2.setStroke(MainView.DEF_STROKE);
  modeController.getController().getMapViewManager().setEdgesRenderingHint(g2);
  final Point origin = new Point();
  UITools.convertPointToAncestor(mainView, origin, this);
  g.translate(origin.x, origin.y);
  mainView.paintDecoration(this, g);
  g.translate(-origin.x, -origin.y);
  final HighlightController highlightController = getMap().getModeController().getController().getExtension(HighlightController.class);
  final List<NodeHighlighter> highlighters = highlightController.getHighlighters(model, map.isPrinting());
  int margin = HIGHLIGHTED_NODE_ARC_MARGIN;
  for(NodeHighlighter highlighter : highlighters){
    margin += HIGHLIGHTED_NODE_ARC_MARGIN;
    highlightNode(g, highlighter, margin);
  }
  g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, renderingHint);
}
origin: freeplane/freeplane

static public void install(final ModeController modeController) {
  final Controller controller = modeController.getController();
  final NodeHistory history = (NodeHistory) controller.getExtension(NodeHistory.class);
  modeController.getMapController().addNodeSelectionListener(history.getMapSelectionListener());
  LinkController.getController(modeController).addNodeSelectionListener(history.getLinkSelectionListener());
  history.backAction = new BackAction(controller, history);
  modeController.addAction(history.backAction);
  history.forwardAction = new ForwardAction(controller, history);
  modeController.addAction(history.forwardAction);
}
origin: freeplane/freeplane

presentationController.addMapSelectionListener();
new PresentationBuilder().register(modeController.getMapController(), presentationController);
HighlightController highlightController = modeController.getController().getExtension(HighlightController.class);
final PresentationState presentationState = presentationController.presentationState;
new PresentationPngExporter.ActionInstaller().installActions(modeController, presentationState);
org.freeplane.features.modeControllergetExtension

Popular methods of Controller

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

Popular in Java

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • compareTo (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • CodeWhisperer 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