public abstract class Marker extends Object implements Cloneable, Serializable
Modifier and Type | Method and Description |
---|---|
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). |
org.jfree.ui.RectangleAnchor |
getLabelAnchor()
Returns the label anchor.
|
Color |
getLabelBackgroundColor()
Returns the label background color.
|
Font |
getLabelFont()
Returns the label font.
|
org.jfree.ui.RectangleInsets |
getLabelOffset()
Returns the label offset.
|
org.jfree.ui.LengthAdjustmentType |
getLabelOffsetType()
Returns the label offset type.
|
Paint |
getLabelPaint()
Returns the label paint.
|
org.jfree.ui.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(org.jfree.ui.RectangleAnchor anchor)
Sets the label anchor and sends a
MarkerChangeEvent to all
registered listeners. |
void |
setLabelBackgroundColor(Color color)
Sets the label background color.
|
void |
setLabelFont(Font font)
Sets the label font and sends a
MarkerChangeEvent to all
registered listeners. |
void |
setLabelOffset(org.jfree.ui.RectangleInsets offset)
Sets the label offset and sends a
MarkerChangeEvent to all
registered listeners. |
void |
setLabelOffsetType(org.jfree.ui.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(org.jfree.ui.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. |
public Paint getPaint()
null
).setPaint(Paint)
public void setPaint(Paint paint)
MarkerChangeEvent
to all registered
listeners.paint
- the paint (null
not permitted).getPaint()
public Stroke getStroke()
null
).setStroke(Stroke)
public void setStroke(Stroke stroke)
MarkerChangeEvent
to all registered
listeners.stroke
- the stroke (null
not permitted).getStroke()
public Paint getOutlinePaint()
null
).setOutlinePaint(Paint)
public void setOutlinePaint(Paint paint)
MarkerChangeEvent
to all
registered listeners.paint
- the paint (null
permitted).getOutlinePaint()
public Stroke getOutlineStroke()
null
).setOutlineStroke(Stroke)
public void setOutlineStroke(Stroke stroke)
MarkerChangeEvent
to all
registered listeners.stroke
- the stroke (null
permitted).getOutlineStroke()
public float getAlpha()
setAlpha(float)
public void setAlpha(float alpha)
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.getAlpha()
public String getLabel()
null
no label is displayed).null
).setLabel(String)
public void setLabel(String label)
null
no label is displayed) and sends a
MarkerChangeEvent
to all registered listeners.label
- the label (null
permitted).getLabel()
public Font getLabelFont()
null
).setLabelFont(Font)
public void setLabelFont(Font font)
MarkerChangeEvent
to all
registered listeners.font
- the font (null
not permitted).getLabelFont()
public Paint getLabelPaint()
null
).setLabelPaint(Paint)
public void setLabelPaint(Paint paint)
MarkerChangeEvent
to all
registered listeners.paint
- the paint (null
not permitted).getLabelPaint()
public Color getLabelBackgroundColor()
Color(100, 100, 100, 100)
..null
).public void setLabelBackgroundColor(Color color)
color
- the color (null
not permitted).public org.jfree.ui.RectangleAnchor getLabelAnchor()
null
).setLabelAnchor(RectangleAnchor)
public void setLabelAnchor(org.jfree.ui.RectangleAnchor anchor)
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).getLabelAnchor()
public org.jfree.ui.RectangleInsets getLabelOffset()
null
).setLabelOffset(RectangleInsets)
public void setLabelOffset(org.jfree.ui.RectangleInsets offset)
MarkerChangeEvent
to all
registered listeners.offset
- the label offset (null
not permitted).getLabelOffset()
public org.jfree.ui.LengthAdjustmentType getLabelOffsetType()
null
).setLabelOffsetType(LengthAdjustmentType)
public void setLabelOffsetType(org.jfree.ui.LengthAdjustmentType adj)
MarkerChangeEvent
to all
registered listeners.adj
- the type (null
not permitted).getLabelOffsetType()
public org.jfree.ui.TextAnchor getLabelTextAnchor()
null
).setLabelTextAnchor(TextAnchor)
public void setLabelTextAnchor(org.jfree.ui.TextAnchor anchor)
MarkerChangeEvent
to
all registered listeners.anchor
- the label text anchor (null
not permitted).getLabelTextAnchor()
public void addChangeListener(MarkerChangeListener listener)
listener
- the object to be registered.removeChangeListener(MarkerChangeListener)
public void removeChangeListener(MarkerChangeListener listener)
listener
- the object to be unregistered.addChangeListener(MarkerChangeListener)
public void notifyListeners(MarkerChangeEvent event)
event
- information about the change event.public EventListener[] getListeners(Class listenerType)
listenerType
- the listener type.public boolean equals(Object obj)
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
- never.Jas4pp 1.5 © Java Analysis Studio for Particle Physics