|
|
@ -27,7 +27,7 @@ public class VanChartFillStylePane extends ColorFillStylePane implements Designe |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected void styleSelectBoxChange() { |
|
|
|
protected void styleSelectBoxChange() { |
|
|
|
customPane.setVisible(styleSelectBox.getSelectedIndex() != 0); |
|
|
|
getCustomPane().setVisible(getStyleSelectBox().getSelectedIndex() != 0); |
|
|
|
super.styleSelectBoxChange(); |
|
|
|
super.styleSelectBoxChange(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -49,8 +49,8 @@ public class VanChartFillStylePane extends ColorFillStylePane implements Designe |
|
|
|
protected Component[][] contentPaneComponents() { |
|
|
|
protected Component[][] contentPaneComponents() { |
|
|
|
return new Component[][]{ |
|
|
|
return new Component[][]{ |
|
|
|
new Component[]{null, null}, |
|
|
|
new Component[]{null, null}, |
|
|
|
new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Chart_Match_Color_Scheme")), styleSelectBox}, |
|
|
|
new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Chart_Match_Color_Scheme")), getStyleSelectBox()}, |
|
|
|
new Component[]{null, customPane}, |
|
|
|
new Component[]{null, getCustomPane()}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -61,14 +61,14 @@ public class VanChartFillStylePane extends ColorFillStylePane implements Designe |
|
|
|
|
|
|
|
|
|
|
|
public void populateBean(AttrFillStyle condition) { |
|
|
|
public void populateBean(AttrFillStyle condition) { |
|
|
|
if (condition.isPredefinedStyle()) { |
|
|
|
if (condition.isPredefinedStyle()) { |
|
|
|
styleSelectBox.setSelectType(ColorSchemeComboBox.SelectType.DEFAULT); |
|
|
|
getStyleSelectBox().setSelectType(ColorSchemeComboBox.SelectType.DEFAULT); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
populateBean(condition.getColorFillStyle()); |
|
|
|
populateBean(condition.getColorFillStyle()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void updateBean(AttrFillStyle attrFillStyle) { |
|
|
|
public void updateBean(AttrFillStyle attrFillStyle) { |
|
|
|
if (styleSelectBox.getSelectedIndex() == 0) { |
|
|
|
if (getStyleSelectBox().getSelectedIndex() == 0) { |
|
|
|
attrFillStyle.setPredefinedStyle(true); |
|
|
|
attrFillStyle.setPredefinedStyle(true); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
@ -83,7 +83,7 @@ public class VanChartFillStylePane extends ColorFillStylePane implements Designe |
|
|
|
AttrFillStyle attrFillStyle = new AttrFillStyle(); |
|
|
|
AttrFillStyle attrFillStyle = new AttrFillStyle(); |
|
|
|
updateBean(attrFillStyle); |
|
|
|
updateBean(attrFillStyle); |
|
|
|
|
|
|
|
|
|
|
|
styleSelectBox.refresh(); |
|
|
|
getStyleSelectBox().refresh(); |
|
|
|
|
|
|
|
|
|
|
|
populateBean(attrFillStyle); |
|
|
|
populateBean(attrFillStyle); |
|
|
|
GUICoreUtils.repaint(this); |
|
|
|
GUICoreUtils.repaint(this); |
|
|
|