java.lang.Object | ||
↳ | org.jfree.chart.annotations.AbstractXYAnnotation | |
↳ | org.jfree.chart.annotations.XYBoxAnnotation |
A box annotation that can be placed on an XYPlot
. The
box coordinates are specified in data space.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new annotation (where, by default, the box is drawn
with a black outline).
| |||||||||||
Creates a new annotation where the box is drawn as an outline using
the specified
stroke and outlinePaint . | |||||||||||
Creates a new annotation.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a clone.
| |||||||||||
Draws the annotation.
| |||||||||||
Tests this annotation for equality with an arbitrary object.
| |||||||||||
Returns a hash code.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates a new annotation (where, by default, the box is drawn with a black outline).
x0 | the lower x-coordinate of the box (in data space). |
---|---|
y0 | the lower y-coordinate of the box (in data space). |
x1 | the upper x-coordinate of the box (in data space). |
y1 | the upper y-coordinate of the box (in data space). |
Creates a new annotation where the box is drawn as an outline using
the specified stroke
and outlinePaint
.
x0 | the lower x-coordinate of the box (in data space). |
---|---|
y0 | the lower y-coordinate of the box (in data space). |
x1 | the upper x-coordinate of the box (in data space). |
y1 | the upper y-coordinate of the box (in data space). |
stroke | the shape stroke (null permitted). |
outlinePaint | the shape color (null permitted).
|
Creates a new annotation.
x0 | the lower x-coordinate of the box (in data space). |
---|---|
y0 | the lower y-coordinate of the box (in data space). |
x1 | the upper x-coordinate of the box (in data space). |
y1 | the upper y-coordinate of the box (in data space). |
stroke | the shape stroke (null permitted). |
outlinePaint | the shape color (null permitted). |
fillPaint | the paint used to fill the shape (null
permitted).
|
Returns a clone.
CloneNotSupportedException | not thrown by this class, but may be by subclasses. |
---|
Draws the annotation. This method is usually called by the
XYPlot
class, you shouldn't need to call it directly.
g2 | the graphics device. |
---|---|
plot | the plot. |
dataArea | the data area. |
domainAxis | the domain axis. |
rangeAxis | the range axis. |
rendererIndex | the renderer index. |
info | the plot rendering info. |
Tests this annotation for equality with an arbitrary object.
obj | the object (null permitted). |
---|
Returns a hash code.