java.lang.Object | |
↳ | org.jfree.chart.plot.Marker |
![]() |
The base class for markers that can be added to plots to highlight a value
or range of values.
An event notification mechanism was added to this class in JFreeChart
version 1.0.3.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new marker with default attributes.
| |||||||||||
Constructs a new marker.
| |||||||||||
Constructs a new marker.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Registers an object for notification of changes to the marker.
| |||||||||||
Creates a clone of the marker.
| |||||||||||
Tests the marker for equality with an arbitrary object.
| |||||||||||
Returns the alpha transparency.
| |||||||||||
Returns the label (if
null no label is displayed). | |||||||||||
Returns the label anchor.
| |||||||||||
Returns the label font.
| |||||||||||
Returns the label offset.
| |||||||||||
Returns the label offset type.
| |||||||||||
Returns the label paint.
| |||||||||||
Returns the label text anchor.
| |||||||||||
Returns an array containing all the listeners of the specified type.
| |||||||||||
Returns the outline paint.
| |||||||||||
Returns the outline stroke.
| |||||||||||
Returns the paint.
| |||||||||||
Returns the stroke.
| |||||||||||
Notifies all registered listeners that the marker has been modified.
| |||||||||||
Unregisters an object for notification of changes to the marker.
| |||||||||||
Sets the alpha transparency that should be used when drawing the
marker, and sends a
MarkerChangeEvent to all registered
listeners. | |||||||||||
Sets the label (if
null no label is displayed) and sends a
MarkerChangeEvent to all registered listeners. | |||||||||||
Sets the label anchor and sends a
MarkerChangeEvent to all
registered listeners. | |||||||||||
Sets the label font and sends a
MarkerChangeEvent to all
registered listeners. | |||||||||||
Sets the label offset and sends a
MarkerChangeEvent to all
registered listeners. | |||||||||||
Sets the label offset type and sends a
MarkerChangeEvent to all
registered listeners. | |||||||||||
Sets the label paint and sends a
MarkerChangeEvent to all
registered listeners. | |||||||||||
Sets the label text anchor and sends a
MarkerChangeEvent to
all registered listeners. | |||||||||||
Sets the outline paint and sends a
MarkerChangeEvent to all
registered listeners. | |||||||||||
Sets the outline stroke and sends a
MarkerChangeEvent to all
registered listeners. | |||||||||||
Sets the paint and sends a
MarkerChangeEvent to all registered
listeners. | |||||||||||
Sets the stroke and sends a
MarkerChangeEvent to all registered
listeners. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a new marker with default attributes.
Constructs a new marker.
paint | the paint (null not permitted).
|
---|
Constructs a new marker.
paint | the paint (null not permitted). |
---|---|
stroke | the stroke (null not permitted). |
outlinePaint | the outline paint (null permitted). |
outlineStroke | the outline stroke (null permitted). |
alpha | the alpha transparency (must be in the range 0.0f to 1.0f). |
IllegalArgumentException | if paint or
stroke is null , or alpha is
not in the specified range.
|
---|
Registers an object for notification of changes to the marker.
listener | the object to be registered. |
---|
Tests the marker for equality with an arbitrary object.
obj | the object (null permitted). |
---|
Returns the label (if null
no label is displayed).
null
).Returns the label anchor. This defines the position of the label anchor, relative to the bounds of the marker.
null
).Returns the label offset.
null
).Returns the label offset type.
null
).Returns the label text anchor.
null
).Returns an array containing all the listeners of the specified type.
listenerType | the listener type. |
---|
Returns the outline paint.
null
).Returns the outline stroke.
null
).Notifies all registered listeners that the marker has been modified.
event | information about the change event. |
---|
Unregisters an object for notification of changes to the marker.
listener | the object to be unregistered. |
---|
Sets the alpha transparency that should be used when drawing the
marker, and sends a MarkerChangeEvent
to all registered
listeners. The alpha transparency is a value in the range 0.0f
(completely transparent) to 1.0f (completely opaque).
alpha | the alpha transparency (must be in the range 0.0f to 1.0f). |
---|
IllegalArgumentException | if alpha is not in the
specified range. |
---|
Sets the label (if null
no label is displayed) and sends a
MarkerChangeEvent
to all registered listeners.
label | the label (null permitted). |
---|
Sets the label anchor and sends a MarkerChangeEvent
to all
registered listeners. The anchor defines the position of the label
anchor, relative to the bounds of the marker.
anchor | the anchor (null not permitted). |
---|
Sets the label font and sends a MarkerChangeEvent
to all
registered listeners.
font | the font (null not permitted). |
---|
Sets the label offset and sends a MarkerChangeEvent
to all
registered listeners.
offset | the label offset (null not permitted). |
---|
Sets the label offset type and sends a MarkerChangeEvent
to all
registered listeners.
adj | the type (null not permitted). |
---|
Sets the label paint and sends a MarkerChangeEvent
to all
registered listeners.
paint | the paint (null not permitted). |
---|
Sets the label text anchor and sends a MarkerChangeEvent
to
all registered listeners.
anchor | the label text anchor (null not permitted). |
---|
Sets the outline paint and sends a MarkerChangeEvent
to all
registered listeners.
paint | the paint (null permitted). |
---|
Sets the outline stroke and sends a MarkerChangeEvent
to all
registered listeners.
stroke | the stroke (null permitted). |
---|
Sets the paint and sends a MarkerChangeEvent
to all registered
listeners.
paint | the paint (null not permitted). |
---|
Sets the stroke and sends a MarkerChangeEvent
to all registered
listeners.
stroke | the stroke (null not permitted). |
---|