org.jfree.chart.plot
public abstract class Marker extends Object implements Cloneable, Serializable
Constructor Summary | |
---|---|
protected | Marker()
Creates a new marker with default attributes. |
protected | Marker(Paint paint)
Constructs a new marker.
|
protected | Marker(Paint paint, Stroke stroke, Paint outlinePaint, Stroke outlineStroke, float alpha)
Constructs a new marker.
|
Method Summary | |
---|---|
void | addChangeListener(MarkerChangeListener listener)
Registers an object for notification of changes to the marker.
|
Object | clone()
Creates a clone of the marker.
|
boolean | equals(Object obj)
Tests the marker for equality with an arbitrary object.
|
float | getAlpha()
Returns the alpha transparency.
|
String | getLabel()
Returns the label (if null no label is displayed).
|
RectangleAnchor | getLabelAnchor()
Returns the label anchor. |
Font | getLabelFont()
Returns the label font.
|
RectangleInsets | getLabelOffset()
Returns the label offset.
|
LengthAdjustmentType | getLabelOffsetType()
Returns the label offset type.
|
Paint | getLabelPaint()
Returns the label paint.
|
TextAnchor | getLabelTextAnchor()
Returns the label text anchor.
|
EventListener[] | getListeners(Class listenerType)
Returns an array containing all the listeners of the specified type.
|
Paint | getOutlinePaint()
Returns the outline paint.
|
Stroke | getOutlineStroke()
Returns the outline stroke.
|
Paint | getPaint()
Returns the paint.
|
Stroke | getStroke()
Returns the stroke.
|
void | notifyListeners(MarkerChangeEvent event)
Notifies all registered listeners that the marker has been modified.
|
void | removeChangeListener(MarkerChangeListener listener)
Unregisters an object for notification of changes to the marker.
|
void | setAlpha(float alpha)
Sets the alpha transparency that should be used when drawing the
marker, and sends a MarkerChangeEvent to all registered
listeners. |
void | setLabel(String label)
Sets the label (if null no label is displayed) and sends a
MarkerChangeEvent to all registered listeners.
|
void | setLabelAnchor(RectangleAnchor anchor)
Sets the label anchor and sends a MarkerChangeEvent to all
registered listeners. |
void | setLabelFont(Font font)
Sets the label font and sends a MarkerChangeEvent to all
registered listeners.
|
void | setLabelOffset(RectangleInsets offset)
Sets the label offset and sends a MarkerChangeEvent to all
registered listeners.
|
void | setLabelOffsetType(LengthAdjustmentType adj)
Sets the label offset type and sends a MarkerChangeEvent to all
registered listeners.
|
void | setLabelPaint(Paint paint)
Sets the label paint and sends a MarkerChangeEvent to all
registered listeners.
|
void | setLabelTextAnchor(TextAnchor anchor)
Sets the label text anchor and sends a MarkerChangeEvent to
all registered listeners.
|
void | setOutlinePaint(Paint paint)
Sets the outline paint and sends a MarkerChangeEvent to all
registered listeners.
|
void | setOutlineStroke(Stroke stroke)
Sets the outline stroke and sends a MarkerChangeEvent to all
registered listeners.
|
void | setPaint(Paint paint)
Sets the paint and sends a MarkerChangeEvent to all registered
listeners.
|
void | setStroke(Stroke stroke)
Sets the stroke and sends a MarkerChangeEvent to all registered
listeners.
|
Parameters: paint the paint (null
not permitted).
Parameters: 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).
Throws: IllegalArgumentException if paint
or
stroke
is null
, or alpha
is
not in the specified range.
Parameters: listener the object to be registered.
Since: 1.0.3
Returns: A clone.
Throws: CloneNotSupportedException never.
Parameters: obj the object (null
permitted).
Returns: A boolean.
Returns: The alpha transparency.
See Also: Marker
null
no label is displayed).
Returns: The label (possibly null
).
See Also: setLabel
Returns: The label anchor (never null
).
See Also: setLabelAnchor
Returns: The label font (never null
).
See Also: setLabelFont
Returns: The label offset (never null
).
See Also: setLabelOffset
Returns: The type (never null
).
See Also: setLabelOffsetType
Returns: The label paint (never null).
See Also: setLabelPaint
Returns: The label text anchor (never null
).
See Also: setLabelTextAnchor
Parameters: listenerType the listener type.
Returns: The array of listeners.
Since: 1.0.3
Returns: The outline paint (possibly null
).
See Also: setOutlinePaint
Returns: The outline stroke (possibly null
).
See Also: setOutlineStroke
Returns: The paint (never null
).
See Also: setPaint
Returns: The stroke (never null
).
See Also: setStroke
Parameters: event information about the change event.
Since: 1.0.3
Parameters: listener the object to be unregistered.
Since: 1.0.3
Parameters: alpha the alpha transparency (must be in the range 0.0f to 1.0f).
Throws: IllegalArgumentException if alpha
is not in the
specified range.
See Also: getAlpha
null
no label is displayed) and sends a
MarkerChangeEvent to all registered listeners.
Parameters: label the label (null
permitted).
See Also: getLabel
Parameters: anchor the anchor (null
not permitted).
See Also: getLabelAnchor
Parameters: font the font (null
not permitted).
See Also: getLabelFont
Parameters: offset the label offset (null
not permitted).
See Also: getLabelOffset
Parameters: adj the type (null
not permitted).
See Also: getLabelOffsetType
Parameters: paint the paint (null
not permitted).
See Also: getLabelPaint
Parameters: anchor the label text anchor (null
not permitted).
See Also: getLabelTextAnchor
Parameters: paint the paint (null
permitted).
See Also: getOutlinePaint
Parameters: stroke the stroke (null
permitted).
See Also: getOutlineStroke
Parameters: paint the paint (null
not permitted).
See Also: getPaint
Parameters: stroke the stroke (null
not permitted).
See Also: getStroke