/** * Sets the rotation angle and sends an {@link AnnotationChangeEvent} to * all registered listeners. The angle is measured clockwise in radians. * * @param angle the angle (in radians). * * @see #getRotationAngle() */ public void setRotationAngle(double angle) { this.rotationAngle = angle; fireAnnotationChanged(); }
/** * Sets the flag that controls whether or not the outline is drawn and * sends an {@link AnnotationChangeEvent} to all registered listeners. * * @param visible the new flag value. * * @since 1.0.13 */ public void setOutlineVisible(boolean visible) { this.outlineVisible = visible; fireAnnotationChanged(); }
/** * Sets the y coordinate for the text anchor point (measured against the * range axis) and sends an {@link AnnotationChangeEvent} to all registered * listeners. * * @param y the y coordinate. * * @see #getY() */ public void setY(double y) { this.y = y; fireAnnotationChanged(); }
/** * Sets the rotation angle and sends an {@link AnnotationChangeEvent} to * all registered listeners. The angle is measured clockwise in radians. * * @param angle the angle (in radians). * * @see #getRotationAngle() */ public void setRotationAngle(double angle) { this.rotationAngle = angle; fireAnnotationChanged(); }
/** * Sets the flag that controls whether or not the outline is drawn and * sends an {@link AnnotationChangeEvent} to all registered listeners. * * @param visible the new flag value. * * @since 1.0.13 */ public void setOutlineVisible(boolean visible) { this.outlineVisible = visible; fireAnnotationChanged(); }
/** * Sets the x coordinate for the text anchor point (measured against the * domain axis) and sends an {@link AnnotationChangeEvent} to all * registered listeners. * * @param x the x coordinate (in data space). * * @see #getX() */ public void setX(double x) { this.x = x; fireAnnotationChanged(); }
/** * Sets the x coordinate for the text anchor point (measured against the * domain axis) and sends an {@link AnnotationChangeEvent} to all * registered listeners. * * @param x the x coordinate (in data space). * * @see #getX() */ public void setX(double x) { this.x = x; fireAnnotationChanged(); }
/** * Sets the background paint for the annotation and sends an * {@link AnnotationChangeEvent} to all registered listeners. * * @param paint the paint ({@code null} permitted). * * @see #getBackgroundPaint() * * @since 1.0.13 */ public void setBackgroundPaint(Paint paint) { this.backgroundPaint = paint; fireAnnotationChanged(); }
/** * Sets the y coordinate for the text anchor point (measured against the * range axis) and sends an {@link AnnotationChangeEvent} to all registered * listeners. * * @param y the y coordinate. * * @see #getY() */ public void setY(double y) { this.y = y; fireAnnotationChanged(); }
/** * Sets the background paint for the annotation and sends an * {@link AnnotationChangeEvent} to all registered listeners. * * @param paint the paint (<code>null</code> permitted). * * @see #getBackgroundPaint() * * @since 1.0.13 */ public void setBackgroundPaint(Paint paint) { this.backgroundPaint = paint; fireAnnotationChanged(); }
/** * Sets the rotation anchor point and sends an * {@link AnnotationChangeEvent} to all registered listeners. * * @param anchor the anchor (<code>null</code> not permitted). * * @see #getRotationAnchor() */ public void setRotationAnchor(TextAnchor anchor) { if (anchor == null) { throw new IllegalArgumentException("Null 'anchor' argument."); } this.rotationAnchor = anchor; fireAnnotationChanged(); }
/** * Sets the paint for the annotation and sends an * {@link AnnotationChangeEvent} to all registered listeners. * * @param paint the paint (<code>null</code> not permitted). * * @see #getPaint() */ public void setPaint(Paint paint) { if (paint == null) { throw new IllegalArgumentException("Null 'paint' argument."); } this.paint = paint; fireAnnotationChanged(); }
/** * Sets the font for the annotation and sends an * {@link AnnotationChangeEvent} to all registered listeners. * * @param font the font (<code>null</code> not permitted). * * @see #getFont() */ public void setFont(Font font) { if (font == null) { throw new IllegalArgumentException("Null 'font' argument."); } this.font = font; fireAnnotationChanged(); }
/** * Sets the rotation anchor point and sends an * {@link AnnotationChangeEvent} to all registered listeners. * * @param anchor the anchor ({@code null} not permitted). * * @see #getRotationAnchor() */ public void setRotationAnchor(TextAnchor anchor) { Args.nullNotPermitted(anchor, "anchor"); this.rotationAnchor = anchor; fireAnnotationChanged(); }
/** * Sets the text for the annotation. * * @param text the text ({@code null} not permitted). * * @see #getText() */ public void setText(String text) { Args.nullNotPermitted(text, "text"); this.text = text; fireAnnotationChanged(); }
/** * Sets the font for the annotation and sends an * {@link AnnotationChangeEvent} to all registered listeners. * * @param font the font ({@code null} not permitted). * * @see #getFont() */ public void setFont(Font font) { Args.nullNotPermitted(font, "font"); this.font = font; fireAnnotationChanged(); }
/** * Sets the paint for the annotation and sends an * {@link AnnotationChangeEvent} to all registered listeners. * * @param paint the paint ({@code null} not permitted). * * @see #getPaint() */ public void setPaint(Paint paint) { Args.nullNotPermitted(paint, "paint"); this.paint = paint; fireAnnotationChanged(); }
/** * Sets the outline stroke for the annotation and sends an * {@link AnnotationChangeEvent} to all registered listeners. * * @param stroke the stroke ({@code null} not permitted). * * @see #getOutlineStroke() * * @since 1.0.13 */ public void setOutlineStroke(Stroke stroke) { Args.nullNotPermitted(stroke, "stroke"); this.outlineStroke = stroke; fireAnnotationChanged(); }
/** * Sets the outline paint for the annotation and sends an * {@link AnnotationChangeEvent} to all registered listeners. * * @param paint the paint ({@code null} not permitted). * * @see #getOutlinePaint() * * @since 1.0.13 */ public void setOutlinePaint(Paint paint) { Args.nullNotPermitted(paint, "paint"); this.outlinePaint = paint; fireAnnotationChanged(); }
/** * Sets the text anchor (the point on the text bounding rectangle that is * aligned to the (x, y) coordinate of the annotation) and sends an * {@link AnnotationChangeEvent} to all registered listeners. * * @param anchor the anchor point ({@code null} not permitted). * * @see #getTextAnchor() */ public void setTextAnchor(TextAnchor anchor) { Args.nullNotPermitted(anchor, "anchor"); this.textAnchor = anchor; fireAnnotationChanged(); }