|
|
@ -186,25 +186,43 @@ public class VanChartGaugeDetailAxisPane extends VanChartValueAxisPane { |
|
|
|
public void populateBean(VanChartAxis axis) { |
|
|
|
public void populateBean(VanChartAxis axis) { |
|
|
|
VanChartGaugeAxis gaugeAxis = (VanChartGaugeAxis) axis; |
|
|
|
VanChartGaugeAxis gaugeAxis = (VanChartGaugeAxis) axis; |
|
|
|
labelTextAttrPane.populate(axis.getTextAttr()); |
|
|
|
labelTextAttrPane.populate(axis.getTextAttr()); |
|
|
|
|
|
|
|
super.populateBean(gaugeAxis); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
protected void populateLabel(VanChartAxis axis) { |
|
|
|
|
|
|
|
VanChartGaugeAxis gaugeAxis = (VanChartGaugeAxis) axis; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (showLabel != null) { |
|
|
|
|
|
|
|
showLabel.setSelectedIndex(axis.isShowAxisLabel() ? 0 : 1); |
|
|
|
|
|
|
|
} |
|
|
|
if (mainTickColor != null) { |
|
|
|
if (mainTickColor != null) { |
|
|
|
mainTickColor.setSelectObject(gaugeAxis.getMainTickColor()); |
|
|
|
mainTickColor.setSelectObject(gaugeAxis.getMainTickColor()); |
|
|
|
} |
|
|
|
} |
|
|
|
if (secTickColor != null) { |
|
|
|
if (secTickColor != null) { |
|
|
|
secTickColor.setSelectObject(gaugeAxis.getSecTickColor()); |
|
|
|
secTickColor.setSelectObject(gaugeAxis.getSecTickColor()); |
|
|
|
} |
|
|
|
} |
|
|
|
super.populateBean(gaugeAxis); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void updateBean(VanChartAxis axis) { |
|
|
|
public void updateBean(VanChartAxis axis) { |
|
|
|
VanChartGaugeAxis gaugeAxis = (VanChartGaugeAxis) axis; |
|
|
|
VanChartGaugeAxis gaugeAxis = (VanChartGaugeAxis) axis; |
|
|
|
TextAttr textAttr = axis.getTextAttr(); |
|
|
|
TextAttr textAttr = axis.getTextAttr(); |
|
|
|
labelTextAttrPane.update(textAttr); |
|
|
|
labelTextAttrPane.update(textAttr); |
|
|
|
|
|
|
|
super.updateBean(gaugeAxis); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
protected void updateLabel(VanChartAxis axis) { |
|
|
|
|
|
|
|
VanChartGaugeAxis gaugeAxis = (VanChartGaugeAxis) axis; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (showLabel != null) { |
|
|
|
|
|
|
|
axis.setShowAxisLabel(showLabel.getSelectedIndex() == 0); |
|
|
|
|
|
|
|
} |
|
|
|
if (mainTickColor != null) { |
|
|
|
if (mainTickColor != null) { |
|
|
|
gaugeAxis.setMainTickColor(mainTickColor.getSelectObject()); |
|
|
|
gaugeAxis.setMainTickColor(mainTickColor.getSelectObject()); |
|
|
|
} |
|
|
|
} |
|
|
|
if (secTickColor != null) { |
|
|
|
if (secTickColor != null) { |
|
|
|
gaugeAxis.setSecTickColor(secTickColor.getSelectObject()); |
|
|
|
gaugeAxis.setSecTickColor(secTickColor.getSelectObject()); |
|
|
|
} |
|
|
|
} |
|
|
|
super.updateBean(gaugeAxis); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |