|
|
@ -26,6 +26,7 @@ import java.awt.event.ActionListener; |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class GradientBackgroundPane extends BackgroundDetailPane { |
|
|
|
public class GradientBackgroundPane extends BackgroundDetailPane { |
|
|
|
private static final long serialVersionUID = -6854603990673031897L; |
|
|
|
private static final long serialVersionUID = -6854603990673031897L; |
|
|
|
|
|
|
|
public static final int DEFAULT_GRADIENT_WIDTH = 254; |
|
|
|
|
|
|
|
|
|
|
|
private UIRadioButton left2right, top2bottom; |
|
|
|
private UIRadioButton left2right, top2bottom; |
|
|
|
private GradientBar gradientBar; |
|
|
|
private GradientBar gradientBar; |
|
|
@ -41,7 +42,7 @@ public class GradientBackgroundPane extends BackgroundDetailPane { |
|
|
|
// neil:增加渐变色拖动条
|
|
|
|
// neil:增加渐变色拖动条
|
|
|
|
JPanel gradientPanel = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
JPanel gradientPanel = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
JPanel blankJp = new JPanel(); |
|
|
|
JPanel blankJp = new JPanel(); |
|
|
|
gradientBar = new GradientBar(4, 254); |
|
|
|
gradientBar = new GradientBar(4, DEFAULT_GRADIENT_WIDTH); |
|
|
|
blankJp.add(gradientBar); |
|
|
|
blankJp.add(gradientBar); |
|
|
|
UILabel jl = FRWidgetFactory.createLineWrapLabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Drag_To_Select_Gradient")); |
|
|
|
UILabel jl = FRWidgetFactory.createLineWrapLabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Drag_To_Select_Gradient")); |
|
|
|
jl.setBorder(BorderFactory.createEmptyBorder(0, 20, 0, 20)); |
|
|
|
jl.setBorder(BorderFactory.createEmptyBorder(0, 20, 0, 20)); |
|
|
|