diff --git a/designer-chart/src/main/java/com/fr/design/chartx/impl/DefaultTypePane.java b/designer-chart/src/main/java/com/fr/design/chartx/impl/DefaultTypePane.java index 07db589a9..daaeb8ec1 100644 --- a/designer-chart/src/main/java/com/fr/design/chartx/impl/DefaultTypePane.java +++ b/designer-chart/src/main/java/com/fr/design/chartx/impl/DefaultTypePane.java @@ -10,7 +10,7 @@ import com.fr.design.mainframe.chart.gui.type.ChartImagePane; /** * Created by shine on 2019/09/04. */ -public class DefaultTypePane extends AbstractChartTypePane { +public class DefaultTypePane extends AbstractChartTypePane { @Override protected String[] getTypeIconPath() { @@ -40,22 +40,22 @@ public class DefaultTypePane extends AbstractCh } @Override - public void populateBean(AbstractChartWithData ob) { + public void populateBean(T ob) { if (getTypeIconPath().length > 0) { for (ChartImagePane imagePane : typeDemo) { imagePane.isPressing = false; } - typeDemo.get(getSelectIndexInChart((T) ob)).isPressing = true; + typeDemo.get(getSelectIndexInChart(ob)).isPressing = true; checkDemosBackground(); } } @Override - public void updateBean(AbstractChartWithData ob) { + public void updateBean(T ob) { if (getTypeIconPath().length > 0) { for (int index = 0, len = typeDemo.size(); index < len; index++) { if (typeDemo.get(index).isPressing) { - setSelectIndexInChart((T) ob, index); + setSelectIndexInChart(ob, index); return; } }