Search in sources :

Example 1 with ActionBuilder

use of org.vcell.util.gui.ActionBuilder in project vcell by virtualcell.

the class BioModelEditorPathwayDiagramPanel method createToolBar.

private JToolBar createToolBar(int orientation) {
    JToolBar toolBar = new JToolBar();
    toolBar.setFloatable(false);
    toolBar.setBorder(new javax.swing.border.EtchedBorder());
    toolBar.setOrientation(orientation);
    for (ActionID id : ActionID.values()) {
        ActionBuilder actionBuilder = actionBuilderMap.get(id);
        if (actionBuilder != null) {
            Action action = actionBuilder.buildAction(this);
            if (action != null) {
                toolBar.add(createToolBarButton(action));
            }
        }
    }
    return toolBar;
}
Also used : AbstractAction(javax.swing.AbstractAction) Action(javax.swing.Action) ActionBuilder(org.vcell.util.gui.ActionBuilder) JToolBar(javax.swing.JToolBar)

Aggregations

AbstractAction (javax.swing.AbstractAction)1 Action (javax.swing.Action)1 JToolBar (javax.swing.JToolBar)1 ActionBuilder (org.vcell.util.gui.ActionBuilder)1