Browse Source

Pull request #1692: CHART-13962 为趋势线条件属性设置默认值

Merge in DESIGN/design from ~QINGHUI.LIU/design:release/10.0 to release/10.0

* commit '325488f0368dc19411b2b80a19a402fe8c8eac2e':
  CHART-13962 为趋势线条件属性设置默认值
feature/big-screen
eason 5 years ago
parent
commit
1d2c097be8
  1. 11
      designer-chart/src/main/java/com/fr/van/chart/designer/other/condition/item/VanChartTrendLineConditionPane.java

11
designer-chart/src/main/java/com/fr/van/chart/designer/other/condition/item/VanChartTrendLineConditionPane.java

@ -2,7 +2,7 @@ package com.fr.van.chart.designer.other.condition.item;
import com.fr.chart.base.DataSeriesCondition;
import com.fr.design.condition.ConditionAttributesPane;
import com.fr.design.i18n.Toolkit;
import com.fr.plugin.chart.base.VanChartAttrTrendLine;
import com.fr.van.chart.designer.component.VanChartTrendLinePane;
@ -16,7 +16,7 @@ public class VanChartTrendLineConditionPane extends AbstractNormalMultiLineCondi
@Override
protected String getItemLabelString() {
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_TrendLine");
return Toolkit.i18nText("Fine-Design_Chart_TrendLine");
}
@Override
@ -34,7 +34,7 @@ public class VanChartTrendLineConditionPane extends AbstractNormalMultiLineCondi
* @return item的名称
*/
public String nameForPopupMenuItem() {
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_TrendLine");
return Toolkit.i18nText("Fine-Design_Chart_TrendLine");
}
@Override
@ -42,6 +42,10 @@ public class VanChartTrendLineConditionPane extends AbstractNormalMultiLineCondi
return nameForPopupMenuItem();
}
public void setDefault() {
trendLinePane.populate(new VanChartAttrTrendLine());
}
public void populate(DataSeriesCondition condition) {
if (condition instanceof VanChartAttrTrendLine) {
this.trendLinePane.populate((VanChartAttrTrendLine) condition);
@ -53,5 +57,4 @@ public class VanChartTrendLineConditionPane extends AbstractNormalMultiLineCondi
}
}
Loading…
Cancel
Save