- All Superinterfaces:
ChartElement
- All Known Subinterfaces:
ValueMarker
- All Known Implementing Classes:
AbstractMarker
,CategoryMarker
,NumberMarker
,RangeMarker
A base interface for all markers.
- Since:
- 1.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Color
The default fill color for markers.static final Color
The default color for the marker labels.static final Color
The default line color for markers.static final Stroke
The default line stroke for markers.static final Font
The default font for marker labels. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChangeListener
(MarkerChangeListener listener) Registers a listener to receive notification of changes to the marker.void
draw
(Graphics2D g2, MarkerData markerData, boolean reverse) Draws the marker based on themarkerData
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.Methods inherited from interface org.jfree.chart3d.ChartElement
receive
-
Field Details
-
DEFAULT_LINE_STROKE
The default line stroke for markers. -
DEFAULT_LINE_COLOR
The default line color for markers. -
DEFAULT_FILL_COLOR
The default fill color for markers. -
DEFAULT_MARKER_FONT
The default font for marker labels. -
DEFAULT_LABEL_COLOR
The default color for the marker labels.
-
-
Method Details
-
draw
Draws the marker based on themarkerData
which has been passed to the 3D engine to generate the required 2D projection points.- Parameters:
g2
- the graphics target (null
not permitted).markerData
- transient data for the marker (null
not permitted).reverse
- a flag to indicate reverse orientation.
-
addChangeListener
Registers a listener to receive notification of changes to the marker.- Parameters:
listener
- the listener (null
not permitted).
-
removeChangeListener
Deregisters a listener so that it no longer receives notification of changes to the marker.- Parameters:
listener
- the listener (null
not permitted).
-