|
|
@ -34,8 +34,6 @@ public class VanChartCustomStackAndAxisConditionPane extends BasicBeanPane<Condi |
|
|
|
protected UIButtonGroup<Integer> isStacked; |
|
|
|
protected UIButtonGroup<Integer> isStacked; |
|
|
|
protected UIButtonGroup<Integer> isPercentStacked; |
|
|
|
protected UIButtonGroup<Integer> isPercentStacked; |
|
|
|
|
|
|
|
|
|
|
|
private ConditionAttr conditionAttr; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private LiteConditionPane liteConditionPane; |
|
|
|
private LiteConditionPane liteConditionPane; |
|
|
|
|
|
|
|
|
|
|
|
public VanChartCustomStackAndAxisConditionPane() { |
|
|
|
public VanChartCustomStackAndAxisConditionPane() { |
|
|
@ -99,10 +97,12 @@ public class VanChartCustomStackAndAxisConditionPane extends BasicBeanPane<Condi |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void populateBean(ConditionAttr conditionAttr) { |
|
|
|
public void populateBean(ConditionAttr conditionAttr) { |
|
|
|
this.conditionAttr = conditionAttr; |
|
|
|
AttrSeriesStackAndAxis seriesStackAndAxis = conditionAttr.getExisted(AttrSeriesStackAndAxis.class); |
|
|
|
AttrSeriesStackAndAxis seriesStackAndAxis = (AttrSeriesStackAndAxis) conditionAttr.getExisted(AttrSeriesStackAndAxis.class); |
|
|
|
|
|
|
|
XAxis = new UIButtonGroup<Integer>(seriesStackAndAxis.getXAxisNamesArray()); |
|
|
|
if (XAxis == null || YAxis == null) { |
|
|
|
YAxis = new UIButtonGroup<Integer>(seriesStackAndAxis.getYAxisNameArray()); |
|
|
|
XAxis = new UIButtonGroup<Integer>(seriesStackAndAxis.getXAxisNamesArray()); |
|
|
|
|
|
|
|
YAxis = new UIButtonGroup<Integer>(seriesStackAndAxis.getYAxisNameArray()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
doLayoutPane(); |
|
|
|
doLayoutPane(); |
|
|
|
XAxis.setSelectedIndex(seriesStackAndAxis.getXAxisIndex()); |
|
|
|
XAxis.setSelectedIndex(seriesStackAndAxis.getXAxisIndex()); |
|
|
@ -129,11 +129,16 @@ public class VanChartCustomStackAndAxisConditionPane extends BasicBeanPane<Condi |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public ConditionAttr updateBean() { |
|
|
|
public ConditionAttr updateBean() { |
|
|
|
AttrSeriesStackAndAxis seriesStackAndAxis = (AttrSeriesStackAndAxis)conditionAttr.getExisted(AttrSeriesStackAndAxis.class); seriesStackAndAxis.setXAxisIndex(XAxis.getSelectedIndex()); |
|
|
|
ConditionAttr conditionAttr = new ConditionAttr(); |
|
|
|
|
|
|
|
AttrSeriesStackAndAxis seriesStackAndAxis = conditionAttr.getExisted(AttrSeriesStackAndAxis.class); |
|
|
|
|
|
|
|
if (seriesStackAndAxis == null) { |
|
|
|
|
|
|
|
seriesStackAndAxis = new AttrSeriesStackAndAxis(); |
|
|
|
|
|
|
|
conditionAttr.addDataSeriesCondition(seriesStackAndAxis); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
seriesStackAndAxis.setXAxisIndex(XAxis.getSelectedIndex()); |
|
|
|
seriesStackAndAxis.setYAxisIndex(YAxis.getSelectedIndex()); |
|
|
|
seriesStackAndAxis.setYAxisIndex(YAxis.getSelectedIndex()); |
|
|
|
|
|
|
|
|
|
|
|
updateStackAndPercent(seriesStackAndAxis); |
|
|
|
updateStackAndPercent(seriesStackAndAxis); |
|
|
|
conditionAttr.addDataSeriesCondition(seriesStackAndAxis); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AbstractCondition con = (AbstractCondition) this.liteConditionPane.updateBean(); |
|
|
|
AbstractCondition con = (AbstractCondition) this.liteConditionPane.updateBean(); |
|
|
|
conditionAttr.setCondition(con); |
|
|
|
conditionAttr.setCondition(con); |
|
|
|