Package org.freeplane.features.styles

Examples of org.freeplane.features.styles.AutomaticLayoutController


    UITools.setScrollbarIncrement(styleScrollPane);
    final JComponent tabs = (JComponent) modeController.getUserInputListenerFactory().getToolBar("/format").getComponent(1);
    tabs.add(TextUtils.getText("format_panel"), styleScrollPane);
    new AttributePanelManager(modeController);
    new HierarchicalIcons();
    new AutomaticLayoutController();
    new BlinkingNodeHook();
    SummaryNode.install();
    AlwaysUnfoldedNode.install();
    FreeNode.install();
    new CreationModificationPlugin();
View Full Code Here


       mAutomaticLayoutComboBox.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          if(internalChange)
            return;
          final ModeController modeController = Controller.getCurrentModeController();
          AutomaticLayoutController al = modeController.getExtension(AutomaticLayoutController.class);
          NamedObject selectedItem = (NamedObject)mAutomaticLayoutComboBox.getSelectedItem();
          al.undoableDeactivateHook(Controller.getCurrentController().getMap().getRootNode());
          if(!selectedItem.equals(AUTOMATIC_LAYOUT_DISABLED)){
            al.undoableActivateHook(Controller.getCurrentController().getMap().getRootNode(), (AutomaticLayout) selectedItem.getObject());
          }
        }
      });
    }
      final String label = TextUtils.getText("AutomaticLayoutAction.text");
      rightBuilder.append(new JLabel(label), 5);
      rightBuilder.append(mAutomaticLayoutComboBox);
      rightBuilder.nextLine();
    }
    {
      if(mAutomaticEdgeColorCheckBox == null){
        mAutomaticEdgeColorCheckBox = new JCheckBox();
        mAutomaticEdgeColorCheckBox.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            final ModeController modeController = Controller.getCurrentModeController();
            AutomaticEdgeColorHook al = (AutomaticEdgeColorHook) modeController.getExtension(AutomaticEdgeColorHook.class);
            al.undoableToggleHook(Controller.getCurrentController().getMap().getRootNode());
          }
        });
      }
      final String label = TextUtils.getText("AutomaticEdgeColorHookAction.text");
      rightBuilder.append(new JLabel(label), 5);
View Full Code Here

          viewNodeFormat = ((IFormattedObject)node.getUserObject()).getPattern();
        mNodeFormat.setValue(viewNodeFormat);
      }
      if(mAutomaticLayoutComboBox != null){
        final ModeController modeController = Controller.getCurrentModeController();
        AutomaticLayoutController al = modeController.getExtension(AutomaticLayoutController.class);
        IExtension extension = al.getExtension(node);
        if(extension == null)
          mAutomaticLayoutComboBox.setSelectedItem(AUTOMATIC_LAYOUT_DISABLED);
        else
          mAutomaticLayoutComboBox.setSelectedIndex(((AutomaticLayout)extension).ordinal());
      }
      if(mAutomaticEdgeColorCheckBox != null){
        final ModeController modeController = Controller.getCurrentModeController();
        AutomaticEdgeColorHook al = (AutomaticEdgeColorHook) modeController.getExtension(AutomaticEdgeColorHook.class);
        mAutomaticEdgeColorCheckBox.setSelected(al.isActive(node));
      }
    }
    finally {
      internalChange = false;
    }
View Full Code Here

    userInputListenerFactory.addToolBar("/status", ViewController.BOTTOM, controller.getViewController()
        .getStatusBar());
    FoldingController.install(new FoldingController());
    new ViewerController();
    EncryptionController.install(new EncryptionController(modeController));
    new AutomaticLayoutController();
    new CloneStateIconSupplier().registerStateIconProvider();
    return modeController;
  }
View Full Code Here

// //   private Controller controller;
   private MModeController modeController;

  private void createAddIns() {
    new HierarchicalIcons();
    new AutomaticLayoutController();
    new BlinkingNodeHook();
    SummaryNode.install();
    AlwaysUnfoldedNode.install();
    FreeNode.install();
    new CreationModificationPlugin();
View Full Code Here

TOP

Related Classes of org.freeplane.features.styles.AutomaticLayoutController

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.