|
|
@ -23,7 +23,6 @@ import com.fr.plugin.chart.vanchart.VanChart; |
|
|
|
import java.awt.Graphics2D; |
|
|
|
import java.awt.Graphics2D; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.Color; |
|
|
|
import java.awt.Color; |
|
|
|
import java.awt.Graphics; |
|
|
|
|
|
|
|
import java.awt.geom.Rectangle2D; |
|
|
|
import java.awt.geom.Rectangle2D; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -55,12 +54,9 @@ public class ReportThemePreviewPane extends TemplateThemePreviewPane<ReportTheme |
|
|
|
chartPreviewPane.refresh(theme); |
|
|
|
chartPreviewPane.refresh(theme); |
|
|
|
repaint(); |
|
|
|
repaint(); |
|
|
|
} |
|
|
|
} |
|
|
|
@Override |
|
|
|
|
|
|
|
public void paintComponent(Graphics g) { |
|
|
|
|
|
|
|
paintBackground((Graphics2D) g); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void paintBackground(Graphics2D g2d) { |
|
|
|
|
|
|
|
|
|
|
|
protected void paintBackground(Graphics2D g2d) { |
|
|
|
if (background == null) { |
|
|
|
if (background == null) { |
|
|
|
background = ColorBackground.getInstance(Color.WHITE); |
|
|
|
background = ColorBackground.getInstance(Color.WHITE); |
|
|
|
} |
|
|
|
} |
|
|
|