From: <mu...@us...> - 2008-09-01 18:39:35
|
Revision: 1410 http://jfreechart.svn.sourceforge.net/jfreechart/?rev=1410&view=rev Author: mungady Date: 2008-09-01 18:39:32 +0000 (Mon, 01 Sep 2008) Log Message: ----------- Kill some tabs. Modified Paths: -------------- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/StandardChartTheme.java Modified: branches/jfreechart-1.0.x-branch/source/org/jfree/chart/StandardChartTheme.java =================================================================== --- branches/jfreechart-1.0.x-branch/source/org/jfree/chart/StandardChartTheme.java 2008-09-01 18:24:56 UTC (rev 1409) +++ branches/jfreechart-1.0.x-branch/source/org/jfree/chart/StandardChartTheme.java 2008-09-01 18:39:32 UTC (rev 1410) @@ -111,67 +111,67 @@ public class StandardChartTheme implements ChartTheme, Cloneable, PublicCloneable, Serializable { - /** The name of this theme. */ - private String name; + /** The name of this theme. */ + private String name; - /** - * The largest font size. Use for the main chart title. - */ - private Font extraLargeFont; + /** + * The largest font size. Use for the main chart title. + */ + private Font extraLargeFont; - /** - * A large font. Used for subtitles. - */ - private Font largeFont; + /** + * A large font. Used for subtitles. + */ + private Font largeFont; - /** - * The regular font size. Used for axis tick labels, legend items etc. - */ - private Font regularFont; + /** + * The regular font size. Used for axis tick labels, legend items etc. + */ + private Font regularFont; - /** The paint used to display the main chart title. */ - private transient Paint titlePaint; + /** The paint used to display the main chart title. */ + private transient Paint titlePaint; - /** The paint used to display subtitles. */ - private transient Paint subtitlePaint; + /** The paint used to display subtitles. */ + private transient Paint subtitlePaint; - /** The background paint for the chart. */ - private transient Paint chartBackgroundPaint; + /** The background paint for the chart. */ + private transient Paint chartBackgroundPaint; /** The legend background paint. */ - private transient Paint legendBackgroundPaint; + private transient Paint legendBackgroundPaint; - /** The legend item paint. */ - private transient Paint legendItemPaint; + /** The legend item paint. */ + private transient Paint legendItemPaint; - /** The drawing supplier. */ - private DrawingSupplier drawingSupplier; + /** The drawing supplier. */ + private DrawingSupplier drawingSupplier; - /** The background paint for the plot. */ - private transient Paint plotBackgroundPaint; + /** The background paint for the plot. */ + private transient Paint plotBackgroundPaint; - /** The plot outline paint. */ - private transient Paint plotOutlinePaint; + /** The plot outline paint. */ + private transient Paint plotOutlinePaint; - /** The label link style for pie charts. */ - private PieLabelLinkStyle labelLinkStyle; + /** The label link style for pie charts. */ + private PieLabelLinkStyle labelLinkStyle; - /** The label link paint for pie charts. */ - private transient Paint labelLinkPaint; + /** The label link paint for pie charts. */ + private transient Paint labelLinkPaint; - /** The domain grid line paint. */ - private transient Paint domainGridlinePaint; + /** The domain grid line paint. */ + private transient Paint domainGridlinePaint; - /** The range grid line paint. */ - private transient Paint rangeGridlinePaint; + /** The range grid line paint. */ + private transient Paint rangeGridlinePaint; - /** The axis offsets. */ - private RectangleInsets axisOffset; + /** The axis offsets. */ + private RectangleInsets axisOffset; - /** The axis label paint. */ - private transient Paint axisLabelPaint; + /** The axis label paint. */ + private transient Paint axisLabelPaint; - /** The tick label paint. */ + /** The tick label paint. */ private transient Paint tickLabelPaint; /** The item label paint. */ @@ -211,1464 +211,1464 @@ private transient Paint gridBandAlternatePaint = SymbolAxis.DEFAULT_GRID_BAND_ALTERNATE_PAINT; - /** - * Creates and returns the default 'JFree' chart theme. - * - * @return A chart theme. - */ - public static ChartTheme createJFreeTheme() { - return new StandardChartTheme("JFree"); - } + /** + * Creates and returns the default 'JFree' chart theme. + * + * @return A chart theme. + */ + public static ChartTheme createJFreeTheme() { + return new StandardChartTheme("JFree"); + } - /** - * Creates and returns a theme called "Darkness". In this theme, the - * charts have a black background. - * - * @return The "Darkness" theme. - */ - public static ChartTheme createDarknessTheme() { - StandardChartTheme theme = new StandardChartTheme("Darkness"); - theme.titlePaint = Color.white; - theme.subtitlePaint = Color.white; - theme.legendBackgroundPaint = Color.black; - theme.legendItemPaint = Color.white; - theme.chartBackgroundPaint = Color.black; - theme.plotBackgroundPaint = Color.black; - theme.plotOutlinePaint = Color.yellow; - theme.labelLinkPaint = Color.lightGray; - theme.tickLabelPaint = Color.white; - theme.axisLabelPaint = Color.white; - theme.shadowPaint = Color.darkGray; - theme.itemLabelPaint = Color.white; - theme.drawingSupplier = new DefaultDrawingSupplier( - new Paint[] { Color.decode("0xFFFF00"), - Color.decode("0x0036CC"), Color.decode("0xFF0000"), - Color.decode("0xFFFF7F"), Color.decode("0x6681CC"), - Color.decode("0xFF7F7F"), Color.decode("0xFFFFBF"), - Color.decode("0x99A6CC"), Color.decode("0xFFBFBF"), - Color.decode("0xA9A938"), Color.decode("0x2D4587")}, - new Paint[] { Color.decode("0xFFFF00"), - Color.decode("0x0036CC")}, - new Stroke[] { new BasicStroke(2.0f)}, - new Stroke[] { new BasicStroke(0.5f)}, - DefaultDrawingSupplier.DEFAULT_SHAPE_SEQUENCE); - theme.wallPaint = Color.darkGray; - theme.errorIndicatorPaint = Color.lightGray; - theme.gridBandPaint = new Color(255, 255, 255, 20); - theme.gridBandAlternatePaint = new Color(255, 255, 255, 40); - return theme; - } /** + * Creates and returns a theme called "Darkness". In this theme, the + * charts have a black background. + * + * @return The "Darkness" theme. + */ + public static ChartTheme createDarknessTheme() { + StandardChartTheme theme = new StandardChartTheme("Darkness"); + theme.titlePaint = Color.white; + theme.subtitlePaint = Color.white; + theme.legendBackgroundPaint = Color.black; + theme.legendItemPaint = Color.white; + theme.chartBackgroundPaint = Color.black; + theme.plotBackgroundPaint = Color.black; + theme.plotOutlinePaint = Color.yellow; + theme.labelLinkPaint = Color.lightGray; + theme.tickLabelPaint = Color.white; + theme.axisLabelPaint = Color.white; + theme.shadowPaint = Color.darkGray; + theme.itemLabelPaint = Color.white; + theme.drawingSupplier = new DefaultDrawingSupplier( + new Paint[] { Color.decode("0xFFFF00"), + Color.decode("0x0036CC"), Color.decode("0xFF0000"), + Color.decode("0xFFFF7F"), Color.decode("0x6681CC"), + Color.decode("0xFF7F7F"), Color.decode("0xFFFFBF"), + Color.decode("0x99A6CC"), Color.decode("0xFFBFBF"), + Color.decode("0xA9A938"), Color.decode("0x2D4587")}, + new Paint[] { Color.decode("0xFFFF00"), + Color.decode("0x0036CC")}, + new Stroke[] { new BasicStroke(2.0f)}, + new Stroke[] { new BasicStroke(0.5f)}, + DefaultDrawingSupplier.DEFAULT_SHAPE_SEQUENCE); + theme.wallPaint = Color.darkGray; + theme.errorIndicatorPaint = Color.lightGray; + theme.gridBandPaint = new Color(255, 255, 255, 20); + theme.gridBandAlternatePaint = new Color(255, 255, 255, 40); + return theme; + } + /** * Creates and returns a {@link ChartTheme} that doesn't apply any changes * to the JFreeChart defaults. This produces the "legacy" look for * JFreeChart. * * @return A legacy theme. */ - public static ChartTheme createLegacyTheme() { - StandardChartTheme theme = new StandardChartTheme("Legacy") { - public void apply(JFreeChart chart) { - // do nothing at all - } - }; - return theme; - } + public static ChartTheme createLegacyTheme() { + StandardChartTheme theme = new StandardChartTheme("Legacy") { + public void apply(JFreeChart chart) { + // do nothing at all + } + }; + return theme; + } - /** - * Creates a new default instance. - * - * @param name the name of the theme (<code>null</code> not permitted). - */ - public StandardChartTheme(String name) { - if (name == null) { - throw new IllegalArgumentException("Null 'name' argument."); - } - this.name = name; - this.extraLargeFont = new Font("Tahoma", Font.BOLD, 20); - this.largeFont = new Font("Tahoma", Font.BOLD, 14); - this.regularFont = new Font("Tahoma", Font.PLAIN, 12); + /** + * Creates a new default instance. + * + * @param name the name of the theme (<code>null</code> not permitted). + */ + public StandardChartTheme(String name) { + if (name == null) { + throw new IllegalArgumentException("Null 'name' argument."); + } + this.name = name; + this.extraLargeFont = new Font("Tahoma", Font.BOLD, 20); + this.largeFont = new Font("Tahoma", Font.BOLD, 14); + this.regularFont = new Font("Tahoma", Font.PLAIN, 12); - this.titlePaint = Color.black; - this.subtitlePaint = Color.black; - this.legendBackgroundPaint = Color.white; - this.legendItemPaint = Color.darkGray; - this.chartBackgroundPaint = Color.white; - this.drawingSupplier = new DefaultDrawingSupplier(); - this.plotBackgroundPaint = Color.lightGray; - this.plotOutlinePaint = Color.black; - this.labelLinkPaint = Color.black; - this.labelLinkStyle = PieLabelLinkStyle.CUBIC_CURVE; - this.axisOffset = new RectangleInsets(4, 4, 4, 4); - this.domainGridlinePaint = Color.white; - this.rangeGridlinePaint = Color.white; - this.axisLabelPaint = Color.darkGray; - this.tickLabelPaint = Color.darkGray; - this.barPainter = new GradientBarPainter(); - this.xyBarPainter = new GradientXYBarPainter(); - this.shadowVisible = true; - this.shadowPaint = Color.gray; - this.itemLabelPaint = Color.black; - this.thermometerPaint = Color.white; - this.wallPaint = BarRenderer3D.DEFAULT_WALL_PAINT; - this.errorIndicatorPaint = Color.black; - } + this.titlePaint = Color.black; + this.subtitlePaint = Color.black; + this.legendBackgroundPaint = Color.white; + this.legendItemPaint = Color.darkGray; + this.chartBackgroundPaint = Color.white; + this.drawingSupplier = new DefaultDrawingSupplier(); + this.plotBackgroundPaint = Color.lightGray; + this.plotOutlinePaint = Color.black; + this.labelLinkPaint = Color.black; + this.labelLinkStyle = PieLabelLinkStyle.CUBIC_CURVE; + this.axisOffset = new RectangleInsets(4, 4, 4, 4); + this.domainGridlinePaint = Color.white; + this.rangeGridlinePaint = Color.white; + this.axisLabelPaint = Color.darkGray; + this.tickLabelPaint = Color.darkGray; + this.barPainter = new GradientBarPainter(); + this.xyBarPainter = new GradientXYBarPainter(); + this.shadowVisible = true; + this.shadowPaint = Color.gray; + this.itemLabelPaint = Color.black; + this.thermometerPaint = Color.white; + this.wallPaint = BarRenderer3D.DEFAULT_WALL_PAINT; + this.errorIndicatorPaint = Color.black; + } - /** - * Returns the largest font for this theme. - * - * @return The largest font for this theme. - * - * @see #setExtraLargeFont(Font) - */ - public Font getExtraLargeFont() { - return this.extraLargeFont; - } + /** + * Returns the largest font for this theme. + * + * @return The largest font for this theme. + * + * @see #setExtraLargeFont(Font) + */ + public Font getExtraLargeFont() { + return this.extraLargeFont; + } - /** - * Sets the largest font for this theme. - * - * @param font the font (<code>null</code> not permitted). - * - * @see #getExtraLargeFont() - */ - public void setExtraLargeFont(Font font) { - if (font == null) { - throw new IllegalArgumentException("Null 'font' argument."); - } - this.extraLargeFont = font; - } + /** + * Sets the largest font for this theme. + * + * @param font the font (<code>null</code> not permitted). + * + * @see #getExtraLargeFont() + */ + public void setExtraLargeFont(Font font) { + if (font == null) { + throw new IllegalArgumentException("Null 'font' argument."); + } + this.extraLargeFont = font; + } - /** - * Returns the large font for this theme. - * - * @return The large font (never <code>null</code>). - * - * @see #setLargeFont(Font) - */ - public Font getLargeFont() { - return this.largeFont; - } + /** + * Returns the large font for this theme. + * + * @return The large font (never <code>null</code>). + * + * @see #setLargeFont(Font) + */ + public Font getLargeFont() { + return this.largeFont; + } - /** - * Sets the large font for this theme. - * - * @param font the font (<code>null</code> not permitted). - * - * @see #getLargeFont() - */ - public void setLargeFont(Font font) { - this.largeFont = font; - } + /** + * Sets the large font for this theme. + * + * @param font the font (<code>null</code> not permitted). + * + * @see #getLargeFont() + */ + public void setLargeFont(Font font) { + this.largeFont = font; + } - /** - * Returns the regular font. - * - * @return The regular font (never <code>null</code>). - * - * @see #setRegularFont(Font) - */ - public Font getRegularFont() { - return this.regularFont; - } + /** + * Returns the regular font. + * + * @return The regular font (never <code>null</code>). + * + * @see #setRegularFont(Font) + */ + public Font getRegularFont() { + return this.regularFont; + } - /** - * Sets the regular font for this theme. - * - * @param font the font (<code>null</code> not permitted). - * - * @see #getRegularFont() - */ - public void setRegularFont(Font font) { - this.regularFont = font; - } + /** + * Sets the regular font for this theme. + * + * @param font the font (<code>null</code> not permitted). + * + * @see #getRegularFont() + */ + public void setRegularFont(Font font) { + this.regularFont = font; + } - /** - * Returns the title paint. - * - * @return The title paint (never <code>null</code>). - * - * @see #setTitlePaint(Paint) - */ - public Paint getTitlePaint() { - return this.titlePaint; - } + /** + * Returns the title paint. + * + * @return The title paint (never <code>null</code>). + * + * @see #setTitlePaint(Paint) + */ + public Paint getTitlePaint() { + return this.titlePaint; + } - /** - * Sets the title paint. - * - * @param paint the paint (<code>null</code> not permitted). - * - * @see #getTitlePaint() - */ - public void setTitlePaint(Paint paint) { - if (paint == null) { - throw new IllegalArgumentException("Null 'paint' argument."); - } - this.titlePaint = paint; - } + /** + * Sets the title paint. + * + * @param paint the paint (<code>null</code> not permitted). + * + * @see #getTitlePaint() + */ + public void setTitlePaint(Paint paint) { + if (paint == null) { + throw new IllegalArgumentException("Null 'paint' argument."); + } + this.titlePaint = paint; + } - /** - * Returns the subtitle paint. - * - * @return The subtitle paint (never <code>null</code>). - * - * @see #setSubtitlePaint(Paint) - */ - public Paint getSubtitlePaint() { - return this.subtitlePaint; - } + /** + * Returns the subtitle paint. + * + * @return The subtitle paint (never <code>null</code>). + * + * @see #setSubtitlePaint(Paint) + */ + public Paint getSubtitlePaint() { + return this.subtitlePaint; + } - /** - * Sets the subtitle paint. - * - * @param paint the paint (<code>null</code> not permitted). - * - * @see #getSubtitlePaint() - */ - public void setSubtitlePaint(Paint paint) { - if (paint == null) { - throw new IllegalArgumentException("Null 'paint' argument."); - } - this.subtitlePaint = paint; - } + /** + * Sets the subtitle paint. + * + * @param paint the paint (<code>null</code> not permitted). + * + * @see #getSubtitlePaint() + */ + public void setSubtitlePaint(Paint paint) { + if (paint == null) { + throw new IllegalArgumentException("Null 'paint' argument."); + } + this.subtitlePaint = paint; + } - /** - * Returns the chart background paint. - * - * @return The chart background paint (never <code>null</code>). - * - * @see #setChartBackgroundPaint(Paint) - */ - public Paint getChartBackgroundPaint() { - return this.chartBackgroundPaint; - } + /** + * Returns the chart background paint. + * + * @return The chart background paint (never <code>null</code>). + * + * @see #setChartBackgroundPaint(Paint) + */ + public Paint getChartBackgroundPaint() { + return this.chartBackgroundPaint; + } - /** - * Sets the chart background paint. - * - * @param paint the paint (<code>null</code> not permitted). - * - * @see #getChartBackgroundPaint() - */ - public void setChartBackgroundPaint(Paint paint) { - if (paint == null) { - throw new IllegalArgumentException("Null 'paint' argument."); - } - this.chartBackgroundPaint = paint; - } + /** + * Sets the chart background paint. + * + * @param paint the paint (<code>null</code> not permitted). + * + * @see #getChartBackgroundPaint() + */ + public void setChartBackgroundPaint(Paint paint) { + if (paint == null) { + throw new IllegalArgumentException("Null 'paint' argument."); + } + this.chartBackgroundPaint = paint; + } - /** - * Returns the legend background paint. - * - * @return The legend background paint (never <code>null</code>). - * - * @see #setLegendBackgroundPaint(Paint) - */ - public Paint getLegendBackgroundPaint() { - return this.legendBackgroundPaint; - } + /** + * Returns the legend background paint. + * + * @return The legend background paint (never <code>null</code>). + * + * @see #setLegendBackgroundPaint(Paint) + */ + public Paint getLegendBackgroundPaint() { + return this.legendBackgroundPaint; + } - /** - * Sets the legend background paint. - * - * @param paint the paint (<code>null</code> not permitted). - * - * @see #getLegendBackgroundPaint() - */ - public void setLegendBackgroundPaint(Paint paint) { - if (paint == null) { - throw new IllegalArgumentException("Null 'paint' argument."); - } - this.legendBackgroundPaint = paint; - } + /** + * Sets the legend background paint. + * + * @param paint the paint (<code>null</code> not permitted). + * + * @see #getLegendBackgroundPaint() + */ + public void setLegendBackgroundPaint(Paint paint) { + if (paint == null) { + throw new IllegalArgumentException("Null 'paint' argument."); + } + this.legendBackgroundPaint = paint; + } - /** - * Returns the legend item paint. - * - * @return The legend item paint (never <code>null</code>). - * - * @see #setLegendItemPaint(Paint) - */ - public Paint getLegendItemPaint() { - return this.legendItemPaint; - } + /** + * Returns the legend item paint. + * + * @return The legend item paint (never <code>null</code>). + * + * @see #setLegendItemPaint(Paint) + */ + public Paint getLegendItemPaint() { + return this.legendItemPaint; + } - /** - * Sets the legend item paint. - * - * @param paint the paint (<code>null</code> not permitted). - * - * @see #getLegendItemPaint() - */ - public void setLegendItemPaint(Paint paint) { - if (paint == null) { - throw new IllegalArgumentException("Null 'paint' argument."); - } - this.legendItemPaint = paint; - } + /** + * Sets the legend item paint. + * + * @param paint the paint (<code>null</code> not permitted). + * + * @see #getLegendItemPaint() + */ + public void setLegendItemPaint(Paint paint) { + if (paint == null) { + throw new IllegalArgumentException("Null 'paint' argument."); + } + this.legendItemPaint = paint; + } - /** - * Returns the plot background paint. - * - * @return The plot background paint (never <code>null</code>). - * - * @see #setPlotBackgroundPaint(Paint) - */ - public Paint getPlotBackgroundPaint() { - return this.plotBackgroundPaint; - } + /** + * Returns the plot background paint. + * + * @return The plot background paint (never <code>null</code>). + * + * @see #setPlotBackgroundPaint(Paint) + */ + public Paint getPlotBackgroundPaint() { + return this.plotBackgroundPaint; + } - /** - * Sets the plot background paint. - * - * @param paint the paint (<code>null</code> not permitted). - * - * @see #getPlotBackgroundPaint() - */ - public void setPlotBackgroundPaint(Paint paint) { - if (paint == null) { - throw new IllegalArgumentException("Null 'paint' argument."); - } - this.plotBackgroundPaint = paint; - } + /** + * Sets the plot background paint. + * + * @param paint the paint (<code>null</code> not permitted). + * + * @see #getPlotBackgroundPaint() + */ + public void setPlotBackgroundPaint(Paint paint) { + if (paint == null) { + throw new IllegalArgumentException("Null 'paint' argument."); + } + this.plotBackgroundPaint = paint; + } - /** - * Returns the plot outline paint. - * - * @return The plot outline paint (never <code>null</code>). - * - * @see #setPlotOutlinePaint(Paint) - */ - public Paint getPlotOutlinePaint() { - return this.plotOutlinePaint; - } + /** + * Returns the plot outline paint. + * + * @return The plot outline paint (never <code>null</code>). + * + * @see #setPlotOutlinePaint(Paint) + */ + public Paint getPlotOutlinePaint() { + return this.plotOutlinePaint; + } - /** - * Sets the plot outline paint. - * - * @param paint the paint (<code>null</code> not permitted). - * - * @see #getPlotOutlinePaint() - */ - public void setPlotOutlinePaint(Paint paint) { - if (paint == null) { - throw new IllegalArgumentException("Null 'paint' argument."); - } - this.plotOutlinePaint = paint; - } + /** + * Sets the plot outline paint. + * + * @param paint the paint (<code>null</code> not permitted). + * + * @see #getPlotOutlinePaint() + */ + public void setPlotOutlinePaint(Paint paint) { + if (paint == null) { + throw new IllegalArgumentException("Null 'paint' argument."); + } + this.plotOutlinePaint = paint; + } - /** - * Returns the label link style for pie charts. - * - * @return The label link style (never <code>null</code>). - * - * @see #setLabelLinkStyle(PieLabelLinkStyle) - */ - public PieLabelLinkStyle getLabelLinkStyle() { - return this.labelLinkStyle; - } + /** + * Returns the label link style for pie charts. + * + * @return The label link style (never <code>null</code>). + * + * @see #setLabelLinkStyle(PieLabelLinkStyle) + */ + public PieLabelLinkStyle getLabelLinkStyle() { + return this.labelLinkStyle; + } - /** - * Sets the label link style for pie charts. - * - * @param style the style (<code>null</code> not permitted). - * - * @see #getLabelLinkStyle() - */ - public void setLabelLinkStyle(PieLabelLinkStyle style) { - if (style == null) { - throw new IllegalArgumentException("Null 'style' argument."); - } - this.labelLinkStyle = style; - } + /** + * Sets the label link style for pie charts. + * + * @param style the style (<code>null</code> not permitted). + * + * @see #getLabelLinkStyle() + */ + public void setLabelLinkStyle(PieLabelLinkStyle style) { + if (style == null) { + throw new IllegalArgumentException("Null 'style' argument."); + } + this.labelLinkStyle = style; + } - /** - * Returns the label link paint for pie charts. - * - * @return The label link paint (never <code>null</code>). - * - * @see #setLabelLinkPaint(Paint) - */ - public Paint getLabelLinkPaint() { - return this.labelLinkPaint; - } + /** + * Returns the label link paint for pie charts. + * + * @return The label link paint (never <code>null</code>). + * + * @see #setLabelLinkPaint(Paint) + */ + public Paint getLabelLinkPaint() { + return this.labelLinkPaint; + } - /** - * Sets the label link paint for pie charts. - * - * @param paint the paint (<code>null</code> not permitted). - * - * @see #getLabelLinkPaint() - */ - public void setLabelLinkPaint(Paint paint) { - if (paint == null) { - throw new IllegalArgumentException("Null 'paint' argument."); - } - this.labelLinkPaint = paint; - } + /** + * Sets the label link paint for pie charts. + * + * @param paint the paint (<code>null</code> not permitted). + * + * @see #getLabelLinkPaint() + */ + public void setLabelLinkPaint(Paint paint) { + if (paint == null) { + throw new IllegalArgumentException("Null 'paint' argument."); + } + this.labelLinkPaint = paint; + } - /** - * Returns the domain grid line paint. - * - * @return The domain grid line paint (never <code>null<code>). - * - * @see #setDomainGridlinePaint(Paint) - */ - public Paint getDomainGridlinePaint() { - return this.domainGridlinePaint; - } + /** + * Returns the domain grid line paint. + * + * @return The domain grid line paint (never <code>null<code>). + * + * @see #setDomainGridlinePaint(Paint) + */ + public Paint getDomainGridlinePaint() { + return this.domainGridlinePaint; + } - /** - * Sets the domain grid line paint. - * - * @param paint the paint (<code>null</code> not permitted). - * - * @see #getDomainGridlinePaint() - */ - public void setDomainGridlinePaint(Paint paint) { - if (paint == null) { - throw new IllegalArgumentException("Null 'paint' argument."); - } - this.domainGridlinePaint = paint; - } + /** + * Sets the domain grid line paint. + * + * @param paint the paint (<code>null</code> not permitted). + * + * @see #getDomainGridlinePaint() + */ + public void setDomainGridlinePaint(Paint paint) { + if (paint == null) { + throw new IllegalArgumentException("Null 'paint' argument."); + } + this.domainGridlinePaint = paint; + } - /** - * Returns the range grid line paint. - * - * @return The range grid line paint (never <code>null</code>). - * - * @see #setRangeGridlinePaint(Paint) - */ - public Paint getRangeGridlinePaint() { - return this.rangeGridlinePaint; - } + /** + * Returns the range grid line paint. + * + * @return The range grid line paint (never <code>null</code>). + * + * @see #setRangeGridlinePaint(Paint) + */ + public Paint getRangeGridlinePaint() { + return this.rangeGridlinePaint; + } - /** - * Sets the range grid line paint. - * - * @param paint the paint (<code>null</code> not permitted). - * - * @see #getRangeGridlinePaint() - */ - public void setRangeGridlinePaint(Paint paint) { - if (paint == null) { - throw new IllegalArgumentException("Null 'paint' argument."); - } - this.rangeGridlinePaint = paint; - } + /** + * Sets the range grid line paint. + * + * @param paint the paint (<code>null</code> not permitted). + * + * @see #getRangeGridlinePaint() + */ + public void setRangeGridlinePaint(Paint paint) { + if (paint == null) { + throw new IllegalArgumentException("Null 'paint' argument."); + } + this.rangeGridlinePaint = paint; + } - /** - * Returns the axis offsets. - * - * @return The axis offsets (never <code>null</code>). - * - * @see #setAxisOffset(RectangleInsets) - */ - public RectangleInsets getAxisOffset() { - return this.axisOffset; - } + /** + * Returns the axis offsets. + * + * @return The axis offsets (never <code>null</code>). + * + * @see #setAxisOffset(RectangleInsets) + */ + public RectangleInsets getAxisOffset() { + return this.axisOffset; + } - /** - * Sets the axis offset. - * - * @param offset the offset (<code>null</code> not permitted). - * - * @see #getAxisOffset() - */ - public void setAxisOffset(RectangleInsets offset) { - if (offset == null) { - throw new IllegalArgumentException("Null 'offset' argument."); - } - this.axisOffset = offset; - } + /** + * Sets the axis offset. + * + * @param offset the offset (<code>null</code> not permitted). + * + * @see #getAxisOffset() + */ + public void setAxisOffset(RectangleInsets offset) { + if (offset == null) { + throw new IllegalArgumentException("Null 'offset' argument."); + } + this.axisOffset = offset; + } - /** - * Returns the axis label paint. - * - * @return The axis label paint (never <code>null</code>). - * - * @see #setAxisLabelPaint(Paint) - */ - public Paint getAxisLabelPaint() { - return this.axisLabelPaint; - } + /** + * Returns the axis label paint. + * + * @return The axis label paint (never <code>null</code>). + * + * @see #setAxisLabelPaint(Paint) + */ + public Paint getAxisLabelPaint() { + return this.axisLabelPaint; + } - /** - * Sets the axis label paint. - * - * @param paint the paint (<code>null</code> not permitted). - * - * @see #getAxisLabelPaint() - */ - public void setAxisLabelPaint(Paint paint) { - if (paint == null) { - throw new IllegalArgumentException("Null 'paint' argument."); - } - this.axisLabelPaint = paint; - } + /** + * Sets the axis label paint. + * + * @param paint the paint (<code>null</code> not permitted). + * + * @see #getAxisLabelPaint() + */ + public void setAxisLabelPaint(Paint paint) { + if (paint == null) { + throw new IllegalArgumentException("Null 'paint' argument."); + } + this.axisLabelPaint = paint; + } - /** - * Returns the tick label paint. - * - * @return The tick label paint (never <code>null</code>). - * - * @see #setTickLabelPaint(Paint) - */ - public Paint getTickLabelPaint() { - return this.tickLabelPaint; - } + /** + * Returns the tick label paint. + * + * @return The tick label paint (never <code>null</code>). + * + * @see #setTickLabelPaint(Paint) + */ + public Paint getTickLabelPaint() { + return this.tickLabelPaint; + } - /** - * Sets the tick label paint. - * - * @param paint the paint (<code>null</code> not permitted). - * - * @see #getTickLabelPaint() - */ - public void setTickLabelPaint(Paint paint) { - if (paint == null) { - throw new IllegalArgumentException("Null 'paint' argument."); - } - this.tickLabelPaint = paint; - } + /** + * Sets the tick label paint. + * + * @param paint the paint (<code>null</code> not permitted). + * + * @see #getTickLabelPaint() + */ + public void setTickLabelPaint(Paint paint) { + if (paint == null) { + throw new IllegalArgumentException("Null 'paint' argument."); + } + this.tickLabelPaint = paint; + } - /** - * Returns the item label paint. - * - * @return The item label paint (never <code>null</code>). - * - * @see #setItemLabelPaint(Paint) - */ - public Paint getItemLabelPaint() { - return this.itemLabelPaint; - } + /** + * Returns the item label paint. + * + * @return The item label paint (never <code>null</code>). + * + * @see #setItemLabelPaint(Paint) + */ + public Paint getItemLabelPaint() { + return this.itemLabelPaint; + } - /** - * Sets the item label paint. - * - * @param paint the paint (<code>null</code> not permitted). - * - * @see #getItemLabelPaint() - */ - public void setItemLabelPaint(Paint paint) { - if (paint == null) { - throw new IllegalArgumentException("Null 'paint' argument."); - } - this.itemLabelPaint = paint; - } + /** + * Sets the item label paint. + * + * @param paint the paint (<code>null</code> not permitted). + * + * @see #getItemLabelPaint() + */ + public void setItemLabelPaint(Paint paint) { + if (paint == null) { + throw new IllegalArgumentException("Null 'paint' argument."); + } + this.itemLabelPaint = paint; + } - /** - * Returns the shadow visibility flag. - * - * @return The shadow visibility flag. - * - * @see #setShadowVisible(boolean) - */ - public boolean isShadowVisible() { - return this.shadowVisible; - } + /** + * Returns the shadow visibility flag. + * + * @return The shadow visibility flag. + * + * @see #setShadowVisible(boolean) + */ + public boolean isShadowVisible() { + return this.shadowVisible; + } - /** - * Sets the shadow visibility flag. - * - * @param visible the flag. - * - * @see #isShadowVisible() - */ - public void setShadowVisible(boolean visible) { - this.shadowVisible = visible; - } + /** + * Sets the shadow visibility flag. + * + * @param visible the flag. + * + * @see #isShadowVisible() + */ + public void setShadowVisible(boolean visible) { + this.shadowVisible = visible; + } - /** - * Returns the shadow paint. - * - * @return The shadow paint (never <code>null</code>). - * - * @see #setShadowPaint(Paint) - */ - public Paint getShadowPaint() { - return this.shadowPaint; - } + /** + * Returns the shadow paint. + * + * @return The shadow paint (never <code>null</code>). + * + * @see #setShadowPaint(Paint) + */ + public Paint getShadowPaint() { + return this.shadowPaint; + } - /** - * Sets the shadow paint. - * - * @param paint the paint (<code>null</code> not permitted). - * - * @see #getShadowPaint() - */ - public void setShadowPaint(Paint paint) { - if (paint == null) { - throw new IllegalArgumentException("Null 'paint' argument."); - } - this.shadowPaint = paint; - } + /** + * Sets the shadow paint. + * + * @param paint the paint (<code>null</code> not permitted). + * + * @see #getShadowPaint() + */ + public void setShadowPaint(Paint paint) { + if (paint == null) { + throw new IllegalArgumentException("Null 'paint' argument."); + } + this.shadowPaint = paint; + } - /** - * Returns the bar painter. - * - * @return The bar painter (never <code>null</code>). - * - * @see #setBarPainter(BarPainter) - */ - public BarPainter getBarPainter() { - return this.barPainter; - } + /** + * Returns the bar painter. + * + * @return The bar painter (never <code>null</code>). + * + * @see #setBarPainter(BarPainter) + */ + public BarPainter getBarPainter() { + return this.barPainter; + } - /** - * Sets the bar painter. - * - * @param painter the painter (<code>null</code> not permitted). - * - * @see #getBarPainter() - */ - public void setBarPainter(BarPainter painter) { - if (painter == null) { - throw new IllegalArgumentException("Null 'painter' argument."); - } - this.barPainter = painter; - } + /** + * Sets the bar painter. + * + * @param painter the painter (<code>null</code> not permitted). + * + * @see #getBarPainter() + */ + public void setBarPainter(BarPainter painter) { + if (painter == null) { + throw new IllegalArgumentException("Null 'painter' argument."); + } + this.barPainter = painter; + } - /** - * Returns the XY bar painter. - * - * @return The XY bar painter (never <code>null</code>). - * - * @see #setXYBarPainter(XYBarPainter) - */ - public XYBarPainter getXYBarPainter() { - return this.xyBarPainter; - } + /** + * Returns the XY bar painter. + * + * @return The XY bar painter (never <code>null</code>). + * + * @see #setXYBarPainter(XYBarPainter) + */ + public XYBarPainter getXYBarPainter() { + return this.xyBarPainter; + } - /** - * Sets the XY bar painter. - * - * @param painter the painter (<code>null</code> not permitted). - * - * @see #getXYBarPainter() - */ - public void setXYBarPainter(XYBarPainter painter) { - if (painter == null) { - throw new IllegalArgumentException("Null 'painter' argument."); - } - this.xyBarPainter = painter; - } + /** + * Sets the XY bar painter. + * + * @param painter the painter (<code>null</code> not permitted). + * + * @see #getXYBarPainter() + */ + public void setXYBarPainter(XYBarPainter painter) { + if (painter == null) { + throw new IllegalArgumentException("Null 'painter' argument."); + } + this.xyBarPainter = painter; + } - /** - * Returns the thermometer paint. - * - * @return The thermometer paint (never <code>null</code>). - * - * @see #setThermometerPaint(Paint) - */ - public Paint getThermometerPaint() { - return this.thermometerPaint; - } + /** + * Returns the thermometer paint. + * + * @return The thermometer paint (never <code>null</code>). + * + * @see #setThermometerPaint(Paint) + */ + public Paint getThermometerPaint() { + return this.thermometerPaint; + } - /** - * Sets the thermometer paint. - * - * @param paint the paint (<code>null</code> not permitted). - * - * @see #getThermometerPaint() - */ - public void setThermometerPaint(Paint paint) { - if (paint == null) { - throw new IllegalArgumentException("Null 'paint' argument."); - } - this.thermometerPaint = paint; - } + /** + * Sets the thermometer paint. + * + * @param paint the paint (<code>null</code> not permitted). + * + * @see #getThermometerPaint() + */ + public void setThermometerPaint(Paint paint) { + if (paint == null) { + throw new IllegalArgumentException("Null 'paint' argument."); + } + this.thermometerPaint = paint; + } - /** - * Returns the wall paint for charts with a 3D effect. - * - * @return The wall paint (never <code>null</code>). - * - * @see #setWallPaint(Paint) - */ - public Paint getWallPaint() { - return this.wallPaint; - } + /** + * Returns the wall paint for charts with a 3D effect. + * + * @return The wall paint (never <code>null</code>). + * + * @see #setWallPaint(Paint) + */ + public Paint getWallPaint() { + return this.wallPaint; + } - /** - * Sets the wall paint for charts with a 3D effect. - * - * @param paint the paint (<code>null</code> not permitted). - * - * @see #getWallPaint() - */ - public void setWallPaint(Paint paint) { - if (paint == null) { - throw new IllegalArgumentException("Null 'paint' argument."); - } - this.wallPaint = paint; - } + /** + * Sets the wall paint for charts with a 3D effect. + * + * @param paint the paint (<code>null</code> not permitted). + * + * @see #getWallPaint() + */ + public void setWallPaint(Paint paint) { + if (paint == null) { + throw new IllegalArgumentException("Null 'paint' argument."); + } + this.wallPaint = paint; + } - /** - * Returns the error indicator paint. - * - * @return The error indicator paint (never <code>null</code>). - * - * @see #setErrorIndicatorPaint(Paint) - */ - public Paint getErrorIndicatorPaint() { - return this.errorIndicatorPaint; - } + /** + * Returns the error indicator paint. + * + * @return The error indicator paint (never <code>null</code>). + * + * @see #setErrorIndicatorPaint(Paint) + */ + public Paint getErrorIndicatorPaint() { + return this.errorIndicatorPaint; + } - /** - * Sets the error indicator paint. - * - * @param paint the paint (<code>null</code> not permitted). - * - * @see #getErrorIndicatorPaint() - */ - public void setErrorIndicatorPaint(Paint paint) { - if (paint == null) { - throw new IllegalArgumentException("Null 'paint' argument."); - } - this.errorIndicatorPaint = paint; - } + /** + * Sets the error indicator paint. + * + * @param paint the paint (<code>null</code> not permitted). + * + * @see #getErrorIndicatorPaint() + */ + public void setErrorIndicatorPaint(Paint paint) { + if (paint == null) { + throw new IllegalArgumentException("Null 'paint' argument."); + } + this.errorIndicatorPaint = paint; + } - /** - * Returns the grid band paint. - * - * @return The grid band paint (never <code>null</code>). - * - * @see #setGridBandPaint(Paint) - */ - public Paint getGridBandPaint() { - return this.gridBandPaint; - } + /** + * Returns the grid band paint. + * + * @return The grid band paint (never <code>null</code>). + * + * @see #setGridBandPaint(Paint) + */ + public Paint getGridBandPaint() { + return this.gridBandPaint; + } - /** - * Sets the grid band paint. - * - * @param paint the paint (<code>null</code> not permitted). - * - * @see #getGridBandPaint() - */ - public void setGridBandPaint(Paint paint) { - if (paint == null) { - throw new IllegalArgumentException("Null 'paint' argument."); - } - this.gridBandPaint = paint; - } + /** + * Sets the grid band paint. + * + * @param paint the paint (<code>null</code> not permitted). + * + * @see #getGridBandPaint() + */ + public void setGridBandPaint(Paint paint) { + if (paint == null) { + throw new IllegalArgumentException("Null 'paint' argument."); + } + this.gridBandPaint = paint; + } - /** - * Returns the grid band alternate paint (used for a {@link SymbolAxis}). - * - * @return The paint (never <code>null</code>). - * - * @see #setGridBandAlternatePaint(Paint) - */ - public Paint getGridBandAlternatePaint() { - return this.gridBandAlternatePaint; - } + /** + * Returns the grid band alternate paint (used for a {@link SymbolAxis}). + * + * @return The paint (never <code>null</code>). + * + * @see #setGridBandAlternatePaint(Paint) + */ + public Paint getGridBandAlternatePaint() { + return this.gridBandAlternatePaint; + } - /** - * Sets the grid band alternate paint (used for a {@link SymbolAxis}). - * - * @param paint the paint (<code>null</code> not permitted). - * - * @see #getGridBandAlternatePaint() - */ - public void setGridBandAlternatePaint(Paint paint) { - if (paint == null) { - throw new IllegalArgumentException("Null 'paint' argument."); - } - this.gridBandAlternatePaint = paint; - } + /** + * Sets the grid band alternate paint (used for a {@link SymbolAxis}). + * + * @param paint the paint (<code>null</code> not permitted). + * + * @see #getGridBandAlternatePaint() + */ + public void setGridBandAlternatePaint(Paint paint) { + if (paint == null) { + throw new IllegalArgumentException("Null 'paint' argument."); + } + this.gridBandAlternatePaint = paint; + } - /** - * Returns the name of this theme. - * - * @return The name of this theme. - */ - public String getName() { - return this.name; - } + /** + * Returns the name of this theme. + * + * @return The name of this theme. + */ + public String getName() { + return this.name; + } - /** - * Returns a clone of the drawing supplier for this theme. - * - * @return A clone of the drawing supplier. - */ - public DrawingSupplier getDrawingSupplier() { - DrawingSupplier result = null; - if (this.drawingSupplier instanceof PublicCloneable) { - PublicCloneable pc = (PublicCloneable) this.drawingSupplier; - try { - result = (DrawingSupplier) pc.clone(); - } - catch (CloneNotSupportedException e) { - e.printStackTrace(); - } - } - return result; - } + /** + * Returns a clone of the drawing supplier for this theme. + * + * @return A clone of the drawing supplier. + */ + public DrawingSupplier getDrawingSupplier() { + DrawingSupplier result = null; + if (this.drawingSupplier instanceof PublicCloneable) { + PublicCloneable pc = (PublicCloneable) this.drawingSupplier; + try { + result = (DrawingSupplier) pc.clone(); + } + catch (CloneNotSupportedException e) { + e.printStackTrace(); + } + } + return result; + } - /** - * Sets the drawing supplier for this theme. - * - * @param supplier the supplier (<code>null</code> not permitted). - * - * @see #getDrawingSupplier() - */ - public void setDrawingSupplier(DrawingSupplier supplier) { - if (supplier == null) { - throw new IllegalArgumentException("Null 'supplier' argument."); - } - this.drawingSupplier = supplier; - } + /** + * Sets the drawing supplier for this theme. + * + * @param supplier the supplier (<code>null</code> not permitted). + * + * @see #getDrawingSupplier() + */ + public void setDrawingSupplier(DrawingSupplier supplier) { + if (supplier == null) { + throw new IllegalArgumentException("Null 'supplier' argument."); + } + this.drawingSupplier = supplier; + } - /** - * Applies this theme to the supplied chart. - * - * @param chart the chart (<code>null</code> not permitted). - */ - public void apply(JFreeChart chart) { - if (chart == null) { - throw new IllegalArgumentException("Null 'chart' argument."); - } - TextTitle title = chart.getTitle(); - if (title != null) { - title.setFont(this.extraLargeFont); - title.setPaint(this.titlePaint); - } + /** + * Applies this theme to the supplied chart. + * + * @param chart the chart (<code>null</code> not permitted). + */ + public void apply(JFreeChart chart) { + if (chart == null) { + throw new IllegalArgumentException("Null 'chart' argument."); + } + TextTitle title = chart.getTitle(); + if (title != null) { + title.setFont(this.extraLargeFont); + title.setPaint(this.titlePaint); + } - int subtitleCount = chart.getSubtitleCount(); - for (int i = 0; i < subtitleCount; i++) { - applyToTitle(chart.getSubtitle(i)); - } + int subtitleCount = chart.getSubtitleCount(); + for (int i = 0; i < subtitleCount; i++) { + applyToTitle(chart.getSubtitle(i)); + } - chart.setBackgroundPaint(this.chartBackgroundPaint); + chart.setBackgroundPaint(this.chartBackgroundPaint); - // now process the plot if there is one - Plot plot = chart.getPlot(); - if (plot != null) { - applyToPlot(plot); - } - } + // now process the plot if there is one + Plot plot = chart.getPlot(); + if (plot != null) { + applyToPlot(plot); + } + } - /** - * Applies the attributes of this theme to the specified title. - * - * @param title the title. - */ - protected void applyToTitle(Title title) { - if (title instanceof TextTitle) { - TextTitle tt = (TextTitle) title; - tt.setFont(this.largeFont); - tt.setPaint(this.subtitlePaint); - } - else if (title instanceof LegendTitle) { - LegendTitle lt = (LegendTitle) title; - if (lt.getBackgroundPaint() != null) { - lt.setBackgroundPaint(this.legendBackgroundPaint); - } - lt.setItemFont(this.regularFont); - lt.setItemPaint(this.legendItemPaint); - if (lt.getWrapper() != null) { - applyToBlockContainer(lt.getWrapper()); - } - } - else if (title instanceof PaintScaleLegend) { - PaintScaleLegend psl = (PaintScaleLegend) title; - psl.setBackgroundPaint(this.legendBackgroundPaint); - ValueAxis axis = psl.getAxis(); - if (axis != null) { - applyToValueAxis(axis); - } - } - else if (title instanceof CompositeTitle) { - CompositeTitle ct = (CompositeTitle) title; - BlockContainer bc = ct.getContainer(); - List blocks = bc.getBlocks(); - Iterator iterator = blocks.iterator(); - while (iterator.hasNext()) { - Block b = (Block) iterator.next(); - if (b instanceof Title) { - applyToTitle((Title) b); - } - } - } - } + /** + * Applies the attributes of this theme to the specified title. + * + * @param title the title. + */ + protected void applyToTitle(Title title) { + if (title instanceof TextTitle) { + TextTitle tt = (TextTitle) title; + tt.setFont(this.largeFont); + tt.setPaint(this.subtitlePaint); + } + else if (title instanceof LegendTitle) { + LegendTitle lt = (LegendTitle) title; + if (lt.getBackgroundPaint() != null) { + lt.setBackgroundPaint(this.legendBackgroundPaint); + } + lt.setItemFont(this.regularFont); + lt.setItemPaint(this.legendItemPaint); + if (lt.getWrapper() != null) { + applyToBlockContainer(lt.getWrapper()); + } + } + else if (title instanceof PaintScaleLegend) { + PaintScaleLegend psl = (PaintScaleLegend) title; + psl.setBackgroundPaint(this.legendBackgroundPaint); + ValueAxis axis = psl.getAxis(); + if (axis != null) { + applyToValueAxis(axis); + } + } + else if (title instanceof CompositeTitle) { + CompositeTitle ct = (CompositeTitle) title; + BlockContainer bc = ct.getContainer(); + List blocks = bc.getBlocks(); + Iterator iterator = blocks.iterator(); + while (iterator.hasNext()) { + Block b = (Block) iterator.next(); + if (b instanceof Title) { + applyToTitle((Title) b); + } + } + } + } - /** - * Applies the attributes of this theme to the specified container. - * - * @param bc a block container (<code>null</code> not permitted). - */ - protected void applyToBlockContainer(BlockContainer bc) { - Iterator iterator = bc.getBlocks().iterator(); - while (iterator.hasNext()) { - Block b = (Block) iterator.next(); - applyToBlock(b); - } - } + /** + * Applies the attributes of this theme to the specified container. + * + * @param bc a block container (<code>null</code> not permitted). + */ + protected void applyToBlockContainer(BlockContainer bc) { + Iterator iterator = bc.getBlocks().iterator(); + while (iterator.hasNext()) { + Block b = (Block) iterator.next(); + applyToBlock(b); + } + } - /** - * Applies the attributes of this theme to the specified block. - * - * @param b the block. - */ - protected void applyToBlock(Block b) { - if (b instanceof Title) { - applyToTitle((Title) b); - } - else if (b instanceof LabelBlock) { - LabelBlock lb = (LabelBlock) b; - lb.setFont(this.regularFont); - lb.setPaint(this.legendItemPaint); - } - } + /** + * Applies the attributes of this theme to the specified block. + * + * @param b the block. + */ + protected void applyToBlock(Block b) { + if (b instanceof Title) { + applyToTitle((Title) b); + } + else if (b instanceof LabelBlock) { + LabelBlock lb = (LabelBlock) b; + lb.setFont(this.regularFont); + lb.setPaint(this.legendItemPaint); + } + } - /** - * Applies the attributes of this theme to a plot. - * - * @param plot the plot (<code>null</code>). - */ - protected void applyToPlot(Plot plot) { - if (plot == null) { - throw new IllegalArgumentException("Null 'plot' argument."); - } - if (plot.getDrawingSupplier() != null) { - plot.setDrawingSupplier(getDrawingSupplier()); - } - if (plot.getBackgroundPaint() != null) { + /** + * Applies the attributes of this theme to a plot. + * + * @param plot the plot (<code>null</code>). + */ + protected void applyToPlot(Plot plot) { + if (plot == null) { + throw new IllegalArgumentException("Null 'plot' argument."); + } + if (plot.getDrawingSupplier() != null) { + plot.setDrawingSupplier(getDrawingSupplier()); + } + if (plot.getBackgroundPaint() != null) { plot.setBackgroundPaint(this.plotBackgroundPaint); - } - plot.setOutlinePaint(this.plotOutlinePaint); + } + plot.setOutlinePaint(this.plotOutlinePaint); - // now handle specific plot types (and yes, I know this is some - // really ugly code that has to be manually updated any time a new - // plot type is added - I should have written something much cooler, - // but I didn't and neither did anyone else). - if (plot instanceof PiePlot) { - applyToPiePlot((PiePlot) plot); - } - else if (plot instanceof MultiplePiePlot) { - applyToMultiplePiePlot((MultiplePiePlot) plot); - } - else if (plot instanceof CategoryPlot) { - applyToCategoryPlot((CategoryPlot) plot); - } - else if (plot instanceof XYPlot) { - applyToXYPlot((XYPlot) plot); - } - else if (plot instanceof FastScatterPlot) { - applyToFastScatterPlot((FastScatterPlot) plot); - } - else if (plot instanceof MeterPlot) { - applyToMeterPlot((MeterPlot) plot); - } - else if (plot instanceof ThermometerPlot) { - applyToThermometerPlot((ThermometerPlot) plot); - } - else if (plot instanceof SpiderWebPlot) { - applyToSpiderWebPlot((SpiderWebPlot) plot); - } - else if (plot instanceof PolarPlot) { - applyToPolarPlot((PolarPlot) plot); - } - } + // now handle specific plot types (and yes, I know this is some + // really ugly code that has to be manually updated any time a new + // plot type is added - I should have written something much cooler, + // but I didn't and neither did anyone else). + if (plot instanceof PiePlot) { + applyToPiePlot((PiePlot) plot); + } + else if (plot instanceof MultiplePiePlot) { + applyToMultiplePiePlot((MultiplePiePlot) plot); + } + else if (plot instanceof CategoryPlot) { + applyToCategoryPlot((CategoryPlot) plot); + } + else if (plot instanceof XYPlot) { + applyToXYPlot((XYPlot) plot); + } + else if (plot instanceof FastScatterPlot) { + applyToFastScatterPlot((FastScatterPlot) plot); + } + else if (plot instanceof MeterPlot) { + applyToMeterPlot((MeterPlot) plot); + } + else if (plot instanceof ThermometerPlot) { + applyToThermometerPlot((ThermometerPlot) plot); + } + else if (plot instanceof SpiderWebPlot) { + applyToSpiderWebPlot((SpiderWebPlot) plot); + } + else if (plot instanceof PolarPlot) { + applyToPolarPlot((PolarPlot) plot); + } + } - /** - * Applies the attributes of this theme to a {@link PiePlot} instance. - * This method also clears any set values for the section paint, outline - * etc, so that the theme's {@link DrawingSupplier} will be used. - * - * @param plot the plot (<code>null</code> not permitted). - */ - protected void applyToPiePlot(PiePlot plot) { - plot.setLabelLinkPaint(this.labelLinkPaint); - plot.setLabelLinkStyle(this.labelLinkStyle); - plot.setLabelFont(this.regularFont); + /** + * Applies the attributes of this theme to a {@link PiePlot} instance. + * This method also clears any set values for the section paint, outline + * etc, so that the theme's {@link DrawingSupplier} will be used. + * + * @param plot the plot (<code>null</code> not permitted). + */ + protected void applyToPiePlot(PiePlot plot) { + plot.setLabelLinkPaint(this.labelLinkPaint); + plot.setLabelLinkStyle(this.labelLinkStyle); + plot.setLabelFont(this.regularFont); - // clear the section attributes so that the theme's DrawingSupplier - // will be used - if (plot.getAutoPopulateSectionPaint()) { - plot.clearSectionPaints(false); - } - if (plot.getAutoPopulateSectionOutlinePaint()) { - plot.clearSectionOutlinePaints(false); - } - if (plot.getAutoPopulateSectionOutlineStroke()) { - plot.clearSectionOutlineStrokes(false); - } - } + // clear the section attributes so that the theme's DrawingSupplier + // will be used + if (plot.getAutoPopulateSectionPaint()) { + plot.clearSectionPaints(false); + } + if (plot.getAutoPopulateSectionOutlinePaint()) { + plot.clearSectionOutlinePaints(false); + } + if (plot.getAutoPopulateSectionOutlineStroke()) { + plot.clearSectionOutlineStrokes(false); + } + } - /** - * Applies the attributes of this theme to a {@link MultiplePiePlot}. - * - * @param plot the plot (<code>null</code> not permitted). - */ - protected void applyToMultiplePiePlot(MultiplePiePlot plot) { - apply(plot.getPieChart()); - } + /** + * Applies the attributes of this theme to a {@link MultiplePiePlot}. + * + * @param plot the plot (<code>null</code> not permitted). + */ + protected void applyToMultiplePiePlot(MultiplePiePlot plot) { + apply(plot.getPieChart()); + } - /** - * Applies the attributes of this theme to a {@link CategoryPlot}. - * - * @param plot the plot (<code>null</code> not permitted). - */ - protected void applyToCategoryPlot(CategoryPlot plot) { - plot.setAxisOffset(this.axisOffset); - plot.setDomainGridlinePaint(this.domainGridlinePaint); - plot.setRangeGridlinePaint(this.rangeGridlinePaint); + /** + * Applies the attributes of this theme to a {@link CategoryPlot}. + * + * @param plot the plot (<code>null</code> not permitted). + */ + protected void applyToCategoryPlot(CategoryPlot plot) { + plot.setAxisOffset(this.axisOffset); + plot.setDomainGridlinePaint(this.domainGridlinePaint); + plot.setRangeGridlinePaint(this.rangeGridlinePaint); - // process all domain axes - int domainAxisCount = plot.getDomainAxisCount(); - for (int i = 0; i < domainAxisCount; i++) { - CategoryAxis axis = (CategoryAxis) plot.getDomainAxis(i); - if (axis != null) { - applyToCategoryAxis(axis); - } - } + // process all domain axes + int domainAxisCount = plot.getDomainAxisCount(); + for (int i = 0; i < domainAxisCount; i++) { + CategoryAxis axis = (CategoryAxis) plot.getDomainAxis(i); + if (axis != null) { + applyToCategoryAxis(axis); + } + } - // process all range axes - int rangeAxisCount = plot.getRangeAxisCount(); - for (int i = 0; i < rangeAxisCount; i++) { - ValueAxis axis = (ValueAxis) plot.getRangeAxis(i); - if (axis != null) { - applyToValueAxis(axis); - } - } + // process all range axes + int rangeAxisCount = plot.getRangeAxisCount(); + for (int i = 0; i < rangeAxisCount; i++) { + ValueAxis axis = (ValueAxis) plot.getRangeAxis(i); + ... [truncated message content] |