|
|
@ -43,6 +43,7 @@ public abstract class AbstractChartTypePane extends FurtherBasicBeanPane<Chart>{ |
|
|
|
protected List<ChartImagePane> styleList; |
|
|
|
protected List<ChartImagePane> styleList; |
|
|
|
|
|
|
|
|
|
|
|
protected JPanel stylePane; //样式布局的面板
|
|
|
|
protected JPanel stylePane; //样式布局的面板
|
|
|
|
|
|
|
|
private JPanel typePane; |
|
|
|
protected abstract String[] getTypeIconPath(); |
|
|
|
protected abstract String[] getTypeIconPath(); |
|
|
|
protected abstract String[] getTypeTipName(); |
|
|
|
protected abstract String[] getTypeTipName(); |
|
|
|
protected abstract String[] getTypeLayoutPath(); |
|
|
|
protected abstract String[] getTypeLayoutPath(); |
|
|
@ -70,10 +71,10 @@ public abstract class AbstractChartTypePane extends FurtherBasicBeanPane<Chart>{ |
|
|
|
|
|
|
|
|
|
|
|
checkDemosBackground(); |
|
|
|
checkDemosBackground(); |
|
|
|
|
|
|
|
|
|
|
|
JPanel typePane = FRGUIPaneFactory.createNColumnGridInnerContainer_S_Pane(4); |
|
|
|
this.typePane = FRGUIPaneFactory.createNColumnGridInnerContainer_S_Pane(4); |
|
|
|
for(int i = 0; i < typeDemo.size(); i++) { |
|
|
|
for(int i = 0; i < typeDemo.size(); i++) { |
|
|
|
ChartImagePane tmp = typeDemo.get(i); |
|
|
|
ChartImagePane tmp = typeDemo.get(i); |
|
|
|
typePane.add(tmp); |
|
|
|
this.typePane.add(tmp); |
|
|
|
tmp.setDemoGroup(typeDemo.toArray(new ChartSelectDemoPane[typeDemo.size()])); |
|
|
|
tmp.setDemoGroup(typeDemo.toArray(new ChartSelectDemoPane[typeDemo.size()])); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -99,7 +100,7 @@ public abstract class AbstractChartTypePane extends FurtherBasicBeanPane<Chart>{ |
|
|
|
stylePane.setVisible(false); |
|
|
|
stylePane.setVisible(false); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
JPanel panel = TableLayoutHelper.createTableLayoutPane(getPaneComponents(typePane),rowSize,columnSize); |
|
|
|
JPanel panel = TableLayoutHelper.createTableLayoutPane(getPaneComponents(this.typePane),rowSize,columnSize); |
|
|
|
this.setLayout(new BorderLayout()); |
|
|
|
this.setLayout(new BorderLayout()); |
|
|
|
this.add(panel,BorderLayout.CENTER); |
|
|
|
this.add(panel,BorderLayout.CENTER); |
|
|
|
} |
|
|
|
} |
|
|
@ -586,6 +587,10 @@ public abstract class AbstractChartTypePane extends FurtherBasicBeanPane<Chart>{ |
|
|
|
&& chart.getPlot().getPlotStyle() != ChartConstants.STYLE_NONE; |
|
|
|
&& chart.getPlot().getPlotStyle() != ChartConstants.STYLE_NONE; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected JPanel getTypePane(){ |
|
|
|
|
|
|
|
return this.typePane; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Chart getDefaultChart() { |
|
|
|
public Chart getDefaultChart() { |
|
|
|
return BarIndependentChart.barChartTypes[0]; |
|
|
|
return BarIndependentChart.barChartTypes[0]; |
|
|
|
} |
|
|
|
} |
|
|
|