|
|
|
@ -39,6 +39,8 @@ public class PredefinedStylePreviewPane extends StyleSettingPreviewPane implemen
|
|
|
|
|
private int COLUMN_CHART_WIDTH = 517; |
|
|
|
|
private int COLUMN_CHART_HEIGHT = 300; |
|
|
|
|
|
|
|
|
|
private JPanel parent; |
|
|
|
|
|
|
|
|
|
public PredefinedStylePreviewPane() { |
|
|
|
|
this(1.0, 1.0); |
|
|
|
|
} |
|
|
|
@ -53,6 +55,10 @@ public class PredefinedStylePreviewPane extends StyleSettingPreviewPane implemen
|
|
|
|
|
this.add(this.elementCasePreview); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setParent(JPanel parent) { |
|
|
|
|
this.parent = parent; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private JPanel initChartPreViewPane() { |
|
|
|
|
columnChartPane = new ChartPreStylePreView(initVanColumnChart()); |
|
|
|
|
columnChartPane.setPreferredSize(new Dimension(COLUMN_CHART_WIDTH, COLUMN_CHART_HEIGHT)); |
|
|
|
@ -142,6 +148,10 @@ public class PredefinedStylePreviewPane extends StyleSettingPreviewPane implemen
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void callback() { |
|
|
|
|
this.repaint(); |
|
|
|
|
if (parent != null) { |
|
|
|
|
parent.repaint(); |
|
|
|
|
} else { |
|
|
|
|
this.repaint(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|