java.lang.Object | ||
↳ | org.jfree.chart.panel.AbstractOverlay | |
↳ | org.jfree.chart.panel.CrosshairOverlay |
An overlay for a ChartPanel
that draws crosshairs on a plot.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Default constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a crosshair against the domain axis.
| |||||||||||
Adds a crosshair against the range axis.
| |||||||||||
Returns a clone of this instance.
| |||||||||||
Tests this overlay for equality with an arbitrary object.
| |||||||||||
Paints the crosshairs in the layer.
| |||||||||||
Receives a property change event (typically a change in one of the
crosshairs).
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Draws a crosshair horizontally across the plot.
| |||||||||||
Draws a crosshair vertically on the plot.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.jfree.chart.panel.AbstractOverlay
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.beans.PropertyChangeListener
| |||||||||||
From interface
org.jfree.chart.panel.Overlay
|
Default constructor.
Adds a crosshair against the domain axis.
crosshair | the crosshair. |
---|
Adds a crosshair against the range axis.
crosshair | the crosshair. |
---|
Returns a clone of this instance.
CloneNotSupportedException | if there is some problem with the cloning. |
---|
Tests this overlay for equality with an arbitrary object.
obj | the object (null permitted). |
---|
Paints the crosshairs in the layer.
g2 | the graphics target. |
---|---|
chartPanel | the chart panel. |
Receives a property change event (typically a change in one of the crosshairs).
e | the event. |
---|
Draws a crosshair horizontally across the plot.
g2 | the graphics target. |
---|---|
dataArea | the data area. |
y | the y-value in Java2D space. |
crosshair | the crosshair. |
Draws a crosshair vertically on the plot.
g2 | the graphics target. |
---|---|
dataArea | the data area. |
x | the x-value in Java2D space. |
crosshair | the crosshair. |