diff --git a/designer_chart/src/com/fr/design/ChartTypeInterfaceManager.java b/designer_chart/src/com/fr/design/ChartTypeInterfaceManager.java index c7baf652f..c850a4ae5 100644 --- a/designer_chart/src/com/fr/design/ChartTypeInterfaceManager.java +++ b/designer_chart/src/com/fr/design/ChartTypeInterfaceManager.java @@ -16,7 +16,7 @@ import com.fr.design.gui.core.WidgetOption; import com.fr.design.gui.frpane.AttributeChangeListener; import com.fr.design.mainframe.chart.AbstractChartAttrPane; import com.fr.design.mainframe.chart.ChartEditPane; -import com.fr.design.mainframe.chart.ThirdChartConfigPane; +import com.fr.design.mainframe.chart.ChartsConfigPane; import com.fr.design.mainframe.chart.gui.ChartDataPane; import com.fr.design.mainframe.chart.gui.ChartStylePane; import com.fr.design.mainframe.chart.gui.data.report.AbstractReportDataContentPane; @@ -432,7 +432,7 @@ public class ChartTypeInterfaceManager extends XMLFileManager implements ExtraCh return chartTypeInterfaces.get(priority).get(plotID).getChartEditPane(plotID); } - public ThirdChartConfigPane getChartConfigPane(String plotID) { + public ChartsConfigPane getChartConfigPane(String plotID) { Iterator iterator = chartTypeInterfaces.entrySet().iterator(); while (iterator.hasNext()) { Map.Entry entry = (Map.Entry) iterator.next(); @@ -444,7 +444,7 @@ public class ChartTypeInterfaceManager extends XMLFileManager implements ExtraCh return getChartConfigPane(ChartTypeManager.CHART_PRIORITY, plotID); } - private ThirdChartConfigPane getChartConfigPane(String priority, String plotID) { + private ChartsConfigPane getChartConfigPane(String priority, String plotID) { return chartTypeInterfaces.get(priority).get(plotID).getChartConfigPane(plotID); } diff --git a/designer_chart/src/com/fr/design/chart/fun/IndependentChartUIProvider.java b/designer_chart/src/com/fr/design/chart/fun/IndependentChartUIProvider.java index fd97d39f0..70fcc4ca4 100644 --- a/designer_chart/src/com/fr/design/chart/fun/IndependentChartUIProvider.java +++ b/designer_chart/src/com/fr/design/chart/fun/IndependentChartUIProvider.java @@ -6,7 +6,7 @@ import com.fr.design.condition.ConditionAttributesPane; import com.fr.design.gui.frpane.AttributeChangeListener; import com.fr.design.mainframe.chart.AbstractChartAttrPane; import com.fr.design.mainframe.chart.ChartEditPane; -import com.fr.design.mainframe.chart.ThirdChartConfigPane; +import com.fr.design.mainframe.chart.ChartsConfigPane; import com.fr.design.mainframe.chart.gui.ChartDataPane; import com.fr.design.mainframe.chart.gui.ChartStylePane; import com.fr.design.mainframe.chart.gui.data.report.AbstractReportDataContentPane; @@ -94,6 +94,6 @@ public interface IndependentChartUIProvider extends Level { ChartEditPane getChartEditPane(String plotID); - ThirdChartConfigPane getChartConfigPane(String plotID); + ChartsConfigPane getChartConfigPane(String plotID); } \ No newline at end of file diff --git a/designer_chart/src/com/fr/design/chart/fun/impl/AbstractIndependentChartUI.java b/designer_chart/src/com/fr/design/chart/fun/impl/AbstractIndependentChartUI.java index 6eef8ad0e..848fc4436 100644 --- a/designer_chart/src/com/fr/design/chart/fun/impl/AbstractIndependentChartUI.java +++ b/designer_chart/src/com/fr/design/chart/fun/impl/AbstractIndependentChartUI.java @@ -8,7 +8,7 @@ import com.fr.design.condition.ConditionAttributesPane; import com.fr.design.gui.frpane.AttributeChangeListener; import com.fr.design.mainframe.chart.AbstractChartAttrPane; import com.fr.design.mainframe.chart.ChartEditPane; -import com.fr.design.mainframe.chart.ThirdChartConfigPane; +import com.fr.design.mainframe.chart.ChartsConfigPane; import com.fr.design.mainframe.chart.gui.ChartDataPane; import com.fr.design.mainframe.chart.gui.ChartStylePane; import com.fr.general.ComparatorUtils; @@ -60,7 +60,7 @@ public abstract class AbstractIndependentChartUI implements IndependentChartUIPr public ChartEditPane getChartEditPane(String plotID){ return StableUtils.construct(ChartEditPane.class);} - public ThirdChartConfigPane getChartConfigPane(String plotID){return null;} + public ChartsConfigPane getChartConfigPane(String plotID){return null;} } \ No newline at end of file diff --git a/designer_chart/src/com/fr/design/chart/fun/impl/AbstractIndependentChartUIWithAPILevel.java b/designer_chart/src/com/fr/design/chart/fun/impl/AbstractIndependentChartUIWithAPILevel.java index c3db57216..8aa412a6e 100644 --- a/designer_chart/src/com/fr/design/chart/fun/impl/AbstractIndependentChartUIWithAPILevel.java +++ b/designer_chart/src/com/fr/design/chart/fun/impl/AbstractIndependentChartUIWithAPILevel.java @@ -8,7 +8,7 @@ import com.fr.design.condition.ConditionAttributesPane; import com.fr.design.gui.frpane.AttributeChangeListener; import com.fr.design.mainframe.chart.AbstractChartAttrPane; import com.fr.design.mainframe.chart.ChartEditPane; -import com.fr.design.mainframe.chart.ThirdChartConfigPane; +import com.fr.design.mainframe.chart.ChartsConfigPane; import com.fr.design.mainframe.chart.gui.ChartDataPane; import com.fr.design.mainframe.chart.gui.ChartStylePane; import com.fr.general.ComparatorUtils; @@ -71,5 +71,5 @@ public abstract class AbstractIndependentChartUIWithAPILevel implements Independ public ChartEditPane getChartEditPane(String plotID){ return StableUtils.construct(ChartEditPane.class);} - public ThirdChartConfigPane getChartConfigPane(String plotID){return null;} + public ChartsConfigPane getChartConfigPane(String plotID){return null;} } diff --git a/designer_chart/src/com/fr/design/chart/fun/impl/AbstractIndependentChartUI4Custom.java b/designer_chart/src/com/fr/design/chart/fun/impl/AbstractIndependentChartsUI.java similarity index 93% rename from designer_chart/src/com/fr/design/chart/fun/impl/AbstractIndependentChartUI4Custom.java rename to designer_chart/src/com/fr/design/chart/fun/impl/AbstractIndependentChartsUI.java index ae9b8176b..fbd3ce36f 100644 --- a/designer_chart/src/com/fr/design/chart/fun/impl/AbstractIndependentChartUI4Custom.java +++ b/designer_chart/src/com/fr/design/chart/fun/impl/AbstractIndependentChartsUI.java @@ -7,7 +7,7 @@ import com.fr.design.condition.ConditionAttributesPane; import com.fr.design.gui.frpane.AttributeChangeListener; import com.fr.design.mainframe.chart.AbstractChartAttrPane; import com.fr.design.mainframe.chart.ChartEditPane; -import com.fr.design.mainframe.chart.ThirdChartEditPane; +import com.fr.design.mainframe.chart.ChartsEditPane; import com.fr.design.mainframe.chart.gui.ChartDataPane; import com.fr.design.mainframe.chart.gui.ChartStylePane; import com.fr.design.mainframe.chart.gui.data.report.AbstractReportDataContentPane; @@ -26,7 +26,7 @@ import com.fr.stable.fun.mark.API; */ @API(level = IndependentChartUIProvider.CURRENT_API_LEVEL) -public abstract class AbstractIndependentChartUI4Custom extends AbstractProvider implements IndependentChartUIProvider { +public abstract class AbstractIndependentChartsUI extends AbstractProvider implements IndependentChartUIProvider { public String mark4Provider() { return getClass().getName(); @@ -97,7 +97,7 @@ public abstract class AbstractIndependentChartUI4Custom extends AbstractProvider @Override public ChartEditPane getChartEditPane(String plotID) { - return new ThirdChartEditPane(); + return new ChartsEditPane(); } } \ No newline at end of file diff --git a/designer_chart/src/com/fr/design/mainframe/chart/ThirdChartConfigPane.java b/designer_chart/src/com/fr/design/mainframe/chart/ChartsConfigPane.java similarity index 91% rename from designer_chart/src/com/fr/design/mainframe/chart/ThirdChartConfigPane.java rename to designer_chart/src/com/fr/design/mainframe/chart/ChartsConfigPane.java index 7cfbb417c..76e674eb8 100644 --- a/designer_chart/src/com/fr/design/mainframe/chart/ThirdChartConfigPane.java +++ b/designer_chart/src/com/fr/design/mainframe/chart/ChartsConfigPane.java @@ -8,7 +8,7 @@ import javax.swing.*; /** * Created by mengao on 2017/5/16. */ -public class ThirdChartConfigPane extends AbstractChartAttrPane { +public class ChartsConfigPane extends AbstractChartAttrPane { public final static String CHART_STYLE_TITLE = Inter.getLocText("Chart-Style_Name"); diff --git a/designer_chart/src/com/fr/design/mainframe/chart/ThirdChartEditPane.java b/designer_chart/src/com/fr/design/mainframe/chart/ChartsEditPane.java similarity index 71% rename from designer_chart/src/com/fr/design/mainframe/chart/ThirdChartEditPane.java rename to designer_chart/src/com/fr/design/mainframe/chart/ChartsEditPane.java index 76faee880..b012e9579 100644 --- a/designer_chart/src/com/fr/design/mainframe/chart/ThirdChartEditPane.java +++ b/designer_chart/src/com/fr/design/mainframe/chart/ChartsEditPane.java @@ -10,20 +10,20 @@ import java.util.ArrayList; /** * Created by mengao on 2017/5/3. */ -public class ThirdChartEditPane extends ChartEditPane { +public class ChartsEditPane extends ChartEditPane { - protected ThirdChartConfigPane thirdChartConfigPane; + protected ChartsConfigPane chartsConfigPane; - public ThirdChartEditPane() { + public ChartsEditPane() { this.setLayout(new BorderLayout()); paneList = new ArrayList(); dataPane4SupportCell = new ChartDataPane(listener); dataPane4SupportCell.setSupportCellData(true); - thirdChartConfigPane= new ThirdChartConfigPane(); + chartsConfigPane = new ChartsConfigPane(); paneList.add(dataPane4SupportCell); - paneList.add(thirdChartConfigPane); + paneList.add(chartsConfigPane); createTabsPane(); } @@ -34,7 +34,6 @@ public class ThirdChartEditPane extends ChartEditPane { */ public void reLayout(Chart currentChart) { if (currentChart != null) { - int chartIndex = getSelectedChartIndex(currentChart); this.removeAll(); this.setLayout(new BorderLayout()); paneList = new ArrayList(); @@ -45,9 +44,9 @@ public class ThirdChartEditPane extends ChartEditPane { } dataPane4SupportCell = createChartDataPane(plotID); - thirdChartConfigPane= ChartTypeInterfaceManager.getInstance().getChartConfigPane(plotID); + chartsConfigPane = ChartTypeInterfaceManager.getInstance().getChartConfigPane(plotID); paneList.add(dataPane4SupportCell); - paneList.add(thirdChartConfigPane); + paneList.add(chartsConfigPane); createTabsPane(); }