|
|
|
@ -40,6 +40,7 @@ public abstract class UIControlPane extends BasicPane implements UnrepeatedNameH
|
|
|
|
|
protected BasePlot plot; |
|
|
|
|
private static final int TOP_TOOLBAR_HEIGHT = 20; |
|
|
|
|
private static final int TOP_TOOLBAR_WIDTH = 156; // 可能因为用了tablelayout,要比其他地方多一个像素,看起来才正常
|
|
|
|
|
private static final int TOP_TOOLBAR_WIDTH_SHORT = 76; |
|
|
|
|
|
|
|
|
|
public UIControlPane() { |
|
|
|
|
this.initComponentPane(); |
|
|
|
@ -209,7 +210,7 @@ public abstract class UIControlPane extends BasicPane implements UnrepeatedNameH
|
|
|
|
|
protected JPanel getLeftTopPane (UIToolbar topToolBar) { |
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
|
double f = TableLayout.FILL; |
|
|
|
|
double[] columnSize = { p, f, TOP_TOOLBAR_WIDTH}; |
|
|
|
|
double[] columnSize = { p, f, isNewStyle() ? TOP_TOOLBAR_WIDTH : TOP_TOOLBAR_WIDTH_SHORT}; |
|
|
|
|
double[] rowSize = {TOP_TOOLBAR_HEIGHT}; |
|
|
|
|
Component[][] components = new Component[][]{ |
|
|
|
|
new Component[]{new UILabel(getAddItemText()), new JPanel(), topToolBar}, |
|
|
|
|