| java.lang.Object org.jfree.chart.annotations.CategoryLineAnnotation
CategoryLineAnnotation | public CategoryLineAnnotation(Comparable category1, double value1, Comparable category2, double value2, Paint paint, Stroke stroke)(Code) | | Creates a new annotation that draws a line between (category1, value1)
and (category2, value2).
Parameters: category1 - the category (null not permitted). Parameters: value1 - the value. Parameters: category2 - the category (null not permitted). Parameters: value2 - the value. Parameters: paint - the line color (null not permitted). Parameters: stroke - the line stroke (null not permitted). |
draw | public void draw(Graphics2D g2, CategoryPlot plot, Rectangle2D dataArea, CategoryAxis domainAxis, ValueAxis rangeAxis)(Code) | | Draws the annotation.
Parameters: g2 - the graphics device. Parameters: plot - the plot. Parameters: dataArea - the data area. Parameters: domainAxis - the domain axis. Parameters: rangeAxis - the range axis. |
equals | public boolean equals(Object obj)(Code) | | Tests this object for equality with another.
Parameters: obj - the object (null permitted). true or false . |
hashCode | public int hashCode()(Code) | | Returns a hash code for this instance.
A hash code. |
|
|