Browse Source

CHART-13962 为趋势线条件属性设置默认值

feature/big-screen
Qinghui.Liu 5 years ago
parent
commit
d11a8cd9ba
  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