public interface Marker extends ChartElement
| Modifier and Type | Field and Description |
|---|---|
static java.awt.Color |
DEFAULT_FILL_COLOR
The default fill color for markers.
|
static java.awt.Color |
DEFAULT_LABEL_COLOR
The default color for the marker labels.
|
static java.awt.Color |
DEFAULT_LINE_COLOR
The default line color for markers.
|
static java.awt.Stroke |
DEFAULT_LINE_STROKE
The default line stroke for markers.
|
static java.awt.Font |
DEFAULT_MARKER_FONT
The default font for marker labels.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChangeListener(MarkerChangeListener listener)
Registers a listener to receive notification of changes to the marker.
|
void |
draw(java.awt.Graphics2D g2,
MarkerData markerData,
boolean reverse)
Draws the marker based on the
markerData which has been
passed to the 3D engine to generate the required 2D projection points. |
void |
removeChangeListener(MarkerChangeListener listener)
Deregisters a listener so that it no longer receives notification of
changes to the marker.
|
receivestatic final java.awt.Stroke DEFAULT_LINE_STROKE
static final java.awt.Color DEFAULT_LINE_COLOR
static final java.awt.Color DEFAULT_FILL_COLOR
static final java.awt.Font DEFAULT_MARKER_FONT
static final java.awt.Color DEFAULT_LABEL_COLOR
void draw(java.awt.Graphics2D g2, MarkerData markerData, boolean reverse)
markerData which has been
passed to the 3D engine to generate the required 2D projection points.g2 - the graphics target (null not permitted).markerData - transient data for the marker (null not
permitted).reverse - a flag to indicate reverse orientation.void addChangeListener(MarkerChangeListener listener)
listener - the listener (null not permitted).void removeChangeListener(MarkerChangeListener listener)
listener - the listener (null not permitted).