|
|
@ -57,8 +57,7 @@ public class VanChartCustomStackAndAxisConditionPane extends BasicBeanPane<Condi |
|
|
|
liteConditionPane.setPreferredSize(new Dimension(300, 300)); |
|
|
|
liteConditionPane.setPreferredSize(new Dimension(300, 300)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private JPanel createDeployPane() |
|
|
|
private JPanel createDeployPane() { |
|
|
|
{ |
|
|
|
|
|
|
|
isStacked = new UIButtonGroup<Integer>(new String[]{Inter.getLocText("Plugin-ChartF_YES"), Inter.getLocText("Plugin-ChartF_NO")}); |
|
|
|
isStacked = new UIButtonGroup<Integer>(new String[]{Inter.getLocText("Plugin-ChartF_YES"), Inter.getLocText("Plugin-ChartF_NO")}); |
|
|
|
isPercentStacked = new UIButtonGroup<Integer>(new String[]{Inter.getLocText("Plugin-ChartF_YES"), Inter.getLocText("Plugin-ChartF_NO")}); |
|
|
|
isPercentStacked = new UIButtonGroup<Integer>(new String[]{Inter.getLocText("Plugin-ChartF_YES"), Inter.getLocText("Plugin-ChartF_NO")}); |
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
double p = TableLayout.PREFERRED; |
|
|
@ -114,18 +113,6 @@ public class VanChartCustomStackAndAxisConditionPane extends BasicBeanPane<Condi |
|
|
|
checkBox(); |
|
|
|
checkBox(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void updateBean(ConditionAttr conditionAttr){ |
|
|
|
|
|
|
|
AttrSeriesStackAndAxis seriesStackAndAxis = (AttrSeriesStackAndAxis)conditionAttr.getExisted(AttrSeriesStackAndAxis.class); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
seriesStackAndAxis.setXAxisIndex(XAxis.getSelectedIndex()); |
|
|
|
|
|
|
|
seriesStackAndAxis.setYAxisIndex(YAxis.getSelectedIndex()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
updateStackAndPercent(seriesStackAndAxis); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AbstractCondition con = (AbstractCondition) this.liteConditionPane.updateBean(); |
|
|
|
|
|
|
|
conditionAttr.setCondition(con); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected void updateStackAndPercent(AttrSeriesStackAndAxis seriesStackAndAxis) { |
|
|
|
protected void updateStackAndPercent(AttrSeriesStackAndAxis seriesStackAndAxis) { |
|
|
|
seriesStackAndAxis.setStacked(isStacked.getSelectedIndex() == 0); |
|
|
|
seriesStackAndAxis.setStacked(isStacked.getSelectedIndex() == 0); |
|
|
|
if (seriesStackAndAxis.isStacked()) { |
|
|
|
if (seriesStackAndAxis.isStacked()) { |
|
|
@ -137,8 +124,15 @@ public class VanChartCustomStackAndAxisConditionPane extends BasicBeanPane<Condi |
|
|
|
|
|
|
|
|
|
|
|
public ConditionAttr updateBean() { |
|
|
|
public ConditionAttr updateBean() { |
|
|
|
ConditionAttr conditionAttr = new ConditionAttr(); |
|
|
|
ConditionAttr conditionAttr = new ConditionAttr(); |
|
|
|
conditionAttr.addDataSeriesCondition(new AttrSeriesStackAndAxis()); |
|
|
|
AttrSeriesStackAndAxis seriesStackAndAxis = new AttrSeriesStackAndAxis(); |
|
|
|
updateBean(conditionAttr); |
|
|
|
seriesStackAndAxis.setXAxisIndex(XAxis.getSelectedIndex()); |
|
|
|
|
|
|
|
seriesStackAndAxis.setYAxisIndex(YAxis.getSelectedIndex()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
updateStackAndPercent(seriesStackAndAxis); |
|
|
|
|
|
|
|
conditionAttr.addDataSeriesCondition(seriesStackAndAxis); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AbstractCondition con = (AbstractCondition) this.liteConditionPane.updateBean(); |
|
|
|
|
|
|
|
conditionAttr.setCondition(con); |
|
|
|
return conditionAttr; |
|
|
|
return conditionAttr; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|