org.jfree.chart.plot
public class CategoryMarker extends Marker implements Cloneable, Serializable
See Also: addDomainMarker
Constructor Summary | |
---|---|
CategoryMarker(Comparable key)
Creates a new category marker for the specified category.
| |
CategoryMarker(Comparable key, Paint paint, Stroke stroke)
Creates a new category marker.
| |
CategoryMarker(Comparable key, Paint paint, Stroke stroke, Paint outlinePaint, Stroke outlineStroke, float alpha)
Creates a new category marker.
|
Method Summary | |
---|---|
boolean | equals(Object obj)
Tests the marker for equality with an arbitrary object.
|
boolean | getDrawAsLine()
Returns the flag that controls whether the marker is drawn as a region
or a line.
|
Comparable | getKey()
Returns the key.
|
void | setDrawAsLine(boolean drawAsLine)
Sets the flag that controls whether the marker is drawn as a region or
as a line, and sends a MarkerChangeEvent to all registered
listeners.
|
void | setKey(Comparable key)
Sets the key and sends a MarkerChangeEvent to all registered
listeners.
|
Parameters: key the category key.
Parameters: key the key. paint the paint (null
not permitted). stroke the stroke (null
not permitted).
Parameters: key the key. 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.
Parameters: obj the object (null
permitted).
Returns: A boolean.
Returns: A line.
Returns: The key.
Parameters: drawAsLine the flag.
Parameters: key the key (null
not permitted).
Since: 1.0.3