public class CategoryMarker extends Marker implements java.lang.Cloneable, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private boolean |
drawAsLine
A hint that the marker should be drawn as a line rather than a region.
|
private java.lang.Comparable |
key
The category key.
|
| Constructor and Description |
|---|
CategoryMarker(java.lang.Comparable key)
Creates a new category marker for the specified category.
|
CategoryMarker(java.lang.Comparable key,
java.awt.Paint paint,
java.awt.Stroke stroke)
Creates a new category marker.
|
CategoryMarker(java.lang.Comparable key,
java.awt.Paint paint,
java.awt.Stroke stroke,
java.awt.Paint outlinePaint,
java.awt.Stroke outlineStroke,
float alpha)
Creates a new category marker.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.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.
|
java.lang.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(java.lang.Comparable key)
Sets the key and sends a
MarkerChangeEvent to all registered
listeners. |
addChangeListener, clone, getAlpha, getLabel, getLabelAnchor, getLabelBackgroundColor, getLabelFont, getLabelOffset, getLabelOffsetType, getLabelPaint, getLabelTextAnchor, getListeners, getOutlinePaint, getOutlineStroke, getPaint, getStroke, notifyListeners, removeChangeListener, setAlpha, setLabel, setLabelAnchor, setLabelBackgroundColor, setLabelFont, setLabelOffset, setLabelOffsetType, setLabelPaint, setLabelTextAnchor, setOutlinePaint, setOutlineStroke, setPaint, setStrokeprivate java.lang.Comparable key
private boolean drawAsLine
public CategoryMarker(java.lang.Comparable key)
key - the category key.public CategoryMarker(java.lang.Comparable key,
java.awt.Paint paint,
java.awt.Stroke stroke)
key - the key.paint - the paint (null not permitted).stroke - the stroke (null not permitted).public CategoryMarker(java.lang.Comparable key,
java.awt.Paint paint,
java.awt.Stroke stroke,
java.awt.Paint outlinePaint,
java.awt.Stroke outlineStroke,
float alpha)
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.public java.lang.Comparable getKey()
public void setKey(java.lang.Comparable key)
MarkerChangeEvent to all registered
listeners.key - the key (null not permitted).public boolean getDrawAsLine()
public void setDrawAsLine(boolean drawAsLine)
MarkerChangeEvent to all registered
listeners.drawAsLine - the flag.