Browse Source

格式化代码

master
mengao 8 years ago
parent
commit
21a0ac10fc
  1. 3
      designer_chart/src/com/fr/design/ChartTypeInterfaceManager.java
  2. 6
      designer_chart/src/com/fr/design/mainframe/MiddleChartPropertyPane.java

3
designer_chart/src/com/fr/design/ChartTypeInterfaceManager.java

@ -413,10 +413,11 @@ public class ChartTypeInterfaceManager extends XMLFileManager implements ExtraCh
private AbstractTableDataContentPane getTableDataSourcePane(String priority, Plot plot, ChartDataPane parent) { private AbstractTableDataContentPane getTableDataSourcePane(String priority, Plot plot, ChartDataPane parent) {
return chartTypeInterfaces.get(priority).get(plot.getPlotID()).getTableDataSourcePane(plot, parent); return chartTypeInterfaces.get(priority).get(plot.getPlotID()).getTableDataSourcePane(plot, parent);
} }
//获取指定图表的编辑面板 //获取指定图表的编辑面板
public ChartEditPane getChartConfigPane(String plotID) { public ChartEditPane getChartConfigPane(String plotID) {
Iterator iterator = chartTypeInterfaces.entrySet().iterator(); Iterator iterator = chartTypeInterfaces.entrySet().iterator();
while (iterator.hasNext()){ while (iterator.hasNext()) {
Map.Entry entry = (Map.Entry) iterator.next(); Map.Entry entry = (Map.Entry) iterator.next();
String priority = (String) entry.getKey(); String priority = (String) entry.getKey();
if (plotInChart(plotID, priority)) { if (plotInChart(plotID, priority)) {

6
designer_chart/src/com/fr/design/mainframe/MiddleChartPropertyPane.java

@ -27,8 +27,8 @@ public abstract class MiddleChartPropertyPane extends BaseChartPropertyPane{
protected ChartEditPane chartEditPane; protected ChartEditPane chartEditPane;
//获取ChartCollection和当前图表的plotID,用来获取对应的面板 //获取ChartCollection和当前图表的plotID,用来获取对应的面板
protected ChartCollection chartCollection= DesignModuleFactory.getChartCollection(); protected ChartCollection chartCollection = DesignModuleFactory.getChartCollection();
protected String plotID=chartCollection.getSelectedChart().getPlot().getPlotID(); protected String plotID = chartCollection.getSelectedChart().getPlot().getPlotID();
public MiddleChartPropertyPane() { public MiddleChartPropertyPane() {
initComponenet(); initComponenet();
@ -40,7 +40,7 @@ public abstract class MiddleChartPropertyPane extends BaseChartPropertyPane{
createNameLabel(); createNameLabel();
this.add(createNorthComponent(), BorderLayout.NORTH); this.add(createNorthComponent(), BorderLayout.NORTH);
chartEditPane = ChartTypeInterfaceManager.getInstance().getChartConfigPane(plotID); chartEditPane = ChartTypeInterfaceManager.getInstance().getChartConfigPane(plotID);
chartEditPane.setSupportCellData(true); chartEditPane.setSupportCellData(true);
this.createMainPane(); this.createMainPane();
} }

Loading…
Cancel
Save