/** * Sets the item label anchor offset. * * @param offset the offset. * * @see #getItemLabelAnchorOffset() */ public void setItemLabelAnchorOffset(double offset) { this.itemLabelAnchorOffset = offset; fireChangeEvent(); }
/** * Sets the default legend shape and sends a * {@link RendererChangeEvent} to all registered listeners. * * @param shape the shape ({@code null} permitted). * * @since 1.0.11 */ public void setDefaultLegendShape(Shape shape) { this.defaultLegendShape = shape; fireChangeEvent(); }
/** * Sets the default legend text paint and sends a * {@link RendererChangeEvent} to all registered listeners. * * @param paint the paint ({@code null} permitted). * * @since 1.0.11 */ public void setDefaultLegendTextPaint(Paint paint) { this.defaultLegendTextPaint = paint; fireChangeEvent(); }
/** * Sets the item label anchor offset. * * @param offset the offset. * * @see #getItemLabelAnchorOffset() */ public void setItemLabelAnchorOffset(double offset) { this.itemLabelAnchorOffset = offset; fireChangeEvent(); }
/** * Sets the default legend shape and sends a * {@link RendererChangeEvent} to all registered listeners. * * @param shape the shape (<code>null</code> permitted). * * @since 1.0.11 */ public void setBaseLegendShape(Shape shape) { this.baseLegendShape = shape; fireChangeEvent(); }
/** * Sets the default legend text paint and sends a * {@link RendererChangeEvent} to all registered listeners. * * @param paint the paint (<code>null</code> permitted). * * @since 1.0.11 */ public void setBaseLegendTextPaint(Paint paint) { this.baseLegendTextPaint = paint; fireChangeEvent(); }
/** * Sets the default legend text font and sends a * {@link RendererChangeEvent} to all registered listeners. * * @param font the font (<code>null</code> permitted). * * @since 1.0.11 */ public void setBaseLegendTextFont(Font font) { this.baseLegendTextFont = font; fireChangeEvent(); }
/** * Sets the flag that controls whether or not the legend shape is * treated as a line when creating legend items. * * @param treatAsLine the new flag value. * * @since 1.0.14 */ protected void setTreatLegendShapeAsLine(boolean treatAsLine) { if (this.treatLegendShapeAsLine != treatAsLine) { this.treatLegendShapeAsLine = treatAsLine; fireChangeEvent(); } }
/** * Sets the default paint and, if requested, sends a * {@link RendererChangeEvent} to all registered listeners. * * @param paint the paint ({@code null} not permitted). * @param notify notify listeners? * * @see #getDefaultPaint() */ public void setDefaultPaint(Paint paint, boolean notify) { this.defaultPaint = paint; if (notify) { fireChangeEvent(); } }
/** * Sets the font used for the legend text for the specified series, and * sends a {@link RendererChangeEvent} to all registered listeners. * * @param series the series index. * @param font the font ({@code null} permitted). * * @since 1.0.11 */ public void setLegendTextFont(int series, Font font) { this.legendTextFontMap.put(series, font); fireChangeEvent(); }
/** * Sets the shape used for the legend item for the specified series, and * sends a {@link RendererChangeEvent} to all registered listeners. * * @param series the series index. * @param shape the shape ({@code null} permitted). * * @since 1.0.11 */ public void setLegendShape(int series, Shape shape) { this.legendShapeList.setShape(series, shape); fireChangeEvent(); }
/** * Sets the default legend text font and sends a * {@link RendererChangeEvent} to all registered listeners. * * @param font the font ({@code null} permitted). * * @since 1.0.11 */ public void setDefaultLegendTextFont(Font font) { Args.nullNotPermitted(font, "font"); this.defaultLegendTextFont = font; fireChangeEvent(); }
/** * Sets the paint used for the legend text for the specified series, and * sends a {@link RendererChangeEvent} to all registered listeners. * * @param series the series index. * @param paint the paint (<code>null</code> permitted). * * @since 1.0.11 */ public void setLegendTextPaint(int series, Paint paint) { this.legendTextPaint.setPaint(series, paint); fireChangeEvent(); }
/** * Sets the paint used for the legend text for the specified series, and * sends a {@link RendererChangeEvent} to all registered listeners. * * @param series the series index. * @param paint the paint ({@code null} permitted). * * @since 1.0.11 */ public void setLegendTextPaint(int series, Paint paint) { this.legendTextPaint.setPaint(series, paint); fireChangeEvent(); }
/** * Sets the shape used for the legend item for the specified series, and * sends a {@link RendererChangeEvent} to all registered listeners. * * @param series the series index. * @param shape the shape (<code>null</code> permitted). * * @since 1.0.11 */ public void setLegendShape(int series, Shape shape) { this.legendShapeList.setShape(series, shape); fireChangeEvent(); }
/** * Sets the font used for the legend text for the specified series, and * sends a {@link RendererChangeEvent} to all registered listeners. * * @param series the series index. * @param font the font (<code>null</code> permitted). * * @since 1.0.11 */ public void setLegendTextFont(int series, Font font) { this.legendTextFont.set(series, font); fireChangeEvent(); }
/** * Clears the series paint settings for this renderer and, if requested, * sends a {@link RendererChangeEvent} to all registered listeners. * * @param notify notify listeners? * * @since 1.0.11 */ public void clearSeriesPaints(boolean notify) { this.paintList.clear(); if (notify) { fireChangeEvent(); } }
/** * Clears the series stroke settings for this renderer and, if requested, * sends a {@link RendererChangeEvent} to all registered listeners. * * @param notify notify listeners? * * @since 1.0.11 */ public void clearSeriesStrokes(boolean notify) { this.strokeList.clear(); if (notify) { fireChangeEvent(); } }
/** * Clears the series paint settings for this renderer and, if requested, * sends a {@link RendererChangeEvent} to all registered listeners. * * @param notify notify listeners? * * @since 1.0.11 */ public void clearSeriesPaints(boolean notify) { this.paintList.clear(); if (notify) { fireChangeEvent(); } }
/** * Clears the series stroke settings for this renderer and, if requested, * sends a {@link RendererChangeEvent} to all registered listeners. * * @param notify notify listeners? * * @since 1.0.11 */ public void clearSeriesStrokes(boolean notify) { this.strokeList.clear(); if (notify) { fireChangeEvent(); } }