Browse Source

添加一些注释

master
mengao 8 years ago
parent
commit
d037450fa2
  1. 1
      designer/src/com/fr/quickeditor/ChartQuickEditor.java
  2. 1
      designer_chart/src/com/fr/design/ChartTypeInterfaceManager.java
  3. 2
      designer_chart/src/com/fr/design/mainframe/MiddleChartPropertyPane.java
  4. 2
      designer_chart/src/com/fr/design/mainframe/chart/ChartEditPane.java
  5. 6
      designer_chart/src/com/fr/design/mainframe/chart/gui/data/TableDataPane.java

1
designer/src/com/fr/quickeditor/ChartQuickEditor.java

@ -46,6 +46,7 @@ public class ChartQuickEditor extends QuickEditor<TargetComponent>{
element = ((ElementCasePane)tc).getEditingElementCase().getFloatElement(fs.getSelectedFloatName()); element = ((ElementCasePane)tc).getEditingElementCase().getFloatElement(fs.getSelectedFloatName());
} }
collection = (BaseChartCollection) element.getValue(); collection = (BaseChartCollection) element.getValue();
//将chartCollection存在DesignModuleFactory
DesignModuleFactory.setChartCollection((ChartCollection) collection); DesignModuleFactory.setChartCollection((ChartCollection) collection);
add(editingPropertyPane = DesignModuleFactory.getChartPropertyPane(), BorderLayout.CENTER); add(editingPropertyPane = DesignModuleFactory.getChartPropertyPane(), BorderLayout.CENTER);
editingPropertyPane.setSupportCellData(true); editingPropertyPane.setSupportCellData(true);

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

@ -413,6 +413,7 @@ 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()){

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

@ -26,6 +26,7 @@ public abstract class MiddleChartPropertyPane extends BaseChartPropertyPane{
protected UILabel nameLabel; protected UILabel nameLabel;
protected ChartEditPane chartEditPane; protected ChartEditPane chartEditPane;
//获取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();
@ -97,7 +98,6 @@ public abstract class MiddleChartPropertyPane extends BaseChartPropertyPane{
*/ */
public void populateChartPropertyPane(BaseChartCollection collection, TargetComponent<?> ePane) { public void populateChartPropertyPane(BaseChartCollection collection, TargetComponent<?> ePane) {
if (collection instanceof ChartCollection) { if (collection instanceof ChartCollection) {
resetChartEditPane();
populateChartPropertyPane((ChartCollection)collection, ePane); populateChartPropertyPane((ChartCollection)collection, ePane);
} }
} }

2
designer_chart/src/com/fr/design/mainframe/chart/ChartEditPane.java

@ -348,7 +348,7 @@ public class ChartEditPane extends BasicBeanPane implements AttributeChange,Prep
} }
}); });
} }
//添加populate和update方法,第三方图表继承使用
@Override @Override
public void populateBean(Object ob) { public void populateBean(Object ob) {

6
designer_chart/src/com/fr/design/mainframe/chart/gui/data/TableDataPane.java

@ -24,12 +24,12 @@ public class TableDataPane extends FurtherBasicBeanPane<ChartCollection>{
private DatabaseTableDataPane tableDataPane; private DatabaseTableDataPane tableDataPane;
private AbstractTableDataContentPane dataContentPane; private AbstractTableDataContentPane dataContentPane;
private ChartDataPane parent;
protected AbstractTableDataContentPane getDataContentPane() { protected AbstractTableDataContentPane getDataContentPane() {
return dataContentPane; return dataContentPane;
} }
private ChartDataPane parent;
public TableDataPane(ChartDataPane parent) { public TableDataPane(ChartDataPane parent) {
this.parent = parent; this.parent = parent;
initDataPane(); initDataPane();
@ -120,6 +120,8 @@ public class TableDataPane extends FurtherBasicBeanPane<ChartCollection>{
add(dataContentPane, BorderLayout.CENTER); add(dataContentPane, BorderLayout.CENTER);
} }
} }
/** /**
* 更新界面属性 * 更新界面属性
*/ */

Loading…
Cancel
Save