Browse Source

CHART-8970 旧版本图表 国际化+优先级问题

bugfix/10.0
zheng 6 years ago
parent
commit
1c50203e9d
  1. 44
      designer-chart/src/main/java/com/fr/design/ChartTypeInterfaceManager.java
  2. 3
      designer-chart/src/main/java/com/fr/design/chart/ChartTypePane.java
  3. 11
      designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/AreaPlotPane.java
  4. 16
      designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/BarPlotPane.java
  5. 11
      designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/BubblePlotPane.java
  6. 16
      designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/ColumnPlotPane.java
  7. 11
      designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/CustomPlotPane.java
  8. 13
      designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/DonutPlotPane.java
  9. 6
      designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/FunnelPlotPane.java
  10. 11
      designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/GanttPlotPane.java
  11. 17
      designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/GisMapPlotPane.java
  12. 11
      designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/LinePlotPane.java
  13. 5
      designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/MapPlotPane.java
  14. 20
      designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/MeterPlotPane.java
  15. 18
      designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/PiePlotPane.java
  16. 11
      designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/RadarPlotPane.java
  17. 11
      designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/RangePlotPane.java
  18. 11
      designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/StockPlotPane.java
  19. 12
      designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/XYScatterPlotPane.java
  20. 3
      designer-realize/src/main/java/com/fr/poly/PolyComponentsBar.java

44
designer-chart/src/main/java/com/fr/design/ChartTypeInterfaceManager.java

@ -41,6 +41,7 @@ import com.fr.design.module.DesignModuleFactory;
import com.fr.form.ui.ChartEditor; import com.fr.form.ui.ChartEditor;
import com.fr.general.GeneralContext; import com.fr.general.GeneralContext;
import com.fr.general.IOUtils; import com.fr.general.IOUtils;
import com.fr.general.Inter;
import com.fr.plugin.chart.PiePlot4VanChart; import com.fr.plugin.chart.PiePlot4VanChart;
import com.fr.plugin.chart.area.VanChartAreaPlot; import com.fr.plugin.chart.area.VanChartAreaPlot;
import com.fr.plugin.chart.bubble.VanChartBubblePlot; import com.fr.plugin.chart.bubble.VanChartBubblePlot;
@ -99,7 +100,8 @@ import java.util.LinkedHashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import static com.fr.chart.charttypes.ChartTypeManager.CHART_PRIORITY; import static com.fr.chart.charttypes.ChartTypeManager.DEFAULT_PRIORITY;
import static com.fr.chart.charttypes.ChartTypeManager.DEPRECATED_CHART_PRIORITY;
import static com.fr.chart.charttypes.ChartTypeManager.VAN_CHART_PRIORITY; import static com.fr.chart.charttypes.ChartTypeManager.VAN_CHART_PRIORITY;
/** /**
@ -165,7 +167,7 @@ public class ChartTypeInterfaceManager implements ExtraChartDesignClassManagerPr
} }
String iconPath = ChartTypeInterfaceManager.getInstance().getIconPath(plotID); String iconPath = ChartTypeInterfaceManager.getInstance().getIconPath(plotID);
Icon icon = IOUtils.readIcon(iconPath); Icon icon = IOUtils.readIcon(iconPath);
child[index] = new ChartWidgetOption(com.fr.design.i18n.Toolkit.i18nText(bean.getName()), icon, ChartEditor.class, plotID); child[index] = new ChartWidgetOption(Inter.getLocText(bean.getName()), icon, ChartEditor.class, plotID);
index++; index++;
} }
@ -198,23 +200,23 @@ public class ChartTypeInterfaceManager implements ExtraChartDesignClassManagerPr
private static void readDefault() { private static void readDefault() {
addChartTypeInterface(CHART_PRIORITY, ChartConstants.COLUMN_CHART, new ColumnIndependentChartInterface()); addChartTypeInterface(DEPRECATED_CHART_PRIORITY, ChartConstants.COLUMN_CHART, new ColumnIndependentChartInterface());
addChartTypeInterface(CHART_PRIORITY, ChartConstants.LINE_CHART, new LineIndependentChartInterface()); addChartTypeInterface(DEPRECATED_CHART_PRIORITY, ChartConstants.LINE_CHART, new LineIndependentChartInterface());
addChartTypeInterface(CHART_PRIORITY, ChartConstants.BAR_CHART, new BarIndependentChartInterface()); addChartTypeInterface(DEPRECATED_CHART_PRIORITY, ChartConstants.BAR_CHART, new BarIndependentChartInterface());
addChartTypeInterface(CHART_PRIORITY, ChartConstants.PIE_CHART, new PieIndependentChartInterface()); addChartTypeInterface(DEPRECATED_CHART_PRIORITY, ChartConstants.PIE_CHART, new PieIndependentChartInterface());
addChartTypeInterface(CHART_PRIORITY, ChartConstants.AREA_CHART, new AreaIndependentChartInterface()); addChartTypeInterface(DEPRECATED_CHART_PRIORITY, ChartConstants.AREA_CHART, new AreaIndependentChartInterface());
addChartTypeInterface(CHART_PRIORITY, ChartConstants.SCATTER_CHART, new XYScatterIndependentChartInterface()); addChartTypeInterface(DEPRECATED_CHART_PRIORITY, ChartConstants.SCATTER_CHART, new XYScatterIndependentChartInterface());
addChartTypeInterface(CHART_PRIORITY, ChartConstants.BUBBLE_CHART, new BubbleIndependentChartInterface()); addChartTypeInterface(DEPRECATED_CHART_PRIORITY, ChartConstants.BUBBLE_CHART, new BubbleIndependentChartInterface());
addChartTypeInterface(CHART_PRIORITY, ChartConstants.RADAR_CHART, new RadarIndependentChartInterface()); addChartTypeInterface(DEPRECATED_CHART_PRIORITY, ChartConstants.RADAR_CHART, new RadarIndependentChartInterface());
addChartTypeInterface(CHART_PRIORITY, ChartConstants.STOCK_CHART, new StockIndependentChartInterface()); addChartTypeInterface(DEPRECATED_CHART_PRIORITY, ChartConstants.STOCK_CHART, new StockIndependentChartInterface());
addChartTypeInterface(CHART_PRIORITY, ChartConstants.METER_CHART, new MeterIndependentChartInterface()); addChartTypeInterface(DEPRECATED_CHART_PRIORITY, ChartConstants.METER_CHART, new MeterIndependentChartInterface());
addChartTypeInterface(CHART_PRIORITY, ChartConstants.RANGE_CHART, new RangeIndependentChartInterface()); addChartTypeInterface(DEPRECATED_CHART_PRIORITY, ChartConstants.RANGE_CHART, new RangeIndependentChartInterface());
addChartTypeInterface(CHART_PRIORITY, ChartConstants.CUSTOM_CHART, new CustomIndependentChartInterface()); addChartTypeInterface(DEPRECATED_CHART_PRIORITY, ChartConstants.CUSTOM_CHART, new CustomIndependentChartInterface());
addChartTypeInterface(CHART_PRIORITY, ChartConstants.GANTT_CHART, new GanttIndependentChartInterface()); addChartTypeInterface(DEPRECATED_CHART_PRIORITY, ChartConstants.GANTT_CHART, new GanttIndependentChartInterface());
addChartTypeInterface(CHART_PRIORITY, ChartConstants.DONUT_CHART, new DonutIndependentChartInterface()); addChartTypeInterface(DEPRECATED_CHART_PRIORITY, ChartConstants.DONUT_CHART, new DonutIndependentChartInterface());
addChartTypeInterface(CHART_PRIORITY, ChartConstants.MAP_CHART, new MapIndependentChartInterface()); addChartTypeInterface(DEPRECATED_CHART_PRIORITY, ChartConstants.MAP_CHART, new MapIndependentChartInterface());
addChartTypeInterface(CHART_PRIORITY, ChartConstants.GIS_CHAER, new GisMapIndependentChartInterface()); addChartTypeInterface(DEPRECATED_CHART_PRIORITY, ChartConstants.GIS_CHAER, new GisMapIndependentChartInterface());
addChartTypeInterface(CHART_PRIORITY, ChartConstants.FUNNEL_CHART, new FunnelIndependentChartInterface()); addChartTypeInterface(DEPRECATED_CHART_PRIORITY, ChartConstants.FUNNEL_CHART, new FunnelIndependentChartInterface());
} }
private static void addChartTypeInterface(String priority, String plotID, IndependentChartUIProvider provider) { private static void addChartTypeInterface(String priority, String plotID, IndependentChartUIProvider provider) {
@ -462,7 +464,7 @@ public class ChartTypeInterfaceManager implements ExtraChartDesignClassManagerPr
public void mount(PluginSingleInjection injection) { public void mount(PluginSingleInjection injection) {
if (isIndependentChartUIProvider(injection)) { if (isIndependentChartUIProvider(injection)) {
String priority = injection.getAttribute("priority", CHART_PRIORITY); String priority = injection.getAttribute("priority", DEFAULT_PRIORITY);
String plotID = injection.getAttribute("plotID"); String plotID = injection.getAttribute("plotID");
IndependentChartUIProvider instance = (IndependentChartUIProvider) injection.getObject(); IndependentChartUIProvider instance = (IndependentChartUIProvider) injection.getObject();
addChartTypeInterface(priority, plotID, instance); addChartTypeInterface(priority, plotID, instance);
@ -474,7 +476,7 @@ public class ChartTypeInterfaceManager implements ExtraChartDesignClassManagerPr
public void demount(PluginSingleInjection injection) { public void demount(PluginSingleInjection injection) {
if (isIndependentChartUIProvider(injection)) { if (isIndependentChartUIProvider(injection)) {
String priority = injection.getAttribute("priority", CHART_PRIORITY); String priority = injection.getAttribute("priority", DEFAULT_PRIORITY);
String plotID = injection.getAttribute("plotID"); String plotID = injection.getAttribute("plotID");
removeChartTypeInterface(priority, plotID); removeChartTypeInterface(priority, plotID);
} }

3
designer-chart/src/main/java/com/fr/design/chart/ChartTypePane.java

@ -14,6 +14,7 @@ import com.fr.chart.charttypes.ChartTypeManager;
import com.fr.design.gui.ilable.UILabel; import com.fr.design.gui.ilable.UILabel;
import com.fr.design.layout.FRGUIPaneFactory; import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.design.utils.gui.GUICoreUtils; import com.fr.design.utils.gui.GUICoreUtils;
import com.fr.general.Inter;
import com.fr.license.exception.RegistEditionException; import com.fr.license.exception.RegistEditionException;
import com.fr.license.function.VT4FR; import com.fr.license.function.VT4FR;
import com.fr.log.FineLoggerFactory; import com.fr.log.FineLoggerFactory;
@ -67,7 +68,7 @@ public class ChartTypePane extends ChartCommonWizardPane {
mainTypeList = new JList(defaultListModel); mainTypeList = new JList(defaultListModel);
for (int i = 0; i < typeName.length; i++) { for (int i = 0; i < typeName.length; i++) {
defaultListModel.insertElementAt(com.fr.design.i18n.Toolkit.i18nText(typeName[i].getName()), i); defaultListModel.insertElementAt(Inter.getLocText(typeName[i].getName()), i);
} }
mainTypeList.addListSelectionListener(listSelectionListener); mainTypeList.addListSelectionListener(listSelectionListener);

11
designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/AreaPlotPane.java

@ -8,6 +8,7 @@ import com.fr.chart.chartattr.Chart;
import com.fr.chart.chartattr.Plot; import com.fr.chart.chartattr.Plot;
import com.fr.chart.chartglyph.ConditionCollection; import com.fr.chart.chartglyph.ConditionCollection;
import com.fr.chart.charttypes.AreaIndependentChart; import com.fr.chart.charttypes.AreaIndependentChart;
import com.fr.general.Inter;
/** /**
@ -33,9 +34,9 @@ public class AreaPlotPane extends AbstractChartTypePane{
@Override @Override
protected String[] getTypeTipName() { protected String[] getTypeTipName() {
String area = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_New_Area"); String area = Inter.getLocText("Fine-Engine_Chart_Type_Area");
String stack = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Stacked"); String stack = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Stacked");
String percent = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Use_Percent"); String percent = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Use_Percent");
String td = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_3D"); String td = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_3D");
return new String[]{ return new String[]{
stack + area, stack + area,
@ -139,8 +140,8 @@ public class AreaPlotPane extends AbstractChartTypePane{
* @return 界面标题 * @return 界面标题
*/ */
public String title4PopupWindow() { public String title4PopupWindow() {
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_New_Area"); return Inter.getLocText("Fine-Engine_Chart_Type_Area");
} }
public Chart getDefaultChart() { public Chart getDefaultChart() {
return AreaIndependentChart.areaChartTypes[0]; return AreaIndependentChart.areaChartTypes[0];

16
designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/BarPlotPane.java

@ -6,6 +6,8 @@ import com.fr.chart.chartattr.BarPlot;
import com.fr.chart.chartattr.Chart; import com.fr.chart.chartattr.Chart;
import com.fr.chart.chartattr.Plot; import com.fr.chart.chartattr.Plot;
import com.fr.chart.charttypes.BarIndependentChart; import com.fr.chart.charttypes.BarIndependentChart;
import com.fr.design.i18n.Toolkit;
import com.fr.general.Inter;
import com.fr.log.FineLoggerFactory; import com.fr.log.FineLoggerFactory;
@ -31,16 +33,16 @@ public class BarPlotPane extends AbstractBarPane{
@Override @Override
protected String[] getTypeTipName() { protected String[] getTypeTipName() {
String bar = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_New_Bar"); String bar = Inter.getLocText("Fine-Engine_Chart_Type_Bar");
String stack = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Stacked"); String stack = Toolkit.i18nText("Fine-Design_Chart_Stacked");
String percent = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Use_Percent"); String percent = Toolkit.i18nText("Fine-Design_Chart_Use_Percent");
String td = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_3D"); String td = Toolkit.i18nText("Fine-Design_Chart_3D");
return new String[]{ return new String[]{
bar, bar,
stack + bar, stack + bar,
percent + stack + bar, percent + stack + bar,
td + bar, td + bar,
td + bar + "(" + com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Direction_Horizontal") + ")", td + bar + "(" + Toolkit.i18nText("Fine-Design_Chart_Direction_Horizontal") + ")",
td + stack + bar, td + stack + bar,
td + percent + stack + bar td + percent + stack + bar
}; };
@ -65,8 +67,8 @@ public class BarPlotPane extends AbstractBarPane{
* @return 界面标题 * @return 界面标题
*/ */
public String title4PopupWindow() { public String title4PopupWindow() {
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_New_Bar"); return Inter.getLocText("Fine-Engine_Chart_Type_Bar");
} }
protected Plot getSelectedClonedPlot(){ protected Plot getSelectedClonedPlot(){
Chart[] barChart = BarIndependentChart.barChartTypes; Chart[] barChart = BarIndependentChart.barChartTypes;

11
designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/BubblePlotPane.java

@ -4,6 +4,7 @@ import com.fr.chart.base.ChartConstants;
import com.fr.chart.chartattr.BubblePlot; import com.fr.chart.chartattr.BubblePlot;
import com.fr.chart.chartattr.Chart; import com.fr.chart.chartattr.Chart;
import com.fr.chart.charttypes.BubbleIndependentChart; import com.fr.chart.charttypes.BubbleIndependentChart;
import com.fr.general.Inter;
/** /**
@ -25,9 +26,9 @@ public class BubblePlotPane extends AbstractChartTypePane {
@Override @Override
protected String[] getTypeTipName() { protected String[] getTypeTipName() {
return new String[]{ return new String[]{
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Bubble_Chart") Inter.getLocText("Fine-Engine_Chart_Bubble_Chart")
}; };
} }
@Override @Override
protected String[] getTypeLayoutPath() { protected String[] getTypeLayoutPath() {
@ -44,8 +45,8 @@ public class BubblePlotPane extends AbstractChartTypePane {
* @return 界面标题 * @return 界面标题
*/ */
public String title4PopupWindow() { public String title4PopupWindow() {
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Bubble_Chart"); return Inter.getLocText("Fine-Engine_Chart_Bubble_Chart");
} }
/** /**
* 保存界面属性 * 保存界面属性

16
designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/ColumnPlotPane.java

@ -5,6 +5,8 @@ import com.fr.chart.chartattr.BarPlot;
import com.fr.chart.chartattr.Chart; import com.fr.chart.chartattr.Chart;
import com.fr.chart.chartattr.Plot; import com.fr.chart.chartattr.Plot;
import com.fr.chart.charttypes.ColumnIndependentChart; import com.fr.chart.charttypes.ColumnIndependentChart;
import com.fr.design.i18n.Toolkit;
import com.fr.general.Inter;
import com.fr.log.FineLoggerFactory; import com.fr.log.FineLoggerFactory;
@ -30,16 +32,16 @@ public class ColumnPlotPane extends AbstractBarPane{
@Override @Override
protected String[] getTypeTipName() { protected String[] getTypeTipName() {
String column = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_New_Column"); String column = Inter.getLocText("Fine-Engine_Chart_Type_Column");
String stack = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Stacked"); String stack = Toolkit.i18nText("Fine-Design_Chart_Stacked");
String percent = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Use_Percent"); String percent = Toolkit.i18nText("Fine-Design_Chart_Use_Percent");
String td = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_3D"); String td = Toolkit.i18nText("Fine-Design_Chart_3D");
return new String[]{ return new String[]{
column, column,
stack + column, stack + column,
percent + stack + column, percent + stack + column,
td + column, td + column,
td + column + "(" + com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Direction_Horizontal") + ")", td + column + "(" + Toolkit.i18nText("Fine-Design_Chart_Direction_Horizontal") + ")",
td + stack + column, td + stack + column,
td + percent + stack + column td + percent + stack + column
}; };
@ -63,8 +65,8 @@ public class ColumnPlotPane extends AbstractBarPane{
* @return 界面标题 * @return 界面标题
*/ */
public String title4PopupWindow() { public String title4PopupWindow() {
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_New_Column"); return Inter.getLocText("Fine-Engine_Chart_Type_Column");
} }
protected Plot getSelectedClonedPlot(){ protected Plot getSelectedClonedPlot(){
Chart[] barChart = ColumnIndependentChart.columnChartTypes; Chart[] barChart = ColumnIndependentChart.columnChartTypes;

11
designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/CustomPlotPane.java

@ -3,6 +3,7 @@ package com.fr.design.mainframe.chart.gui.type;
import com.fr.chart.base.ChartConstants; import com.fr.chart.base.ChartConstants;
import com.fr.chart.chartattr.Chart; import com.fr.chart.chartattr.Chart;
import com.fr.chart.charttypes.CustomIndependentChart; import com.fr.chart.charttypes.CustomIndependentChart;
import com.fr.general.Inter;
/** /**
@ -26,9 +27,9 @@ public class CustomPlotPane extends AbstractChartTypePane {
@Override @Override
protected String[] getTypeTipName() { protected String[] getTypeTipName() {
return new String[]{ return new String[]{
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Combine_Chart") Inter.getLocText("Fine-Engine_Chart_Type_Combine")
}; };
} }
@Override @Override
protected String[] getTypeLayoutPath() { protected String[] getTypeLayoutPath() {
@ -45,8 +46,8 @@ public class CustomPlotPane extends AbstractChartTypePane {
* @return 界面标题 * @return 界面标题
*/ */
public String title4PopupWindow() { public String title4PopupWindow() {
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Combine_Chart"); return Inter.getLocText("Fine-Engine_Chart_Type_Combine");
} }
/** /**
* 更新界面内容 * 更新界面内容

13
designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/DonutPlotPane.java

@ -10,10 +10,11 @@ import com.fr.chart.chartattr.Donut3DPlot;
import com.fr.chart.chartattr.Plot; import com.fr.chart.chartattr.Plot;
import com.fr.chart.chartglyph.ConditionCollection; import com.fr.chart.chartglyph.ConditionCollection;
import com.fr.chart.charttypes.DonutIndependentChart; import com.fr.chart.charttypes.DonutIndependentChart;
import com.fr.design.i18n.Toolkit;
import com.fr.general.Inter;
import com.fr.stable.Constants; import com.fr.stable.Constants;
import java.awt.*; import java.awt.Color;
import java.text.DecimalFormat; import java.text.DecimalFormat;
/** /**
@ -35,10 +36,10 @@ public class DonutPlotPane extends AbstractChartTypePane{
@Override @Override
protected String[] getTypeTipName() { protected String[] getTypeTipName() {
String donut = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Donut_Chart"); String donut = Inter.getLocText("Fine-Engine_Chart_Type_Donut");
return new String[]{ return new String[]{
donut, donut,
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_3D") + donut Toolkit.i18nText("Fine-Design_Chart_3D") + donut
}; };
} }
@ -103,8 +104,8 @@ public class DonutPlotPane extends AbstractChartTypePane{
* @return 标题 * @return 标题
*/ */
public String title4PopupWindow() { public String title4PopupWindow() {
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Donut_Chart"); return Inter.getLocText("Fine-Engine_Chart_Type_Donut");
} }
/** /**
* 是否有坐标轴 * 是否有坐标轴

6
designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/FunnelPlotPane.java

@ -7,7 +7,7 @@ import com.fr.chart.chartattr.Chart;
import com.fr.chart.chartattr.FunnelPlot; import com.fr.chart.chartattr.FunnelPlot;
import com.fr.chart.chartattr.Plot; import com.fr.chart.chartattr.Plot;
import com.fr.chart.charttypes.FunnelIndependentChart; import com.fr.chart.charttypes.FunnelIndependentChart;
import com.fr.general.Inter;
import java.text.DecimalFormat; import java.text.DecimalFormat;
@ -31,7 +31,7 @@ public class FunnelPlotPane extends AbstractChartTypePane{
@Override @Override
protected String[] getTypeTipName() { protected String[] getTypeTipName() {
return new String[]{ return new String[]{
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_New_Funnel") Inter.getLocText("Fine-Engine_Chart_Type_Funnel")
}; };
} }
@ -50,7 +50,7 @@ public class FunnelPlotPane extends AbstractChartTypePane{
* @return 界面标题 * @return 界面标题
*/ */
public String title4PopupWindow() { public String title4PopupWindow() {
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_New_Funnel"); return Inter.getLocText("Fine-Engine_Chart_Type_Funnel");
} }
/** /**

11
designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/GanttPlotPane.java

@ -3,6 +3,7 @@ package com.fr.design.mainframe.chart.gui.type;
import com.fr.chart.base.ChartConstants; import com.fr.chart.base.ChartConstants;
import com.fr.chart.chartattr.Chart; import com.fr.chart.chartattr.Chart;
import com.fr.chart.charttypes.GanttIndependentChart; import com.fr.chart.charttypes.GanttIndependentChart;
import com.fr.general.Inter;
/** /**
@ -24,9 +25,9 @@ public class GanttPlotPane extends AbstractChartTypePane{
@Override @Override
protected String[] getTypeTipName() { protected String[] getTypeTipName() {
return new String[]{ return new String[]{
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Gantt_Chart") Inter.getLocText("Fine-Engine_Chart_Type_Gantt")
}; };
} }
@Override @Override
protected String getPlotTypeID() { protected String getPlotTypeID() {
@ -47,8 +48,8 @@ public class GanttPlotPane extends AbstractChartTypePane{
* @return 界面标题 * @return 界面标题
*/ */
public String title4PopupWindow() { public String title4PopupWindow() {
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Gantt_Chart"); return Inter.getLocText("Fine-Engine_Chart_Type_Gantt");
} }
/** /**
* 保存界面属性 * 保存界面属性

17
designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/GisMapPlotPane.java

@ -11,11 +11,12 @@ import com.fr.design.gui.itextfield.UITextField;
import com.fr.design.layout.FRGUIPaneFactory; import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.design.layout.TableLayout; import com.fr.design.layout.TableLayout;
import com.fr.design.layout.TableLayoutHelper; import com.fr.design.layout.TableLayoutHelper;
import com.fr.general.Inter;
import com.fr.log.FineLoggerFactory; import com.fr.log.FineLoggerFactory;
import javax.swing.JPanel;
import javax.swing.*; import java.awt.BorderLayout;
import java.awt.*; import java.awt.Component;
public class GisMapPlotPane extends AbstractChartTypePane{ public class GisMapPlotPane extends AbstractChartTypePane{
@ -72,9 +73,9 @@ public class GisMapPlotPane extends AbstractChartTypePane{
@Override @Override
protected String[] getTypeTipName() { protected String[] getTypeTipName() {
return new String[]{ return new String[]{
"gis"+com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Map_Map") Inter.getLocText("Fine-Engine_Chart_GIS_Map")
}; };
} }
@Override @Override
protected String getPlotTypeID() { protected String getPlotTypeID() {
@ -172,8 +173,8 @@ public class GisMapPlotPane extends AbstractChartTypePane{
* @return 标题 * @return 标题
*/ */
public String title4PopupWindow() { public String title4PopupWindow() {
return "gis"+com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Map_Map"); return Inter.getLocText("Fine-Engine_Chart_GIS_Map");
} }
/** /**
* 是否有坐标轴 * 是否有坐标轴

11
designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/LinePlotPane.java

@ -5,6 +5,7 @@ import com.fr.chart.chartattr.Chart;
import com.fr.chart.chartattr.LinePlot; import com.fr.chart.chartattr.LinePlot;
import com.fr.chart.chartattr.Plot; import com.fr.chart.chartattr.Plot;
import com.fr.chart.charttypes.LineIndependentChart; import com.fr.chart.charttypes.LineIndependentChart;
import com.fr.general.Inter;
import com.fr.log.FineLoggerFactory; import com.fr.log.FineLoggerFactory;
@ -21,9 +22,9 @@ public class LinePlotPane extends AbstractChartTypePane{
@Override @Override
protected String[] getTypeTipName() { protected String[] getTypeTipName() {
return new String[]{ return new String[]{
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Line_Chart") Inter.getLocText("Fine-Engine_Chart_Type_Line")
}; };
} }
@Override @Override
protected String[] getTypeLayoutPath() { protected String[] getTypeLayoutPath() {
@ -83,8 +84,8 @@ public class LinePlotPane extends AbstractChartTypePane{
} }
public String title4PopupWindow() { public String title4PopupWindow() {
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Line_Chart"); return Inter.getLocText("Fine-Engine_Chart_Type_Line");
} }
public Chart getDefaultChart() { public Chart getDefaultChart() {
return LineIndependentChart.lineChartTypes[0]; return LineIndependentChart.lineChartTypes[0];

5
designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/MapPlotPane.java

@ -10,6 +10,7 @@ import com.fr.chart.charttypes.MapIndependentChart;
import com.fr.design.chart.series.PlotSeries.MapGroupExtensionPane; import com.fr.design.chart.series.PlotSeries.MapGroupExtensionPane;
import com.fr.design.chart.series.PlotStyle.ChartSelectDemoPane; import com.fr.design.chart.series.PlotStyle.ChartSelectDemoPane;
import com.fr.design.layout.FRGUIPaneFactory; import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.general.Inter;
import com.fr.log.FineLoggerFactory; import com.fr.log.FineLoggerFactory;
import javax.swing.JPanel; import javax.swing.JPanel;
@ -71,8 +72,8 @@ public class MapPlotPane extends AbstractChartTypePane {
* @return 界面标题 * @return 界面标题
*/ */
public String title4PopupWindow() { public String title4PopupWindow() {
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Map_Map"); return Inter.getLocText("Fine-Engine_Chart_SVG_MAP");
} }
/** /**
* 保存界面属性 * 保存界面属性

20
designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/MeterPlotPane.java

@ -6,6 +6,8 @@ import com.fr.chart.chartattr.MeterPlot;
import com.fr.chart.chartattr.Plot; import com.fr.chart.chartattr.Plot;
import com.fr.chart.chartglyph.MeterStyle; import com.fr.chart.chartglyph.MeterStyle;
import com.fr.chart.charttypes.MeterIndependentChart; import com.fr.chart.charttypes.MeterIndependentChart;
import com.fr.design.i18n.Toolkit;
import com.fr.general.Inter;
import com.fr.log.FineLoggerFactory; import com.fr.log.FineLoggerFactory;
@ -31,9 +33,9 @@ public class MeterPlotPane extends AbstractChartTypePane {
@Override @Override
protected String[] getTypeTipName() { protected String[] getTypeTipName() {
String meter = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_New_Gauge"); String meter = Inter.getLocText("Fine-Engine_Chart_Type_Meter");
return new String[]{ return new String[]{
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Mode_Custom") + meter, Toolkit.i18nText("Fine-Design_Chart_Mode_Custom") + meter,
meter + "1", meter + "1",
meter + "2" meter + "2"
}; };
@ -77,13 +79,13 @@ public class MeterPlotPane extends AbstractChartTypePane {
* @return 界面标题 * @return 界面标题
*/ */
public String title4PopupWindow() { public String title4PopupWindow() {
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_New_Gauge"); return Inter.getLocText("Fine-Engine_Chart_Type_Meter");
} }
/** /**
* 保存界面属性 * 保存界面属性
*/ */
public void updateBean(Chart chart) { public void updateBean(Chart chart) {
if(needsResetChart(chart)){ if(needsResetChart(chart)){
resetChart(chart); resetChart(chart);
} }

18
designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/PiePlotPane.java

@ -10,10 +10,10 @@ import com.fr.chart.chartattr.PiePlot;
import com.fr.chart.chartattr.Plot; import com.fr.chart.chartattr.Plot;
import com.fr.chart.chartglyph.ConditionCollection; import com.fr.chart.chartglyph.ConditionCollection;
import com.fr.chart.charttypes.PieIndependentChart; import com.fr.chart.charttypes.PieIndependentChart;
import com.fr.general.Inter;
import com.fr.stable.Constants; import com.fr.stable.Constants;
import java.awt.*; import java.awt.Color;
import java.text.DecimalFormat; import java.text.DecimalFormat;
/** /**
@ -36,11 +36,11 @@ public class PiePlotPane extends AbstractChartTypePane{
@Override @Override
protected String[] getTypeTipName() { protected String[] getTypeTipName() {
String pie = com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_New_Pie"); String pie = Inter.getLocText("Fine-Engine_Chart_Type_Pie");
return new String[]{ return new String[]{
pie, pie,
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_3D") + pie com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_3D") + pie
}; };
} }
@Override @Override
@ -63,8 +63,8 @@ public class PiePlotPane extends AbstractChartTypePane{
* @return 界面标题 * @return 界面标题
*/ */
public String title4PopupWindow() { public String title4PopupWindow() {
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_New_Pie"); return Inter.getLocText("Fine-Engine_Chart_Type_Pie");
} }
private void createPieCondition(Plot plot) { private void createPieCondition(Plot plot) {
ConditionCollection collection = plot.getConditionCollection(); ConditionCollection collection = plot.getConditionCollection();

11
designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/RadarPlotPane.java

@ -3,6 +3,7 @@ package com.fr.design.mainframe.chart.gui.type;
import com.fr.chart.base.ChartConstants; import com.fr.chart.base.ChartConstants;
import com.fr.chart.chartattr.Chart; import com.fr.chart.chartattr.Chart;
import com.fr.chart.charttypes.RadarIndependentChart; import com.fr.chart.charttypes.RadarIndependentChart;
import com.fr.general.Inter;
/** /**
@ -24,9 +25,9 @@ public class RadarPlotPane extends AbstractChartTypePane{
@Override @Override
protected String[] getTypeTipName() { protected String[] getTypeTipName() {
return new String[]{ return new String[]{
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Radar_Chart") Inter.getLocText("Fine-Engine_Chart_Type_Radar")
}; };
} }
@Override @Override
protected String getPlotTypeID() { protected String getPlotTypeID() {
@ -48,8 +49,8 @@ public class RadarPlotPane extends AbstractChartTypePane{
* @return 界面标题 * @return 界面标题
*/ */
public String title4PopupWindow() { public String title4PopupWindow() {
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Radar_Chart"); return Inter.getLocText("Fine-Engine_Chart_Type_Radar");
} }
/** /**
* 保存界面属性 * 保存界面属性

11
designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/RangePlotPane.java

@ -4,6 +4,7 @@ import com.fr.chart.base.ChartConstants;
import com.fr.chart.chartattr.Chart; import com.fr.chart.chartattr.Chart;
import com.fr.chart.chartattr.RangePlot; import com.fr.chart.chartattr.RangePlot;
import com.fr.chart.charttypes.RangeIndependentChart; import com.fr.chart.charttypes.RangeIndependentChart;
import com.fr.general.Inter;
/** /**
@ -25,9 +26,9 @@ public class RangePlotPane extends AbstractChartTypePane{
@Override @Override
protected String[] getTypeTipName() { protected String[] getTypeTipName() {
return new String[]{ return new String[]{
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Range_Chart") Inter.getLocText("Fine-Engine_Chart_Type_Range")
}; };
} }
@Override @Override
protected String getPlotTypeID() { protected String getPlotTypeID() {
@ -49,8 +50,8 @@ public class RangePlotPane extends AbstractChartTypePane{
* @return 界面标题 * @return 界面标题
*/ */
public String title4PopupWindow() { public String title4PopupWindow() {
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Range_Chart"); return Inter.getLocText("Fine-Engine_Chart_Type_Range");
} }
/** /**
* 保存界面属性 * 保存界面属性

11
designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/StockPlotPane.java

@ -3,6 +3,7 @@ package com.fr.design.mainframe.chart.gui.type;
import com.fr.chart.base.ChartConstants; import com.fr.chart.base.ChartConstants;
import com.fr.chart.chartattr.Chart; import com.fr.chart.chartattr.Chart;
import com.fr.chart.charttypes.StockIndependentChart; import com.fr.chart.charttypes.StockIndependentChart;
import com.fr.general.Inter;
/** /**
@ -24,9 +25,9 @@ public class StockPlotPane extends AbstractChartTypePane {
@Override @Override
protected String[] getTypeTipName() { protected String[] getTypeTipName() {
return new String[]{ return new String[]{
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Stock_Chart") Inter.getLocText("Fine-Engine_Chart_Type_Stock")
}; };
} }
@Override @Override
protected String getPlotTypeID() { protected String getPlotTypeID() {
@ -48,8 +49,8 @@ public class StockPlotPane extends AbstractChartTypePane {
* @return 界面标题 * @return 界面标题
*/ */
public String title4PopupWindow() { public String title4PopupWindow() {
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Stock_Chart"); return Inter.getLocText("Fine-Engine_Chart_Type_Stock");
} }
/** /**
* 保存界面属性 * 保存界面属性

12
designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/type/XYScatterPlotPane.java

@ -6,7 +6,7 @@ import com.fr.chart.chartattr.Chart;
import com.fr.chart.chartattr.XYScatterPlot; import com.fr.chart.chartattr.XYScatterPlot;
import com.fr.chart.chartglyph.ConditionAttr; import com.fr.chart.chartglyph.ConditionAttr;
import com.fr.chart.charttypes.XYScatterIndependentChart; import com.fr.chart.charttypes.XYScatterIndependentChart;
import com.fr.general.Inter;
import com.fr.stable.Constants; import com.fr.stable.Constants;
/** /**
@ -28,9 +28,9 @@ public class XYScatterPlotPane extends AbstractChartTypePane{
@Override @Override
protected String[] getTypeTipName() { protected String[] getTypeTipName() {
return new String[]{ return new String[]{
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_I_XYScatterStyle_Marker") Inter.getLocText("Fine-Engine_Chart_Type_XYScatter")
}; };
} }
@Override @Override
protected String[] getTypeLayoutPath() { protected String[] getTypeLayoutPath() {
@ -47,8 +47,8 @@ public class XYScatterPlotPane extends AbstractChartTypePane{
* @return 界面标题 * @return 界面标题
*/ */
public String title4PopupWindow() { public String title4PopupWindow() {
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_I_XYScatterStyle_Marker"); return Inter.getLocText("Fine-Engine_Chart_Type_XYScatter");
} }
/** /**
* 保存界面内容 * 保存界面内容

3
designer-realize/src/main/java/com/fr/poly/PolyComponentsBar.java

@ -12,6 +12,7 @@ import com.fr.design.gui.itooltip.MultiLineToolTip;
import com.fr.design.i18n.Toolkit; import com.fr.design.i18n.Toolkit;
import com.fr.design.layout.FRGUIPaneFactory; import com.fr.design.layout.FRGUIPaneFactory;
import com.fr.design.mainframe.dnd.SerializableTransferable; import com.fr.design.mainframe.dnd.SerializableTransferable;
import com.fr.general.Inter;
import com.fr.log.FineLoggerFactory; import com.fr.log.FineLoggerFactory;
import com.fr.report.poly.PolyECBlock; import com.fr.report.poly.PolyECBlock;
import com.sun.java.swing.plaf.windows.WindowsLookAndFeel; import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;
@ -65,7 +66,7 @@ public class PolyComponentsBar extends JToolBar {
for (int i = 0; i < typeLen; i++) { for (int i = 0; i < typeLen; i++) {
BaseChart[] rowChart = BaseChartGetter.getStaticChartTypes(typeName[i].getPlotID()); BaseChart[] rowChart = BaseChartGetter.getStaticChartTypes(typeName[i].getPlotID());
String iconPath = ChartTypeInterfaceManager.getInstance().getIconPath(typeName[i].getPlotID()); String iconPath = ChartTypeInterfaceManager.getInstance().getIconPath(typeName[i].getPlotID());
serIcons[i + 1] = new SerIcon(rowChart[0], Toolkit.i18nText(typeName[i].getName()), iconPath); serIcons[i + 1] = new SerIcon(rowChart[0], Inter.getLocText(typeName[i].getName()), iconPath);
this.add(serIcons[i + 1]); this.add(serIcons[i + 1]);
} }

Loading…
Cancel
Save