org.jfree.chart.panel
public class CrosshairOverlay extends AbstractOverlay implements Overlay, PropertyChangeListener, PublicCloneable, Cloneable, Serializable
Since: 1.0.13
Constructor Summary | |
---|---|
CrosshairOverlay()
Default constructor. |
Method Summary | |
---|---|
void | addDomainCrosshair(Crosshair crosshair)
Adds a crosshair against the domain axis.
|
void | addRangeCrosshair(Crosshair crosshair)
Adds a crosshair against the range axis.
|
void | clearDomainCrosshairs() |
void | clearRangeCrosshairs() |
Object | clone()
Returns a clone of this instance.
|
protected void | drawHorizontalCrosshair(Graphics2D g2, Rectangle2D dataArea, double y, Crosshair crosshair)
Draws a crosshair horizontally across the plot.
|
protected void | drawVerticalCrosshair(Graphics2D g2, Rectangle2D dataArea, double x, Crosshair crosshair)
Draws a crosshair vertically on the plot.
|
boolean | equals(Object obj)
Tests this overlay for equality with an arbitrary object.
|
List | getDomainCrosshairs() |
List | getRangeCrosshairs() |
void | paintOverlay(Graphics2D g2, ChartPanel chartPanel)
Paints the crosshairs in the layer.
|
void | propertyChange(PropertyChangeEvent e)
Receives a property change event (typically a change in one of the
crosshairs).
|
void | removeDomainCrosshair(Crosshair crosshair) |
void | removeRangeCrosshair(Crosshair crosshair) |
Parameters: crosshair the crosshair.
Parameters: crosshair the crosshair.
Returns: A clone of this instance.
Throws: java.lang.CloneNotSupportedException if there is some problem with the cloning.
Parameters: g2 the graphics target. dataArea the data area. y the y-value in Java2D space. crosshair the crosshair.
Parameters: g2 the graphics target. dataArea the data area. x the x-value in Java2D space. crosshair the crosshair.
Parameters: obj the object (null
permitted).
Returns: A boolean.
Parameters: g2 the graphics target. chartPanel the chart panel.
Parameters: e the event.