/** @param command */ private void changeSelection(String command) { setProperty("selection_method", command); // and update the selection method in the NodeMouseMotionListener freemind.controller.NodeMouseMotionListener.updateSelectionMethod(c); String statusBarString = c.getResourceString(command); if (statusBarString != null) // should not happen c.getFrame().out(statusBarString); }
public void actionPerformed(ActionEvent e) { try { c.getFrame().openDocument(new URL("http://freemind.sourceforge.net/faq.html")); } catch (MalformedURLException ex) { c.errorMessage(c.getResourceString("url_error") + "\n" + ex); } catch (Exception ex) { c.errorMessage(ex); } }
BackgroundAction(Controller controller, Icon icon) { super(controller.getResourceString("background"), icon); Controller.addPropertyChangeListener( new FreemindPropertyListener() { public void propertyChanged(String propertyName, String newValue, String oldValue) { if (propertyName.equals(FreeMind.RESOURCES_BACKGROUND_COLOR)) { getModel().setBackgroundColor(Tools.xmlToColor(newValue)); } } }); }
public EdgeAdapter(MindMapNode target, FreeMindMain frame) { super(target, frame); NORMAL_WIDTH = WIDTH_PARENT; if (listener == null) { listener = new EdgeAdapterListener(); Controller.addPropertyChangeListener(listener); } }
/** Called whenever this mode is chosen in the program. (updates Actions etc.) */ public void activate() { if (!isRunning) { getDefaultModeController().newMap(); isRunning = true; } else { c.getMapModuleManager().changeToMapOfMode(this); } }
PrintAction(Controller controller, boolean isDlg) { super( controller.getResourceString("print"), new ImageIcon(getResource("images/fileprint.png"))); this.controller = controller; setEnabled(false); this.isDlg = isDlg; }
QuitAction(Controller controller) { super(controller.getResourceString("quit")); }
CloseAction(Controller controller) { super(controller.getResourceString("close")); this.controller = controller; }
OpenFAQAction(Controller controller) { super( controller.getResourceString("FAQ"), new ImageIcon(controller.getResource("images/Link.png"))); c = controller; }
public void actionPerformed(ActionEvent e) { JOptionPane.showMessageDialog( getFrame().getViewport(), controller.getResourceString("about_text") + FreeMind.version); }
OptionSelectionMechanismAction(Controller controller) { c = controller; Controller.addPropertyChangeListener(this); }
public void actionPerformed(ActionEvent e) { JOptionPane.showMessageDialog(getView(), controller.getResourceString("license_text")); }
PageAction(Controller controller) { super(controller.getResourceString("page")); this.controller = controller; setEnabled(false); }
HistoryNextMapAction(Controller controller) { super( controller.getResourceString("next_map"), new ImageIcon(getResource("images/Forward24.gif"))); setEnabled(false); }
public ZoomOutAction(Controller controller) { super(controller.getResourceString("zoom_out")); }
public void actionPerformed(ActionEvent e) { controller.close(false); }
public ZoomInAction(Controller controller) { super(controller.getResourceString("zoom_in")); }
ToggleToolbarAction(Controller controller) { super(controller.getResourceString("toggle_toolbar")); setEnabled(true); }
MoveToRootAction(Controller controller) { super(controller.getResourceString("move_to_root")); setEnabled(false); }
NavigationNextMapAction(Controller controller) { super( controller.getResourceString("next_map"), new ImageIcon(getResource("images/1rightarrow.png"))); setEnabled(false); }
NavigationPreviousMapAction(Controller controller) { super( controller.getResourceString("previous_map"), new ImageIcon(getResource("images/1leftarrow.png"))); setEnabled(false); }
AboutAction(Controller controller) { super(controller.getResourceString("about")); this.controller = controller; }
OptionAntialiasAction(Controller controller) { Controller.addPropertyChangeListener(this); }
public PropertyAction(Controller controller) { super(controller.getResourceString("property_dialog")); // TODO Auto-generated constructor stub this.controller = controller; }
HistoryPreviousMapAction(Controller controller) { super( controller.getResourceString("previous_map"), new ImageIcon(getResource("images/Back24.gif"))); setEnabled(false); }
public FreeMindMain getFrame() { return c.getFrame(); }
DocumentationAction(Controller controller) { super(controller.getResourceString("documentation")); this.controller = controller; }