|
|
|
@ -47,16 +47,15 @@ import java.util.List;
|
|
|
|
|
import static com.fine.theme.utils.FineUIScale.scale; |
|
|
|
|
|
|
|
|
|
public class UIColorPickerPane extends BasicPane implements UIObserver { |
|
|
|
|
private static final int MARGIN_TOP = scale(7); |
|
|
|
|
private static final int MARGIN_LEFT = scale(5); |
|
|
|
|
private static final int MARGIN_TOP = scale(10); |
|
|
|
|
private static final int COLORGROUP_MARGIN_LEFT = scale(15); |
|
|
|
|
private static final int OFF_HEIGHT = scale(6); |
|
|
|
|
private static final int OFF_HEIGHT = scale(10); |
|
|
|
|
private static final int COLOR_REC_HEIGHT = scale(40); |
|
|
|
|
private static final int COLOR_REC_WIDTH = scale(30); |
|
|
|
|
protected static final int TEXTFIELD_HEIGHT = scale(20); |
|
|
|
|
protected static final int TEXTFIELD_WIDTH = scale(130); |
|
|
|
|
protected static final int UPCONTROLPANE_WIDTH = scale(224); |
|
|
|
|
private static final int LAYOUR_DET = scale(6); |
|
|
|
|
private static final int LAYOUR_DET = scale(10); |
|
|
|
|
|
|
|
|
|
public static final double VALUE = 100; |
|
|
|
|
|
|
|
|
@ -610,10 +609,14 @@ public class UIColorPickerPane extends BasicPane implements UIObserver {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void layoutContainer(Container parent) { |
|
|
|
|
upControlPane.setBounds(getBoundX(), getBoundY(), UPCONTROLPANE_WIDTH, upControlPane.getPreferredSize().height + MARGIN_TOP); |
|
|
|
|
stagePanel.setBounds(getBoundX(), upControlPane.getPreferredSize().height + scale(8) + getBoundY(), UPCONTROLPANE_WIDTH, stagePanel.getPreferredSize().height); |
|
|
|
|
colorGroup.setBounds( getColorgroupMarginLeft (), 2 * getBoundY() + upControlPane.getPreferredSize().height + stagePanel.getPreferredSize().height + 2 * LAYOUR_DET, colorGroup.getPreferredSize().width, colorGroup.getPreferredSize().height + upControlPane.getPreferredSize().height); |
|
|
|
|
textGroup.setBounds(colorGroup.getPreferredSize().width + getColorgroupMarginLeft (), upControlPane.getPreferredSize().height + stagePanel.getPreferredSize().height + 2 * LAYOUR_DET + getBoundY(), textGroup.getPreferredSize().width, textGroup.getPreferredSize().height); |
|
|
|
|
upControlPane.setBounds(getBoundX(), getBoundY(), |
|
|
|
|
getParent().getWidth(), upControlPane.getPreferredSize().height + LAYOUR_DET); |
|
|
|
|
stagePanel.setBounds(getBoundX(), upControlPane.getPreferredSize().height + LAYOUR_DET + getBoundY(), |
|
|
|
|
getParent().getWidth(), stagePanel.getPreferredSize().height); |
|
|
|
|
colorGroup.setBounds( getColorgroupMarginLeft(), 2 * getBoundY() + upControlPane.getPreferredSize().height + stagePanel.getPreferredSize().height + 2 * LAYOUR_DET, |
|
|
|
|
colorGroup.getPreferredSize().width, colorGroup.getPreferredSize().height + upControlPane.getPreferredSize().height); |
|
|
|
|
textGroup.setBounds(colorGroup.getPreferredSize().width + getColorgroupMarginLeft(), upControlPane.getPreferredSize().height + stagePanel.getPreferredSize().height + 2 * LAYOUR_DET + getBoundY(), |
|
|
|
|
textGroup.getPreferredSize().width, textGroup.getPreferredSize().height); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@ -640,9 +643,12 @@ public class UIColorPickerPane extends BasicPane implements UIObserver {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void layoutContainer(Container parent) { |
|
|
|
|
upControlPane.setBounds(getBoundX(), getBoundY(), getBoundWidth(), upControlPane.getPreferredSize().height); |
|
|
|
|
colorGroup.setBounds(COLORGROUP_MARGIN_LEFT, 2 * MARGIN_TOP + upControlPane.getPreferredSize().height + LAYOUR_DET, colorGroup.getPreferredSize().width, colorGroup.getPreferredSize().height + upControlPane.getPreferredSize().height); |
|
|
|
|
textGroup.setBounds(colorGroup.getPreferredSize().width + COLORGROUP_MARGIN_LEFT, MARGIN_TOP + upControlPane.getPreferredSize().height + LAYOUR_DET, textGroup.getPreferredSize().width, textGroup.getPreferredSize().height); |
|
|
|
|
upControlPane.setBounds(getBoundX(), getBoundY(), getParent().getWidth(), |
|
|
|
|
upControlPane.getPreferredSize().height); |
|
|
|
|
colorGroup.setBounds(COLORGROUP_MARGIN_LEFT, 2 * MARGIN_TOP + upControlPane.getPreferredSize().height + LAYOUR_DET, |
|
|
|
|
colorGroup.getPreferredSize().width, colorGroup.getPreferredSize().height + upControlPane.getPreferredSize().height); |
|
|
|
|
textGroup.setBounds(colorGroup.getPreferredSize().width + COLORGROUP_MARGIN_LEFT, MARGIN_TOP + upControlPane.getPreferredSize().height + LAYOUR_DET, |
|
|
|
|
textGroup.getPreferredSize().width, textGroup.getPreferredSize().height); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|