java.lang.Object | |
↳ | org.jfree.chart.plot.Crosshair |
A crosshair for display on a plot.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new crosshair with value 0.0.
| |||||||||||
Creates a new crosshair with the specified value.
| |||||||||||
Creates a new crosshair value with the specified value and line style.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a property change listener.
| |||||||||||
Returns an independent copy of this instance.
| |||||||||||
Tests this crosshair for equality with an arbitrary object.
| |||||||||||
Returns the label anchor point.
| |||||||||||
Returns the label background paint.
| |||||||||||
Returns the label font.
| |||||||||||
Returns the crosshair label generator.
| |||||||||||
Returns the label outline paint.
| |||||||||||
Returns the label outline stroke.
| |||||||||||
Returns the label paint.
| |||||||||||
Returns the x-offset for the label (in Java2D units).
| |||||||||||
Returns the y-offset for the label (in Java2D units).
| |||||||||||
Returns the paint for the crosshair line.
| |||||||||||
Returns the stroke for the crosshair line.
| |||||||||||
Returns the crosshair value.
| |||||||||||
Returns a hash code for this instance.
| |||||||||||
Returns the flag that controls the visibility of the label outline.
| |||||||||||
Returns the flag that controls whether or not a label is drawn for
this crosshair.
| |||||||||||
Returns the flag that indicates whether or not the crosshair is
currently visible.
| |||||||||||
Removes a property change listener.
| |||||||||||
Sets the label anchor point and sends a property change event (with the
name 'labelAnchor') to all registered listeners.
| |||||||||||
Sets the label background paint and sends a property change event with
the name 'labelBackgroundPaint') to all registered listeners.
| |||||||||||
Sets the label font and sends a property change event (with the name
'labelFont') to all registered listeners.
| |||||||||||
Sets the crosshair label generator and sends a property change event
(with the name 'labelGenerator') to all registered listeners.
| |||||||||||
Sets the label outline paint and sends a property change event (with the
name "labelOutlinePaint") to all registered listeners.
| |||||||||||
Sets the label outline stroke and sends a property change event (with
the name 'labelOutlineStroke') to all registered listeners.
| |||||||||||
Sets the flag that controls the visibility of the label outlines and
sends a property change event (with the name "labelOutlineVisible") to
all registered listeners.
| |||||||||||
Sets the label paint and sends a property change event (with the name
'labelPaint') to all registered listeners.
| |||||||||||
Sets the flag that controls whether or not a label is drawn for the
crosshair and sends a property change event (with the name
'labelVisible') to all registered listeners.
| |||||||||||
Sets the x-offset and sends a property change event (with the name
'labelXOffset') to all registered listeners.
| |||||||||||
Sets the y-offset and sends a property change event (with the name
'labelYOffset') to all registered listeners.
| |||||||||||
Sets the paint for the crosshair line and sends a property change event
with the name "paint" to all registered listeners.
| |||||||||||
Sets the stroke for the crosshair line and sends a property change event
with the name "stroke" to all registered listeners.
| |||||||||||
Sets the crosshair value and sends a property change event with the name
'value' to all registered listeners.
| |||||||||||
Sets the flag that controls the visibility of the crosshair and sends
a proerty change event (with the name 'visible') to all registered
listeners.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a new crosshair with value 0.0.
Creates a new crosshair with the specified value.
value | the value. |
---|
Creates a new crosshair value with the specified value and line style.
value | the value. |
---|---|
paint | the line paint (null not permitted). |
stroke | the line stroke (null not permitted).
|
Adds a property change listener.
l | the listener. |
---|
Returns an independent copy of this instance.
CloneNotSupportedException |
---|
Tests this crosshair for equality with an arbitrary object.
obj | the object (null permitted). |
---|
Returns the label anchor point.
null
.
Returns the label background paint.
null
).
Returns the crosshair label generator.
null
).
Returns the label outline paint.
null
).
Returns the label outline stroke.
null
).
Returns the x-offset for the label (in Java2D units).
Returns the y-offset for the label (in Java2D units).
Returns the stroke for the crosshair line.
null
).
Returns the crosshair value.
Returns a hash code for this instance.
Returns the flag that controls the visibility of the label outline.
Returns the flag that controls whether or not a label is drawn for this crosshair.
Returns the flag that indicates whether or not the crosshair is currently visible.
Removes a property change listener.
l | the listener. |
---|
Sets the label anchor point and sends a property change event (with the name 'labelAnchor') to all registered listeners.
anchor | the anchor (null not permitted).
|
---|
Sets the label background paint and sends a property change event with the name 'labelBackgroundPaint') to all registered listeners.
paint | the paint (null permitted).
|
---|
Sets the label font and sends a property change event (with the name 'labelFont') to all registered listeners.
font | the font (null not permitted).
|
---|
Sets the crosshair label generator and sends a property change event (with the name 'labelGenerator') to all registered listeners.
generator | the new generator (null not permitted).
|
---|
Sets the label outline paint and sends a property change event (with the name "labelOutlinePaint") to all registered listeners.
paint | the paint (null not permitted).
|
---|
Sets the label outline stroke and sends a property change event (with the name 'labelOutlineStroke') to all registered listeners.
stroke | the stroke (null not permitted).
|
---|
Sets the flag that controls the visibility of the label outlines and sends a property change event (with the name "labelOutlineVisible") to all registered listeners.
visible | the new flag value. |
---|
Sets the label paint and sends a property change event (with the name 'labelPaint') to all registered listeners.
paint | the paint (null not permitted).
|
---|
Sets the flag that controls whether or not a label is drawn for the crosshair and sends a property change event (with the name 'labelVisible') to all registered listeners.
visible | the new flag value. |
---|
Sets the x-offset and sends a property change event (with the name 'labelXOffset') to all registered listeners.
offset | the new offset. |
---|
Sets the y-offset and sends a property change event (with the name 'labelYOffset') to all registered listeners.
offset | the new offset. |
---|
Sets the paint for the crosshair line and sends a property change event with the name "paint" to all registered listeners.
paint | the paint (null not permitted).
|
---|
Sets the stroke for the crosshair line and sends a property change event with the name "stroke" to all registered listeners.
stroke | the stroke (null not permitted).
|
---|
Sets the crosshair value and sends a property change event with the name 'value' to all registered listeners.
value | the value. |
---|
Sets the flag that controls the visibility of the crosshair and sends a proerty change event (with the name 'visible') to all registered listeners.
visible | the new flag value. |
---|