|
|
@ -6,6 +6,7 @@ package com.fr.design.style.color; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.Color; |
|
|
|
import java.awt.Color; |
|
|
|
import java.awt.Dimension; |
|
|
|
import java.awt.Dimension; |
|
|
|
|
|
|
|
import java.awt.FlowLayout; |
|
|
|
import java.awt.Font; |
|
|
|
import java.awt.Font; |
|
|
|
import java.awt.Graphics; |
|
|
|
import java.awt.Graphics; |
|
|
|
import java.awt.Graphics2D; |
|
|
|
import java.awt.Graphics2D; |
|
|
@ -13,6 +14,10 @@ import java.awt.geom.Rectangle2D; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.Box; |
|
|
|
import javax.swing.Box; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fine.swing.ui.layout.Layouts; |
|
|
|
|
|
|
|
import com.fine.swing.ui.layout.Row; |
|
|
|
|
|
|
|
import com.fr.base.i18n.BidiUtils; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.event.ChangeEvent; |
|
|
|
import javax.swing.event.ChangeEvent; |
|
|
@ -22,6 +27,10 @@ import com.fr.base.GraphHelper; |
|
|
|
import com.fr.design.border.UITitledBorder; |
|
|
|
import com.fr.design.border.UITitledBorder; |
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
import com.fr.design.dialog.BasicPane; |
|
|
|
import com.fr.design.dialog.BasicPane; |
|
|
|
|
|
|
|
import com.fr.design.layout.FRLeftFlowLayout; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.cell; |
|
|
|
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.fix; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -42,7 +51,7 @@ public class DetailColorSelectPane extends BasicPane { |
|
|
|
|
|
|
|
|
|
|
|
JPanel titledefaultPane=FRGUIPaneFactory.createTitledBorderPane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Color")); |
|
|
|
JPanel titledefaultPane=FRGUIPaneFactory.createTitledBorderPane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Color")); |
|
|
|
JPanel defaultPane =FRGUIPaneFactory.createX_AXISBoxInnerContainer_S_Pane(); |
|
|
|
JPanel defaultPane =FRGUIPaneFactory.createX_AXISBoxInnerContainer_S_Pane(); |
|
|
|
this.add(titledefaultPane, BorderLayout.WEST); |
|
|
|
this.add(titledefaultPane, BidiUtils.rtl() ? BorderLayout.EAST : BorderLayout.WEST); |
|
|
|
titledefaultPane.add(defaultPane); |
|
|
|
titledefaultPane.add(defaultPane); |
|
|
|
|
|
|
|
|
|
|
|
defaultPane.add(Box.createHorizontalStrut(4)); |
|
|
|
defaultPane.add(Box.createHorizontalStrut(4)); |
|
|
@ -56,7 +65,7 @@ public class DetailColorSelectPane extends BasicPane { |
|
|
|
//color preview
|
|
|
|
//color preview
|
|
|
|
JPanel colorPreviewContainPane = FRGUIPaneFactory.createBorderLayout_L_Pane(); |
|
|
|
JPanel colorPreviewContainPane = FRGUIPaneFactory.createBorderLayout_L_Pane(); |
|
|
|
defaultPane.add(colorPreviewContainPane); |
|
|
|
defaultPane.add(colorPreviewContainPane); |
|
|
|
|
|
|
|
BidiUtils.mirrorBoxLayout(defaultPane); |
|
|
|
JPanel colorPreviewPane = FRGUIPaneFactory.createBorderLayout_L_Pane(); |
|
|
|
JPanel colorPreviewPane = FRGUIPaneFactory.createBorderLayout_L_Pane(); |
|
|
|
colorPreviewPane.setPreferredSize(new Dimension(180, 60)); |
|
|
|
colorPreviewPane.setPreferredSize(new Dimension(180, 60)); |
|
|
|
colorPreviewContainPane.add(colorPreviewPane, BorderLayout.NORTH); |
|
|
|
colorPreviewContainPane.add(colorPreviewPane, BorderLayout.NORTH); |
|
|
@ -83,6 +92,7 @@ public class DetailColorSelectPane extends BasicPane { |
|
|
|
|
|
|
|
|
|
|
|
//use the white as the default color.
|
|
|
|
//use the white as the default color.
|
|
|
|
this.populate(Color.WHITE); |
|
|
|
this.populate(Color.WHITE); |
|
|
|
|
|
|
|
BidiUtils.applyOrientationByLocale(this); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|