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