Class CategoryLineAnnotation

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

A line annotation that can be placed on a CategoryPlot.
See Also:
  • 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 (must be finite).
      category2 - the category (null not permitted).
      value2 - the value (must be finite).
      paint - the line color (null not permitted).
      stroke - the line stroke (null not permitted).
  • Method Details