/** * 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(); }
/** * 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(); }
/** * 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(); }