/** * Sets the flag that controls whether the outline paint is used to draw * block outlines, and sends a {@link RendererChangeEvent} to all * registered listeners. * * @param flag the flag. * * @see #getUseOutlinePaint() */ public void setUseOutlinePaint(boolean flag) { this.useOutlinePaint = flag; fireChangeEvent(); }
/** * Sets the flag that controls whether outlines are drawn for * blocks, and sends a {@link RendererChangeEvent} to all registered * listeners. * * @param flag the flag. * * @see #getDrawOutlines() */ public void setDrawOutlines(boolean flag) { this.drawOutlines = flag; fireChangeEvent(); }
/** * Sets the paint scale used by the renderer and sends a * {@link RendererChangeEvent} to all registered listeners. * * @param scale the scale (<code>null</code> not permitted). * * @see #getPaintScale() * @since 1.0.4 */ public void setPaintScale(PaintScale scale) { if (scale == null) { throw new IllegalArgumentException("Null 'scale' argument."); } this.paintScale = scale; fireChangeEvent(); }
/** * Sets the paint scale used by the renderer and sends a * {@link RendererChangeEvent} to all registered listeners. * * @param scale the scale ({@code null} not permitted). * * @see #getPaintScale() * @since 1.0.4 */ public void setPaintScale(PaintScale scale) { Args.nullNotPermitted(scale, "scale"); this.paintScale = scale; fireChangeEvent(); }
/** * Sets the height of the blocks used to represent each data item and * sends a {@link RendererChangeEvent} to all registered listeners. * * @param height the new height, in data/axis units (must be > 0.0). * * @see #getBlockHeight() */ public void setBlockHeight(double height) { if (height <= 0.0) { throw new IllegalArgumentException( "The 'height' argument must be > 0.0"); } this.blockHeight = height; updateOffsets(); fireChangeEvent(); }
/** * Sets the height of the blocks used to represent each data item and * sends a {@link RendererChangeEvent} to all registered listeners. * * @param height the new height, in data/axis units (must be > 0.0). * * @see #getBlockHeight() */ public void setBlockHeight(double height) { if (height <= 0.0) { throw new IllegalArgumentException( "The 'height' argument must be > 0.0"); } this.blockHeight = height; updateOffsets(); fireChangeEvent(); }
/** * Sets the width of the blocks used to represent each data item and * sends a {@link RendererChangeEvent} to all registered listeners. * * @param width the new width, in data/axis units (must be > 0.0). * * @see #getBlockWidth() */ public void setBlockWidth(double width) { if (width <= 0.0) { throw new IllegalArgumentException( "The 'width' argument must be > 0.0"); } this.blockWidth = width; updateOffsets(); fireChangeEvent(); }
/** * Sets the width of the blocks used to represent each data item and * sends a {@link RendererChangeEvent} to all registered listeners. * * @param width the new width, in data/axis units (must be > 0.0). * * @see #getBlockWidth() */ public void setBlockWidth(double width) { if (width <= 0.0) { throw new IllegalArgumentException( "The 'width' argument must be > 0.0"); } this.blockWidth = width; updateOffsets(); fireChangeEvent(); }
/** * Sets the anchor point used to align a block at its (x, y) location and * sends a {@link RendererChangeEvent} to all registered listeners. * * @param anchor the anchor. * * @see #getBlockAnchor() */ public void setBlockAnchor(RectangleAnchor anchor) { if (anchor == null) { throw new IllegalArgumentException("Null 'anchor' argument."); } if (this.blockAnchor.equals(anchor)) { return; // no change } this.blockAnchor = anchor; updateOffsets(); fireChangeEvent(); }
/** * Sets the anchor point used to align a block at its (x, y) location and * sends a {@link RendererChangeEvent} to all registered listeners. * * @param anchor the anchor. * * @see #getBlockAnchor() */ public void setBlockAnchor(RectangleAnchor anchor) { Args.nullNotPermitted(anchor, "anchor"); if (this.blockAnchor.equals(anchor)) { return; // no change } this.blockAnchor = anchor; updateOffsets(); fireChangeEvent(); }