|
|
@ -30,6 +30,7 @@ public class ChartStylePane extends AbstractChartAttrPane { |
|
|
|
private Chart chart; |
|
|
|
private Chart chart; |
|
|
|
private AttributeChangeListener listener; |
|
|
|
private AttributeChangeListener listener; |
|
|
|
private BasicPane chartAxisPane; |
|
|
|
private BasicPane chartAxisPane; |
|
|
|
|
|
|
|
private boolean chartStyleInitialized = false; |
|
|
|
|
|
|
|
|
|
|
|
protected Chart getChart() { |
|
|
|
protected Chart getChart() { |
|
|
|
return chart; |
|
|
|
return chart; |
|
|
@ -64,12 +65,16 @@ public class ChartStylePane extends AbstractChartAttrPane { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void populate(ChartCollection collection) { |
|
|
|
public void populate(ChartCollection collection) { |
|
|
|
this.chart = collection.getSelectedChart(); |
|
|
|
this.chart = collection.getSelectedChart(); |
|
|
|
|
|
|
|
// 子组件布局初始化,只在第一次进入的时候绘制
|
|
|
|
|
|
|
|
if (!chartStyleInitialized) { |
|
|
|
this.remove(leftContentPane); |
|
|
|
this.remove(leftContentPane); |
|
|
|
initContentPane(); |
|
|
|
initContentPane(); |
|
|
|
this.removeAttributeChangeListener(); |
|
|
|
this.removeAttributeChangeListener(); |
|
|
|
stylePane.populateBean(chart); |
|
|
|
|
|
|
|
this.addAttributeChangeListener(listener); |
|
|
|
this.addAttributeChangeListener(listener); |
|
|
|
this.initAllListeners(); |
|
|
|
this.initAllListeners(); |
|
|
|
|
|
|
|
chartStyleInitialized = true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.initAllListeners(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|