/** * Sets the y-value for the end of the line and sends an * {@link AnnotationChangeEvent} to all registered listeners. * * @param value the value. * * @see #getValue2() */ public void setValue2(double value) { this.value2 = value; fireAnnotationChanged(); }
if (!this.category1.equals(that.getCategory1())) { return false; if (this.value1 != that.getValue1()) { return false; if (!this.category2.equals(that.getCategory2())) { return false; if (this.value2 != that.getValue2()) { return false;
if (!this.category1.equals(that.getCategory1())) { return false; if (this.value1 != that.getValue1()) { return false; if (!this.category2.equals(that.getCategory2())) { return false; if (this.value2 != that.getValue2()) { return false;
/** * Sets the y-value for the start of the line and sends an * {@link AnnotationChangeEvent} to all registered listeners. * * @param value the value. * * @see #getValue1() */ public void setValue1(double value) { this.value1 = value; fireAnnotationChanged(); }
/** * Sets the y-value for the start of the line and sends an * {@link AnnotationChangeEvent} to all registered listeners. * * @param value the value. * * @see #getValue1() */ public void setValue1(double value) { this.value1 = value; fireAnnotationChanged(); }
/** * Sets the y-value for the end of the line and sends an * {@link AnnotationChangeEvent} to all registered listeners. * * @param value the value. * * @see #getValue2() */ public void setValue2(double value) { this.value2 = value; fireAnnotationChanged(); }
/** * Sets the category for the start of the line and sends an * {@link AnnotationChangeEvent} to all registered listeners. * * * @param category the category (<code>null</code> not permitted). * * @see #getCategory1() */ public void setCategory1(Comparable category) { if (category == null) { throw new IllegalArgumentException("Null 'category' argument."); } this.category1 = category; fireAnnotationChanged(); }
/** * Sets the category for the end of the line and sends an * {@link AnnotationChangeEvent} to all registered listeners. * * @param category the category (<code>null</code> not permitted). * * @see #getCategory2() */ public void setCategory2(Comparable category) { if (category == null) { throw new IllegalArgumentException("Null 'category' argument."); } this.category2 = category; fireAnnotationChanged(); }
/** * Sets the paint used to draw the connecting line 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 stroke used to draw the connecting line and sends an * {@link AnnotationChangeEvent} to all registered listeners. * * @param stroke the stroke (<code>null</code> not permitted). * * @see #getStroke() */ public void setStroke(Stroke stroke) { if (stroke == null) { throw new IllegalArgumentException("Null 'stroke' argument."); } this.stroke = stroke; fireAnnotationChanged(); }
/** * Sets the stroke used to draw the connecting line and sends an * {@link AnnotationChangeEvent} to all registered listeners. * * @param stroke the stroke ({@code null} not permitted). * * @see #getStroke() */ public void setStroke(Stroke stroke) { Args.nullNotPermitted(stroke, "stroke"); this.stroke = stroke; fireAnnotationChanged(); }
/** * Sets the category for the start of the line and sends an * {@link AnnotationChangeEvent} to all registered listeners. * * @param category the category ({@code null} not permitted). * * @see #getCategory1() */ public void setCategory1(Comparable category) { Args.nullNotPermitted(category, "category"); this.category1 = category; fireAnnotationChanged(); }
/** * Sets the category for the end of the line and sends an * {@link AnnotationChangeEvent} to all registered listeners. * * @param category the category ({@code null} not permitted). * * @see #getCategory2() */ public void setCategory2(Comparable category) { Args.nullNotPermitted(category, "category"); this.category2 = category; fireAnnotationChanged(); }
/** * Sets the paint used to draw the connecting line 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(); }