Package org.freeplane.features.styles.mindmapmode

Examples of org.freeplane.features.styles.mindmapmode.MUIFactory


        .getController()).getIconToolBarScrollPane());
    modeController.addAction(new ToggleToolbarAction("ToggleLeftToolbarAction", "/icon_toolbar"));
    new RevisionPlugin();
    FoldingController.install(new FoldingController());

    uiFactory = new MUIFactory();
    mapController.addNodeChangeListener(uiFactory);
    mapController.addNodeSelectionListener(uiFactory);
    mapController.addMapChangeListener(uiFactory);
    controller.getMapViewManager().addMapSelectionListener(uiFactory);
    final MToolbarContributor menuContributor = new MToolbarContributor(uiFactory);
View Full Code Here


    final JScrollPane styleScrollPane = new JScrollPane(styleEditorPanel, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
        JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    UITools.setScrollbarIncrement(styleScrollPane);
    //    styleEditorPanel.setPreferredSize(new Dimension(200, 200));
    userInputListenerFactory.addToolBar("/format", ViewController.RIGHT, styleScrollPane);
    modeController.addExtension(MUIFactory.class, new MUIFactory());
    final Set<String> emptySet = Collections.emptySet();
    modeController.updateMenus("/xml/stylemodemenu.xml", emptySet);
    this.modeController = null;
    return controller;
  }
View Full Code Here

        // RIBBONS expandlistener and icon
        JFlowRibbonBand band = new JFlowRibbonBand(TextUtils.removeTranslateComment(TextUtils.getText("ribbon.band.font")), null, null);
        band.setExpandButtonKeyTip("FN");
        band.setCollapsedStateKeyTip("ZF");

        MUIFactory uiFactory = Controller.getCurrentModeController().getExtension(MUIFactory.class);

        final Container fontBox = uiFactory.createFontBox();
        JRibbonComponent fontComboWrapper = new JRibbonComponent((JComponent) fontBox);
        fontComboWrapper.setKeyTip("SF");
        addDefaultToggleHandler(context, fontComboWrapper);
        band.addFlowComponent(fontComboWrapper);

        final Container sizeBox = uiFactory.createSizeBox();
        JRibbonComponent sizeComboWrapper = new JRibbonComponent((JComponent) sizeBox);
        sizeComboWrapper.setKeyTip("SS");
        addDefaultToggleHandler(context, sizeComboWrapper);
        band.addFlowComponent(sizeComboWrapper);

        final Container styleBox = uiFactory.createStyleBox();
        JRibbonComponent styleComboWrapper = new JRibbonComponent((JComponent) styleBox);
        styleComboWrapper.setKeyTip("SD");
        addDefaultToggleHandler(context, styleComboWrapper);
        band.addFlowComponent(styleComboWrapper);
View Full Code Here

TOP

Related Classes of org.freeplane.features.styles.mindmapmode.MUIFactory

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.