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;
}
Aggregations