Search in sources :

Example 1 with NextPresentationItemAction

use of org.freeplane.features.filter.NextPresentationItemAction in project freeplane by freeplane.

the class FreeplaneApplet method init.

@SuppressWarnings("serial")
@Override
public void init() {
    try {
        appletLock.lock();
        appletResourceController = new AppletResourceController(this);
        if (appletResourceController == null) {
            appletResourceController = new AppletResourceController(this);
        }
        new ParserDelegator() {

            {
                setDefaultDTD();
            }
        };
        updateLookAndFeel();
        createRootPane();
        controller = new Controller(appletResourceController);
        appletResourceController.init();
        Controller.setCurrentController(controller);
        final Container contentPane = getContentPane();
        contentPane.setLayout(new BorderLayout());
        MapViewController mapViewController = new MapViewController(controller);
        appletViewController = new AppletViewController(this, controller, mapViewController);
        controller.addAction(new ViewLayoutTypeAction(MapViewLayout.OUTLINE));
        FilterController.install();
        PrintController.install();
        HelpController.install();
        NodeHistory.install(controller);
        FormatController.install(new FormatController());
        ModelessAttributeController.install();
        TextController.install();
        MapController.install();
        TimeController.install();
        LinkController.install();
        IconController.install();
        FilterController.getCurrentFilterController().getConditionFactory().addConditionController(70, new LogicalStyleFilterController());
        final BModeController browseController = BModeControllerFactory.createModeController();
        final Set<String> emptySet = Collections.emptySet();
        FilterController.getController(controller).loadDefaultConditions();
        browseController.updateMenus("/xml/appletMenu.xml", emptySet);
        controller.addAction(new ShowSelectionAsRectangleAction());
        controller.addAction(new NextNodeAction(Direction.FORWARD));
        controller.addAction(new NextNodeAction(Direction.BACK));
        controller.addAction(new NextPresentationItemAction());
        controller.selectMode(browseController);
        appletResourceController.setPropertyByParameter(this, "browsemode_initial_map");
        appletViewController.init(controller);
        final GlassPane glassPane = new GlassPane();
        setGlassPane(glassPane);
        glassPane.setVisible(true);
        controller.getViewController().setMenubarVisible(false);
    } catch (RuntimeException e) {
        e.printStackTrace();
        throw e;
    } finally {
        appletLock.unlock();
    }
}
Also used : ParserDelegator(javax.swing.text.html.parser.ParserDelegator) LogicalStyleFilterController(org.freeplane.features.styles.LogicalStyleFilterController) FormatController(org.freeplane.features.format.FormatController) BModeController(org.freeplane.features.mode.browsemode.BModeController) PrintController(org.freeplane.features.print.PrintController) BModeController(org.freeplane.features.mode.browsemode.BModeController) FormatController(org.freeplane.features.format.FormatController) MapViewController(org.freeplane.view.swing.map.MapViewController) LinkController(org.freeplane.features.link.LinkController) TimeController(org.freeplane.features.time.TimeController) FilterController(org.freeplane.features.filter.FilterController) HelpController(org.freeplane.features.help.HelpController) MapController(org.freeplane.features.map.MapController) LogicalStyleFilterController(org.freeplane.features.styles.LogicalStyleFilterController) FrameController(org.freeplane.features.ui.FrameController) IconController(org.freeplane.features.icon.IconController) Controller(org.freeplane.features.mode.Controller) TextController(org.freeplane.features.text.TextController) ModelessAttributeController(org.freeplane.features.attribute.ModelessAttributeController) MapViewController(org.freeplane.view.swing.map.MapViewController) NextPresentationItemAction(org.freeplane.features.filter.NextPresentationItemAction) Container(java.awt.Container) BorderLayout(java.awt.BorderLayout) ViewLayoutTypeAction(org.freeplane.view.swing.map.ViewLayoutTypeAction) NextNodeAction(org.freeplane.features.filter.NextNodeAction) ShowSelectionAsRectangleAction(org.freeplane.core.ui.ShowSelectionAsRectangleAction)

Example 2 with NextPresentationItemAction

use of org.freeplane.features.filter.NextPresentationItemAction in project freeplane by freeplane.

the class FreeplaneGUIStarter method createController.

public Controller createController() {
    try {
        Controller controller = new Controller(applicationResourceController);
        Controller.setCurrentController(controller);
        Compat.macAppChanges();
        controller.addAction(new QuitAction());
        applicationResourceController.init();
        LogUtils.createLogger();
        FreeplaneGUIStarter.showSysInfo();
        final String lookandfeel = System.getProperty("lookandfeel", applicationResourceController.getProperty("lookandfeel"));
        FrameController.setLookAndFeel(lookandfeel);
        final JFrame frame;
        USE_RIBBONS_MENU = UITools.useRibbonsMenu();
        if (USE_RIBBONS_MENU) {
            frame = new JRibbonFrame("Freeplane");
            initIcons(applicationResourceController);
        } else {
            frame = new JFrame("Freeplane");
        }
        frame.setName(UITools.MAIN_FREEPLANE_FRAME);
        splash = new FreeplaneSplashModern(frame);
        if (!System.getProperty("org.freeplane.nosplash", "false").equals("true")) {
            splash.setVisible(true);
        }
        final MMapViewController mapViewController = new MMapViewController(controller);
        viewController = new ApplicationViewController(controller, mapViewController, frame);
        System.setSecurityManager(new FreeplaneSecurityManager());
        mapViewController.addMapViewChangeListener(applicationResourceController.getLastOpenedList());
        FilterController.install();
        PrintController.install();
        FormatController.install(new FormatController());
        final ScannerController scannerController = new ScannerController();
        ScannerController.install(scannerController);
        scannerController.addParsersForStandardFormats();
        ModelessAttributeController.install();
        TextController.install();
        TimeController.install();
        LinkController.install();
        IconController.install();
        HelpController.install();
        controller.addAction(new UpdateCheckAction());
        controller.addAction(new NextNodeAction(Direction.FORWARD));
        controller.addAction(new NextNodeAction(Direction.BACK));
        controller.addAction(new NextNodeAction(Direction.FORWARD_N_FOLD));
        controller.addAction(new NextNodeAction(Direction.BACK_N_FOLD));
        controller.addAction(new NextPresentationItemAction());
        controller.addAction(new ShowSelectionAsRectangleAction());
        controller.addAction(new ViewLayoutTypeAction(MapViewLayout.OUTLINE));
        FilterController.getCurrentFilterController().getConditionFactory().addConditionController(70, new LogicalStyleFilterController());
        MapController.install();
        NodeHistory.install(controller);
        return controller;
    } catch (final Exception e) {
        LogUtils.severe(e);
        throw new RuntimeException(e);
    }
}
Also used : MMapViewController(org.freeplane.view.swing.map.mindmapmode.MMapViewController) QuitAction(org.freeplane.features.mode.QuitAction) LogicalStyleFilterController(org.freeplane.features.styles.LogicalStyleFilterController) FormatController(org.freeplane.features.format.FormatController) FModeController(org.freeplane.features.mode.filemode.FModeController) TimeController(org.freeplane.features.time.TimeController) FilterController(org.freeplane.features.filter.FilterController) HelpController(org.freeplane.features.help.HelpController) MapController(org.freeplane.features.map.MapController) LogicalStyleFilterController(org.freeplane.features.styles.LogicalStyleFilterController) IconController(org.freeplane.features.icon.IconController) Controller(org.freeplane.features.mode.Controller) MMapViewController(org.freeplane.view.swing.map.mindmapmode.MMapViewController) TextController(org.freeplane.features.text.TextController) ModelessAttributeController(org.freeplane.features.attribute.ModelessAttributeController) PrintController(org.freeplane.features.print.PrintController) BModeController(org.freeplane.features.mode.browsemode.BModeController) FormatController(org.freeplane.features.format.FormatController) AddOnsController(org.freeplane.main.addons.AddOnsController) ResourceController(org.freeplane.core.resources.ResourceController) LinkController(org.freeplane.features.link.LinkController) FrameController(org.freeplane.features.ui.FrameController) ModeController(org.freeplane.features.mode.ModeController) MModeController(org.freeplane.features.mode.mindmapmode.MModeController) ScannerController(org.freeplane.features.format.ScannerController) ScannerController(org.freeplane.features.format.ScannerController) NextPresentationItemAction(org.freeplane.features.filter.NextPresentationItemAction) InvocationTargetException(java.lang.reflect.InvocationTargetException) JFrame(javax.swing.JFrame) JRibbonFrame(org.pushingpixels.flamingo.api.ribbon.JRibbonFrame) ViewLayoutTypeAction(org.freeplane.view.swing.map.ViewLayoutTypeAction) NextNodeAction(org.freeplane.features.filter.NextNodeAction) ShowSelectionAsRectangleAction(org.freeplane.core.ui.ShowSelectionAsRectangleAction)

Aggregations

ShowSelectionAsRectangleAction (org.freeplane.core.ui.ShowSelectionAsRectangleAction)2 ModelessAttributeController (org.freeplane.features.attribute.ModelessAttributeController)2 FilterController (org.freeplane.features.filter.FilterController)2 NextNodeAction (org.freeplane.features.filter.NextNodeAction)2 NextPresentationItemAction (org.freeplane.features.filter.NextPresentationItemAction)2 FormatController (org.freeplane.features.format.FormatController)2 HelpController (org.freeplane.features.help.HelpController)2 IconController (org.freeplane.features.icon.IconController)2 LinkController (org.freeplane.features.link.LinkController)2 MapController (org.freeplane.features.map.MapController)2 Controller (org.freeplane.features.mode.Controller)2 BModeController (org.freeplane.features.mode.browsemode.BModeController)2 PrintController (org.freeplane.features.print.PrintController)2 LogicalStyleFilterController (org.freeplane.features.styles.LogicalStyleFilterController)2 TextController (org.freeplane.features.text.TextController)2 TimeController (org.freeplane.features.time.TimeController)2 FrameController (org.freeplane.features.ui.FrameController)2 ViewLayoutTypeAction (org.freeplane.view.swing.map.ViewLayoutTypeAction)2 BorderLayout (java.awt.BorderLayout)1 Container (java.awt.Container)1