|
|
@ -37,6 +37,7 @@ public abstract class UIControlPane extends BasicPane implements UnrepeatedNameH |
|
|
|
protected CardLayout cardLayout; |
|
|
|
protected CardLayout cardLayout; |
|
|
|
protected JPanel cardPane; |
|
|
|
protected JPanel cardPane; |
|
|
|
protected BasePlot plot; |
|
|
|
protected BasePlot plot; |
|
|
|
|
|
|
|
private static final int TOP_TOOLBAR_HEIGHT = 24; |
|
|
|
|
|
|
|
|
|
|
|
public UIControlPane() { |
|
|
|
public UIControlPane() { |
|
|
|
this.initComponentPane(); |
|
|
|
this.initComponentPane(); |
|
|
@ -192,11 +193,10 @@ public abstract class UIControlPane extends BasicPane implements UnrepeatedNameH |
|
|
|
topToolBar.setLayout(new BorderLayout()); |
|
|
|
topToolBar.setLayout(new BorderLayout()); |
|
|
|
ShortCut addItem = addItemShortCut().getShortCut(); |
|
|
|
ShortCut addItem = addItemShortCut().getShortCut(); |
|
|
|
addItem.intoJToolBar(topToolBar); |
|
|
|
addItem.intoJToolBar(topToolBar); |
|
|
|
topToolBar.setBorder(BorderFactory.createEmptyBorder(2, 0, 2, 0)); |
|
|
|
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
double f = TableLayout.FILL; |
|
|
|
double f = TableLayout.FILL; |
|
|
|
double[] columnSize = { p, f}; |
|
|
|
double[] columnSize = { p, f}; |
|
|
|
double[] rowSize = {p}; |
|
|
|
double[] rowSize = {TOP_TOOLBAR_HEIGHT}; |
|
|
|
Component[][] components = new Component[][]{ |
|
|
|
Component[][] components = new Component[][]{ |
|
|
|
new Component[]{new UILabel(getAddItemText()), topToolBar}, |
|
|
|
new Component[]{new UILabel(getAddItemText()), topToolBar}, |
|
|
|
}; |
|
|
|
}; |
|
|
|