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());
}
collection = (BaseChartCollection) element.getValue();
//将chartCollection存在DesignModuleFactory
DesignModuleFactory.setChartCollection((ChartCollection) collection);
add(editingPropertyPane = DesignModuleFactory.getChartPropertyPane(), BorderLayout.CENTER);
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) {
return chartTypeInterfaces.get(priority).get(plot.getPlotID()).getTableDataSourcePane(plot, parent);
}
//获取指定图表的编辑面板
public ChartEditPane getChartConfigPane(String plotID) {
Iterator iterator = chartTypeInterfaces.entrySet().iterator();
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 ChartEditPane chartEditPane;
//获取ChartCollection和当前图表的plotID,用来获取对应的面板
protected ChartCollection chartCollection= DesignModuleFactory.getChartCollection();
protected String plotID=chartCollection.getSelectedChart().getPlot().getPlotID();
@ -97,7 +98,6 @@ public abstract class MiddleChartPropertyPane extends BaseChartPropertyPane{
*/
public void populateChartPropertyPane(BaseChartCollection collection, TargetComponent<?> ePane) {
if (collection instanceof ChartCollection) {
resetChartEditPane();
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
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 AbstractTableDataContentPane dataContentPane;
private ChartDataPane parent;
protected AbstractTableDataContentPane getDataContentPane() {
return dataContentPane;
}
private ChartDataPane parent;
public TableDataPane(ChartDataPane parent) {
this.parent = parent;
initDataPane();
@ -120,6 +120,8 @@ public class TableDataPane extends FurtherBasicBeanPane<ChartCollection>{
add(dataContentPane, BorderLayout.CENTER);
}
}
/**
* 更新界面属性
*/

Loading…
Cancel
Save