/** * Sets the background paint and sends a {@link TitleChangeEvent} to all * registered listeners. * * @param paint the paint ({@code null} permitted). */ public void setBackgroundPaint(Paint paint) { this.backgroundPaint = paint; notifyListeners(new TitleChangeEvent(this)); }
/** * Sets the offset between the axis and the paint strip and sends a * {@link TitleChangeEvent} to all registered listeners. * * @param offset the offset. */ public void setAxisOffset(double offset) { this.axisOffset = offset; notifyListeners(new TitleChangeEvent(this)); }
/** * Sets the width of the paint strip and sends a {@link TitleChangeEvent} * to all registered listeners. * * @param width the width. * * @see #getStripWidth() */ public void setStripWidth(double width) { this.stripWidth = width; notifyListeners(new TitleChangeEvent(this)); }
/** * Sets the offset between the axis and the paint strip and sends a * {@link TitleChangeEvent} to all registered listeners. * * @param offset the offset. */ public void setAxisOffset(double offset) { this.axisOffset = offset; notifyListeners(new TitleChangeEvent(this)); }
/** * Sets the background paint and sends a {@link TitleChangeEvent} to all * registered listeners. * * @param paint the paint (<code>null</code> permitted). */ public void setBackgroundPaint(Paint paint) { this.backgroundPaint = paint; notifyListeners(new TitleChangeEvent(this)); }
/** * Sets the width of the paint strip and sends a {@link TitleChangeEvent} * to all registered listeners. * * @param width the width. * * @see #getStripWidth() */ public void setStripWidth(double width) { this.stripWidth = width; notifyListeners(new TitleChangeEvent(this)); }
/** * Sets the flag that controls whether or not an outline is drawn around * the paint strip, and sends a {@link TitleChangeEvent} to all registered * listeners. * * @param visible the flag. * * @see #isStripOutlineVisible() */ public void setStripOutlineVisible(boolean visible) { this.stripOutlineVisible = visible; notifyListeners(new TitleChangeEvent(this)); }
/** * Sets the flag that controls whether or not an outline is drawn around * the paint strip, and sends a {@link TitleChangeEvent} to all registered * listeners. * * @param visible the flag. * * @see #isStripOutlineVisible() */ public void setStripOutlineVisible(boolean visible) { this.stripOutlineVisible = visible; notifyListeners(new TitleChangeEvent(this)); }
/** * Sets the axis location and sends a {@link TitleChangeEvent} to all * registered listeners. * * @param location the location (<code>null</code> not permitted). * * @see #getAxisLocation() */ public void setAxisLocation(AxisLocation location) { if (location == null) { throw new IllegalArgumentException("Null 'location' argument."); } this.axisLocation = location; notifyListeners(new TitleChangeEvent(this)); }
/** * Sets the paint used to draw the outline of the paint strip, and sends * a {@link TitleChangeEvent} to all registered listeners. * * @param paint the paint (<code>null</code> not permitted). * * @see #getStripOutlinePaint() */ public void setStripOutlinePaint(Paint paint) { if (paint == null) { throw new IllegalArgumentException("Null 'paint' argument."); } this.stripOutlinePaint = paint; notifyListeners(new TitleChangeEvent(this)); }
/** * Sets the subdivision count and sends a {@link TitleChangeEvent} to * all registered listeners. * * @param count the count. * * @since 1.0.11 */ public void setSubdivisionCount(int count) { if (count <= 0) { throw new IllegalArgumentException("Requires 'count' > 0."); } this.subdivisions = count; notifyListeners(new TitleChangeEvent(this)); }
/** * Sets the subdivision count and sends a {@link TitleChangeEvent} to * all registered listeners. * * @param count the count. * * @since 1.0.11 */ public void setSubdivisionCount(int count) { if (count <= 0) { throw new IllegalArgumentException("Requires 'count' > 0."); } this.subdivisions = count; notifyListeners(new TitleChangeEvent(this)); }
/** * Sets the scale and sends a {@link TitleChangeEvent} to all registered * listeners. * * @param scale the scale (<code>null</code> not permitted). * * @see #getScale() */ public void setScale(PaintScale scale) { if (scale == null) { throw new IllegalArgumentException("Null 'scale' argument."); } this.scale = scale; notifyListeners(new TitleChangeEvent(this)); }
/** * Sets the paint used to draw the outline of the paint strip, and sends * a {@link TitleChangeEvent} to all registered listeners. * * @param paint the paint ({@code null} not permitted). * * @see #getStripOutlinePaint() */ public void setStripOutlinePaint(Paint paint) { Args.nullNotPermitted(paint, "paint"); this.stripOutlinePaint = paint; notifyListeners(new TitleChangeEvent(this)); }
/** * Sets the axis location and sends a {@link TitleChangeEvent} to all * registered listeners. * * @param location the location ({@code null} not permitted). * * @see #getAxisLocation() */ public void setAxisLocation(AxisLocation location) { Args.nullNotPermitted(location, "location"); this.axisLocation = location; notifyListeners(new TitleChangeEvent(this)); }
/** * Receives notification of an axis change event and responds by firing * a title change event. * * @param event the event. * * @since 1.0.13 */ public void axisChanged(AxisChangeEvent event) { if (this.axis == event.getAxis()) { notifyListeners(new TitleChangeEvent(this)); } }
/** * Sets the scale and sends a {@link TitleChangeEvent} to all registered * listeners. * * @param scale the scale ({@code null} not permitted). * * @see #getScale() */ public void setScale(PaintScale scale) { Args.nullNotPermitted(scale, "scale"); this.scale = scale; notifyListeners(new TitleChangeEvent(this)); }
/** * Receives notification of an axis change event and responds by firing * a title change event. * * @param event the event. * * @since 1.0.13 */ @Override public void axisChanged(AxisChangeEvent event) { if (this.axis == event.getAxis()) { notifyListeners(new TitleChangeEvent(this)); } }
/** * Sets the stroke used to draw the outline around the paint strip and * sends a {@link TitleChangeEvent} to all registered listeners. * * @param stroke the stroke ({@code null} not permitted). * * @see #getStripOutlineStroke() */ public void setStripOutlineStroke(Stroke stroke) { Args.nullNotPermitted(stroke, "stroke"); this.stripOutlineStroke = stroke; notifyListeners(new TitleChangeEvent(this)); }
/** * Sets the axis for the paint scale and sends a {@link TitleChangeEvent} * to all registered listeners. * * @param axis the axis ({@code null} not permitted). * * @see #getAxis() */ public void setAxis(ValueAxis axis) { Args.nullNotPermitted(axis, "axis"); this.axis.removeChangeListener(this); this.axis = axis; this.axis.addChangeListener(this); notifyListeners(new TitleChangeEvent(this)); }