java.lang.Object | |
↳ | org.jfree.chart.annotations.CategoryLineAnnotation |
A line annotation that can be placed on a CategoryPlot
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new annotation that draws a line between (category1, value1)
and (category2, value2).
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a clone of the annotation.
| |||||||||||
Draws the annotation.
| |||||||||||
Tests this object for equality with another.
| |||||||||||
Returns the category for the start of the line.
| |||||||||||
Returns the category for the end of the line.
| |||||||||||
Returns the paint used to draw the connecting line.
| |||||||||||
Returns the stroke used to draw the connecting line.
| |||||||||||
Returns the y-value for the start of the line.
| |||||||||||
Returns the y-value for the end of the line.
| |||||||||||
Returns a hash code for this instance.
| |||||||||||
Sets the category for the start of the line.
| |||||||||||
Sets the category for the end of the line.
| |||||||||||
Sets the paint used to draw the connecting line.
| |||||||||||
Sets the stroke used to draw the connecting line.
| |||||||||||
Sets the y-value for the start of the line.
| |||||||||||
Sets the y-value for the end of the line.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Creates a new annotation that draws a line between (category1, value1) and (category2, value2).
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).
|
Returns a clone of the annotation.
CloneNotSupportedException | this class will not throw this exception, but subclasses (if any) might. |
---|
Draws the annotation.
g2 | the graphics device. |
---|---|
plot | the plot. |
dataArea | the data area. |
domainAxis | the domain axis. |
rangeAxis | the range axis. |
Tests this object for equality with another.
obj | the object (null permitted). |
---|
true
or false
.
Returns the category for the start of the line.
null
).Returns the category for the end of the line.
null
).Returns the paint used to draw the connecting line.
null
).Returns the stroke used to draw the connecting line.
null
).Returns the y-value for the start of the line.
Returns the y-value for the end of the line.
Returns a hash code for this instance.
Sets the category for the start of the line.
category | the category (null not permitted). |
---|
Sets the category for the end of the line.
category | the category (null not permitted). |
---|
Sets the paint used to draw the connecting line.
paint | the paint (null not permitted). |
---|
Sets the stroke used to draw the connecting line.
stroke | the stroke (null not permitted). |
---|