/** * 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 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 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) { this.rotationAnchor = anchor; 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 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 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</code> not permitted). * * @see #getTextAnchor() */ public void setTextAnchor(TextAnchor anchor) { if (anchor == null) { throw new IllegalArgumentException("Null 'anchor' argument."); } this.textAnchor = anchor; 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 and sends an * {@link AnnotationChangeEvent} to all registered listeners. * * @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 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(); }