Package org.openbp.jaspira.gui.plugin

Examples of org.openbp.jaspira.gui.plugin.PluginDivider


    nodeEditor = (NodeItemEditorPlugin) pm.createInstance(NodeItemEditorPlugin.class, this);
    socketToolBox = (SocketToolBoxPlugin) pm.createInstance(SocketToolBoxPlugin.class, this);
    colorChooser = (ColorChooserPlugin) pm.createInstance(ColorChooserPlugin.class, this);
    colorChooser.setHelpText(getPluginResourceCollection().getOptionalString("chooserhelptext"));

    PluginDivider main = new PluginDivider(PluginDivider.HORIZONTAL_SPLIT);
    PluginDivider left = new PluginDivider(PluginDivider.VERTICAL_SPLIT);
    PluginDivider right = new PluginDivider(PluginDivider.VERTICAL_SPLIT);

    left.addPlugin(socketToolBox);
    left.addPlugin(itemBrowser);

    right.addPlugin(nodeEditor);

    TabbedPluginContainer bottomContainer = new TabbedPluginContainer();
    bottomContainer.addPlugin(propertyBrowser);
    bottomContainer.addPlugin(colorChooser);
    right.addClient(bottomContainer);

    main.addClient(left);
    main.addClient(right);

    left.setClientProportions(new double [] { 0.3d, 0.7d });

    right.setClientProportions(new double [] { 0.5d, 0.5d });

    main.setClientProportions(new double [] { 0.25d, 0.75d });

    setPluginDivider(main);
View Full Code Here


    JComponent leftArea = createLeftArea();
    JComponent rightArea = createRightArea();
    JComponent bottomArea = createBottomArea();

    PluginDivider verticalDivider = new PluginDivider(JSplitPane.HORIZONTAL_SPLIT);
    PluginDivider horizontalDivider = new PluginDivider(JSplitPane.VERTICAL_SPLIT);

    horizontalDivider.addClient(rightArea);
    horizontalDivider.addClient(bottomArea);
    horizontalDivider.setClientProportions(new double [] { 0.75d, 0.25d });

    verticalDivider.addClient(leftArea);
    verticalDivider.addClient(horizontalDivider);
    verticalDivider.setClientProportions(new double [] { 0.2d, 0.8d });
View Full Code Here

    TabbedPluginContainer infoContainer = new TabbedPluginContainer();
    infoContainer.addPlugin(pm.createVisibleInstance(InfoPanelPlugin.class, this));

    // Hor. divider for toolbox and item browser
    PluginDivider divider = new PluginDivider(JSplitPane.VERTICAL_SPLIT);
    divider.addContainer(toolContainer);
    divider.addContainer(itemContainer);
    divider.addContainer(infoContainer);

    divider.setClientProportions(new double [] { 0.25d, 0.50d, 0.25d });

    return divider;
  }
View Full Code Here

    rightContainer.addPlugin(colorChooser, false);
    rightContainer.addPlugin(pm.createVisibleInstance(InspectorPlugin.class, this), false);
    rightContainer.addPlugin(pm.createVisibleInstance(StackTracePlugin.class, this), false);

    // Divider for content area (modeler, toolbox, item browser)
    PluginDivider divider = new PluginDivider();
    divider.addContainer(leftContainer);
    divider.addContainer(rightContainer);

    divider.setClientProportions(new double [] { 0.5d, 0.5d });

    return divider;
  }
View Full Code Here

TOP

Related Classes of org.openbp.jaspira.gui.plugin.PluginDivider

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.