|
|
|
@ -3,7 +3,7 @@ package com.fr.design.gui.icontainer;
|
|
|
|
|
import com.fr.base.vcs.DesignerMode; |
|
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
|
import com.fr.design.mainframe.DesignerContext; |
|
|
|
|
import com.fr.design.utils.SvgPaintWorker; |
|
|
|
|
import com.fr.design.utils.SvgPainter; |
|
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
|
import com.fr.stable.Constants; |
|
|
|
|
|
|
|
|
@ -421,24 +421,24 @@ public class UIResizableContainer extends JPanel {
|
|
|
|
|
Image upButton = (upModel == UIConstants.MODEL_NORMAL ? UIConstants.DRAG_UP_NORMAL : UIConstants.DRAG_UP_PRESS); |
|
|
|
|
Image downButton = (downModel == UIConstants.MODEL_NORMAL ? UIConstants.DRAG_DOWN_NORMAL : UIConstants.DRAG_DOWN_PRESS); |
|
|
|
|
g.drawImage(UIConstants.DRAG_BAR_LIGHT, 0, 0, getWidth(), getHeight(), null); |
|
|
|
|
new SvgPaintWorker(g) { |
|
|
|
|
new SvgPainter(g) { |
|
|
|
|
@Override |
|
|
|
|
protected void doPrint() { |
|
|
|
|
protected void doPaint() { |
|
|
|
|
this.drawImage(UIConstants.DRAG_LINE, (getWidth() - toolPaneHeight) / 2, 3, null); |
|
|
|
|
} |
|
|
|
|
}.execute(); |
|
|
|
|
new SvgPaintWorker(g) { |
|
|
|
|
}.paint(); |
|
|
|
|
new SvgPainter(g) { |
|
|
|
|
@Override |
|
|
|
|
protected void doPrint() { |
|
|
|
|
protected void doPaint() { |
|
|
|
|
this.drawImage(upButton, ARROW_MARGIN, 0, null); |
|
|
|
|
} |
|
|
|
|
}.execute(); |
|
|
|
|
new SvgPaintWorker(g) { |
|
|
|
|
}.paint(); |
|
|
|
|
new SvgPainter(g) { |
|
|
|
|
@Override |
|
|
|
|
protected void doPrint() { |
|
|
|
|
protected void doPaint() { |
|
|
|
|
this.drawImage(downButton, (getWidth() - toolPaneHeight - ARROW_MARGIN), 0, null); |
|
|
|
|
} |
|
|
|
|
}.execute(); |
|
|
|
|
}.paint(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -535,12 +535,12 @@ public class UIResizableContainer extends JPanel {
|
|
|
|
|
button = UIConstants.DRAG_LEFT_PRESS; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
new SvgPaintWorker(g) { |
|
|
|
|
new SvgPainter(g) { |
|
|
|
|
@Override |
|
|
|
|
protected void doPrint() { |
|
|
|
|
protected void doPaint() { |
|
|
|
|
this.drawImage(button, -6, ARROW_MARGIN_VERTICAL, VerticalToolPane.this); |
|
|
|
|
} |
|
|
|
|
}.execute(); |
|
|
|
|
}.paint(); |
|
|
|
|
} else { |
|
|
|
|
g.drawImage(UIConstants.DRAG_BAR_LIGHT, 0, 0, toolPaneHeight, getHeight(), null); |
|
|
|
|
if (containerWidth == toolPaneHeight) { |
|
|
|
@ -556,12 +556,12 @@ public class UIResizableContainer extends JPanel {
|
|
|
|
|
button = UIConstants.DRAG_RIGHT_PRESS; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
new SvgPaintWorker(g) { |
|
|
|
|
new SvgPainter(g) { |
|
|
|
|
@Override |
|
|
|
|
protected void doPrint() { |
|
|
|
|
protected void doPaint() { |
|
|
|
|
this.drawImage(button, 10, ARROW_MARGIN_VERTICAL, VerticalToolPane.this); |
|
|
|
|
} |
|
|
|
|
}.execute(); |
|
|
|
|
}.paint(); |
|
|
|
|
} |
|
|
|
|
if (isLeftRightDragEnabled) { |
|
|
|
|
g.drawImage(UIConstants.DRAG_DOT_VERTICAL, 2, getHeight() / 2, 5, toolPaneHeight, null); |
|
|
|
|