コード例 #1
0
 PrintAction(Controller controller, boolean isDlg) {
   super(
       controller.getResourceString("print"),
       new ImageIcon(getResource("images/fileprint.png")));
   this.controller = controller;
   setEnabled(false);
   this.isDlg = isDlg;
 }
コード例 #2
0
 /** @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);
 }
コード例 #3
0
 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);
   }
 }
コード例 #4
0
    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));
              }
            }
          });
    }
コード例 #5
0
 public PropertyAction(Controller controller) {
   super(controller.getResourceString("property_dialog"));
   // TODO Auto-generated constructor stub
   this.controller = controller;
 }
コード例 #6
0
 public ZoomOutAction(Controller controller) {
   super(controller.getResourceString("zoom_out"));
 }
コード例 #7
0
 AboutAction(Controller controller) {
   super(controller.getResourceString("about"));
   this.controller = controller;
 }
コード例 #8
0
 QuitAction(Controller controller) {
   super(controller.getResourceString("quit"));
 }
コード例 #9
0
 NavigationNextMapAction(Controller controller) {
   super(
       controller.getResourceString("next_map"),
       new ImageIcon(getResource("images/1rightarrow.png")));
   setEnabled(false);
 }
コード例 #10
0
 NavigationPreviousMapAction(Controller controller) {
   super(
       controller.getResourceString("previous_map"),
       new ImageIcon(getResource("images/1leftarrow.png")));
   setEnabled(false);
 }
コード例 #11
0
 HistoryNextMapAction(Controller controller) {
   super(
       controller.getResourceString("next_map"),
       new ImageIcon(getResource("images/Forward24.gif")));
   setEnabled(false);
 }
コード例 #12
0
 HistoryPreviousMapAction(Controller controller) {
   super(
       controller.getResourceString("previous_map"),
       new ImageIcon(getResource("images/Back24.gif")));
   setEnabled(false);
 }
コード例 #13
0
 public void actionPerformed(ActionEvent e) {
   JOptionPane.showMessageDialog(getView(), controller.getResourceString("license_text"));
 }
コード例 #14
0
 public void actionPerformed(ActionEvent e) {
   JOptionPane.showMessageDialog(
       getFrame().getViewport(), controller.getResourceString("about_text") + FreeMind.version);
 }
コード例 #15
0
 OpenFAQAction(Controller controller) {
   super(
       controller.getResourceString("FAQ"),
       new ImageIcon(controller.getResource("images/Link.png")));
   c = controller;
 }
コード例 #16
0
 MoveToRootAction(Controller controller) {
   super(controller.getResourceString("move_to_root"));
   setEnabled(false);
 }
コード例 #17
0
 ToggleToolbarAction(Controller controller) {
   super(controller.getResourceString("toggle_toolbar"));
   setEnabled(true);
 }
コード例 #18
0
 CloseAction(Controller controller) {
   super(controller.getResourceString("close"));
   this.controller = controller;
 }
コード例 #19
0
 public ZoomInAction(Controller controller) {
   super(controller.getResourceString("zoom_in"));
 }
コード例 #20
0
 PageAction(Controller controller) {
   super(controller.getResourceString("page"));
   this.controller = controller;
   setEnabled(false);
 }
コード例 #21
0
 DocumentationAction(Controller controller) {
   super(controller.getResourceString("documentation"));
   this.controller = controller;
 }