|
|
|
@ -172,7 +172,7 @@ public class UIEastResizableContainer extends JPanel {
|
|
|
|
|
leftPane.setBounds(0, topToolPaneHeight, leftPaneWidth, getHeight() - topToolPaneHeight); |
|
|
|
|
|
|
|
|
|
// parameterPane.setBounds(20, 0, 230, getParameterPaneHeight());//10,0,230,462
|
|
|
|
|
rightPane.setBounds(leftPaneWidth, 0, containerWidth-leftPaneWidth, getHeight());//20,0,230,0
|
|
|
|
|
rightPane.setBounds(leftPaneWidth, 0, containerWidth - leftPaneWidth, getHeight());//20,0,230,0
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@ -245,6 +245,31 @@ public class UIEastResizableContainer extends JPanel {
|
|
|
|
|
// do nothing here
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void showContainer() { |
|
|
|
|
if (containerWidth != leftPaneWidth) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
containerWidth = preferredWidth; |
|
|
|
|
onResize(); |
|
|
|
|
refreshContainer(); |
|
|
|
|
if (DesignModeContext.isAuthorityEditing()) { |
|
|
|
|
DesignerContext.getDesignerFrame().doResize(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void hideContainer() { |
|
|
|
|
if (containerWidth == leftPaneWidth) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
setPreferredWidth(containerWidth); |
|
|
|
|
containerWidth = leftPaneWidth; |
|
|
|
|
onResize(); |
|
|
|
|
refreshContainer(); |
|
|
|
|
if (DesignModeContext.isAuthorityEditing()) { |
|
|
|
|
DesignerContext.getDesignerFrame().doResize(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private class TopToolPane extends JPanel { |
|
|
|
|
private int model = UIConstants.MODEL_NORMAL; |
|
|
|
|
|
|
|
|
@ -281,15 +306,9 @@ public class UIEastResizableContainer extends JPanel {
|
|
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
|
if (e.getX() <= ARROW_RANGE) { |
|
|
|
|
if (containerWidth == leftPaneWidth) { |
|
|
|
|
containerWidth = preferredWidth; |
|
|
|
|
showContainer(); |
|
|
|
|
} else { |
|
|
|
|
setPreferredWidth(containerWidth); |
|
|
|
|
containerWidth = leftPaneWidth; |
|
|
|
|
} |
|
|
|
|
onResize(); |
|
|
|
|
refreshContainer(); |
|
|
|
|
if (DesignModeContext.isAuthorityEditing()) { |
|
|
|
|
DesignerContext.getDesignerFrame().doResize(); |
|
|
|
|
hideContainer(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -316,5 +335,4 @@ public class UIEastResizableContainer extends JPanel {
|
|
|
|
|
g.drawImage(button, 18, 7, 5, 10, null); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |