Class CategoryLineAnnotation

java.lang.Object
org.jfree.chart.annotations.AbstractAnnotation
org.jfree.chart.annotations.CategoryLineAnnotation
All Implemented Interfaces:
Serializable, Cloneable, Annotation, CategoryAnnotation, PublicCloneable

public class CategoryLineAnnotation
extends AbstractAnnotation
implements CategoryAnnotation, Cloneable, PublicCloneable, Serializable
A line annotation that can be placed on a CategoryPlot.
See Also:
Serialized Form
  • Constructor Details

    • CategoryLineAnnotation

      public CategoryLineAnnotation​(Comparable category1, double value1, Comparable category2, double value2, Paint paint, Stroke stroke)
      Creates a new annotation that draws a line between (category1, value1) and (category2, value2).
      Parameters:
      category1 - the category (null not permitted).
      value1 - the value.
      category2 - the category (null not permitted).
      value2 - the value.
      paint - the line color (null not permitted).
      stroke - the line stroke (null not permitted).
  • Method Details