/** * Returns a clone of the annotation. * * @return A clone. * * @throws CloneNotSupportedException if the annotation can't be cloned. */ public Object clone() throws CloneNotSupportedException { return super.clone(); }
/** * Sets the value and sends an * {@link AnnotationChangeEvent} to all registered listeners. * * @param value the value. * * @see #getValue() */ public void setValue(double value) { this.value = value; fireAnnotationChanged(); }
rangeEdge); g2.setFont(getFont()); g2.setPaint(getPaint()); TextUtils.drawRotatedString(getText(), g2, anchorX, anchorY, getTextAnchor(), getRotationAngle(), getRotationAnchor());
/** * Tests this object for equality with another. * * @param obj the object ({@code null} permitted). * * @return {@code true} or {@code false}. */ @Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof CategoryTextAnnotation)) { return false; } CategoryTextAnnotation that = (CategoryTextAnnotation) obj; if (!super.equals(obj)) { return false; } if (!this.category.equals(that.getCategory())) { return false; } if (!this.categoryAnchor.equals(that.getCategoryAnchor())) { return false; } if (this.value != that.getValue()) { return false; } return true; }
return false; if (!super.equals(obj)) { return false;
rangeEdge); g2.setFont(getFont()); g2.setPaint(getPaint()); TextUtilities.drawRotatedString(getText(), g2, anchorX, anchorY, getTextAnchor(), getRotationAngle(), getRotationAnchor());
/** * Tests this object for equality with another. * * @param obj the object (<code>null</code> permitted). * * @return <code>true</code> or <code>false</code>. */ public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof CategoryTextAnnotation)) { return false; } CategoryTextAnnotation that = (CategoryTextAnnotation) obj; if (!super.equals(obj)) { return false; } if (!this.category.equals(that.getCategory())) { return false; } if (!this.categoryAnchor.equals(that.getCategoryAnchor())) { return false; } if (this.value != that.getValue()) { return false; } return true; }
return false; if (!super.equals(obj)) { return false;
/** * Sets the value and sends an * {@link AnnotationChangeEvent} to all registered listeners. * * @param value the value. * * @see #getValue() */ public void setValue(double value) { this.value = value; fireAnnotationChanged(); }
/** * Returns a clone of the annotation. * * @return A clone. * * @throws CloneNotSupportedException if the annotation can't be cloned. */ @Override public Object clone() throws CloneNotSupportedException { return super.clone(); }
/** * Sets the category that the annotation attaches to and sends an * {@link AnnotationChangeEvent} to all registered listeners. * * @param category the category (<code>null</code> not permitted). * * @see #getCategory() */ public void setCategory(Comparable category) { if (category == null) { throw new IllegalArgumentException("Null 'category' argument."); } this.category = category; fireAnnotationChanged(); }
/** * Sets the category anchor point and sends an * {@link AnnotationChangeEvent} to all registered listeners. * * @param anchor the anchor point (<code>null</code> not permitted). * * @see #getCategoryAnchor() */ public void setCategoryAnchor(CategoryAnchor anchor) { if (anchor == null) { throw new IllegalArgumentException("Null 'anchor' argument."); } this.categoryAnchor = anchor; fireAnnotationChanged(); }
/** * Sets the category that the annotation attaches to and sends an * {@link AnnotationChangeEvent} to all registered listeners. * * @param category the category ({@code null} not permitted). * * @see #getCategory() */ public void setCategory(Comparable category) { Args.nullNotPermitted(category, "category"); this.category = category; fireAnnotationChanged(); }
/** * Sets the category anchor point and sends an * {@link AnnotationChangeEvent} to all registered listeners. * * @param anchor the anchor point ({@code null} not permitted). * * @see #getCategoryAnchor() */ public void setCategoryAnchor(CategoryAnchor anchor) { Args.nullNotPermitted(anchor, "anchor"); this.categoryAnchor = anchor; fireAnnotationChanged(); }