|
|
@ -27,22 +27,17 @@ import java.awt.event.WindowEvent; |
|
|
|
public abstract class UIControlPane extends BasicPane implements UnrepeatedNameHelper { |
|
|
|
public abstract class UIControlPane extends BasicPane implements UnrepeatedNameHelper { |
|
|
|
protected static final int SHORT_WIDTH = 30; //每加一个short Divider位置加30
|
|
|
|
protected static final int SHORT_WIDTH = 30; //每加一个short Divider位置加30
|
|
|
|
protected JPanel controlUpdatePane; |
|
|
|
protected JPanel controlUpdatePane; |
|
|
|
|
|
|
|
|
|
|
|
private ShortCut4JControlPane[] shorts; |
|
|
|
private ShortCut4JControlPane[] shorts; |
|
|
|
private NameableCreator[] creators; |
|
|
|
private NameableCreator[] creators; |
|
|
|
private ToolBarDef toolbarDef; |
|
|
|
private ToolBarDef toolbarDef; |
|
|
|
|
|
|
|
|
|
|
|
private UIToolbar toolBar; |
|
|
|
private UIToolbar toolBar; |
|
|
|
private UIToolbar topToolBar; |
|
|
|
private UIToolbar topToolBar; |
|
|
|
protected PopupEditDialog popupEditDialog; |
|
|
|
protected PopupEditDialog popupEditDialog; |
|
|
|
// peter:这是整体的一个cardLayout Pane
|
|
|
|
// peter:这是整体的一个cardLayout Pane
|
|
|
|
protected CardLayout cardLayout; |
|
|
|
protected CardLayout cardLayout; |
|
|
|
|
|
|
|
|
|
|
|
protected JPanel cardPane; |
|
|
|
protected JPanel cardPane; |
|
|
|
|
|
|
|
|
|
|
|
protected BasePlot plot; |
|
|
|
protected BasePlot plot; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public UIControlPane() { |
|
|
|
public UIControlPane() { |
|
|
|
this.initComponentPane(); |
|
|
|
this.initComponentPane(); |
|
|
|
} |
|
|
|
} |
|
|
@ -128,8 +123,15 @@ public abstract class UIControlPane extends BasicPane implements UnrepeatedNameH |
|
|
|
this.add(getLeftPane(), BorderLayout.CENTER); |
|
|
|
this.add(getLeftPane(), BorderLayout.CENTER); |
|
|
|
this.setBorder(BorderFactory.createEmptyBorder(10, 10, 15, 15)); |
|
|
|
this.setBorder(BorderFactory.createEmptyBorder(10, 10, 15, 15)); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
// 增加边框
|
|
|
|
|
|
|
|
JPanel leftPaneWrapper = new JPanel(new BorderLayout()); |
|
|
|
|
|
|
|
leftPaneWrapper.add(getLeftPane(), BorderLayout.CENTER); |
|
|
|
|
|
|
|
leftPaneWrapper.setBorder(BorderFactory.createEmptyBorder(6, 6, 6, 6)); |
|
|
|
|
|
|
|
JPanel rightPaneWrapper = new JPanel(new BorderLayout()); |
|
|
|
|
|
|
|
rightPaneWrapper.add(cardPane, BorderLayout.CENTER); |
|
|
|
|
|
|
|
rightPaneWrapper.setBorder(BorderFactory.createEmptyBorder(6, 6, 6, 6)); |
|
|
|
// SplitPane
|
|
|
|
// SplitPane
|
|
|
|
JSplitPane mainSplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, true, getLeftPane(), cardPane); |
|
|
|
JSplitPane mainSplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, true, leftPaneWrapper, rightPaneWrapper); |
|
|
|
mainSplitPane.setBorder(BorderFactory.createLineBorder(GUICoreUtils.getTitleLineBorderColor())); |
|
|
|
mainSplitPane.setBorder(BorderFactory.createLineBorder(GUICoreUtils.getTitleLineBorderColor())); |
|
|
|
mainSplitPane.setOneTouchExpandable(true); |
|
|
|
mainSplitPane.setOneTouchExpandable(true); |
|
|
|
this.add(mainSplitPane, BorderLayout.CENTER); |
|
|
|
this.add(mainSplitPane, BorderLayout.CENTER); |
|
|
|