Browse Source

格式化代码

master
mengao 7 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) {
return chartTypeInterfaces.get(priority).get(plot.getPlotID()).getTableDataSourcePane(plot, parent);
}
//获取指定图表的编辑面板
public ChartEditPane getChartConfigPane(String plotID) {
Iterator iterator = chartTypeInterfaces.entrySet().iterator();
while (iterator.hasNext()){
while (iterator.hasNext()) {
Map.Entry entry = (Map.Entry) iterator.next();
String priority = (String) entry.getKey();
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;
//获取ChartCollection和当前图表的plotID,用来获取对应的面板
protected ChartCollection chartCollection= DesignModuleFactory.getChartCollection();
protected String plotID=chartCollection.getSelectedChart().getPlot().getPlotID();
protected ChartCollection chartCollection = DesignModuleFactory.getChartCollection();
protected String plotID = chartCollection.getSelectedChart().getPlot().getPlotID();
public MiddleChartPropertyPane() {
initComponenet();
@ -40,7 +40,7 @@ public abstract class MiddleChartPropertyPane extends BaseChartPropertyPane{
createNameLabel();
this.add(createNorthComponent(), BorderLayout.NORTH);
chartEditPane = ChartTypeInterfaceManager.getInstance().getChartConfigPane(plotID);
chartEditPane = ChartTypeInterfaceManager.getInstance().getChartConfigPane(plotID);
chartEditPane.setSupportCellData(true);
this.createMainPane();
}

Loading…
Cancel
Save