- 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 ColorThe default fill color for markers.static final ColorThe default color for the marker labels.static final ColorThe default line color for markers.static final StrokeThe default line stroke for markers.static final FontThe default font for marker labels. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChangeListener(MarkerChangeListener listener) Registers a listener to receive notification of changes to the marker.voiddraw(Graphics2D g2, MarkerData markerData, boolean reverse) Draws the marker based on themarkerDatawhich has been passed to the 3D engine to generate the required 2D projection points.voidremoveChangeListener(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 themarkerDatawhich has been passed to the 3D engine to generate the required 2D projection points.- Parameters:
g2- the graphics target (nullnot permitted).markerData- transient data for the marker (nullnot permitted).reverse- a flag to indicate reverse orientation.
-
addChangeListener
Registers a listener to receive notification of changes to the marker.- Parameters:
listener- the listener (nullnot permitted).
-
removeChangeListener
Deregisters a listener so that it no longer receives notification of changes to the marker.- Parameters:
listener- the listener (nullnot permitted).
-