java.lang.Object
org.jfree.chart3d.style.StandardChartStyle
- All Implemented Interfaces:
Serializable
,Cloneable
,ChartStyle
A standard implementation of the
NOTE: This class is serializable, but the serialization format is subject to change in future releases and should not be relied upon for persisting instances of this class.
ChartStyle
interface.
NOTE: This class is serializable, but the serialization format is subject to change in future releases and should not be relied upon for persisting instances of this class.
- Since:
- 1.2
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Color
The default foreground color for axis labels.static final Font
The default font for axis labels.static final Color
The default foreground color for axis tick labels.static final Font
The default font for axis tick labels.static final Color
The default chartbox color.static final boolean
The default visibility for gridlines perpendicular to the column-axis.static final Color
The default gridline color.static final Stroke
The default gridline stroke.static final Color
The default foreground color for the legend footer if there is one.static final Font
The default font for legend footers.static final Color
The default foreground color for the legend header if there is one.static final Font
The default font for legend headers.static final Color
The default legend item background color.static final Color
The default legend item color.static final Font
The default font for legend item text.static final Shape
The default legend item shape.static final Color
The default fill color for markers.static final Color
The default foreground color for marker labels.static final Font
The default font for marker labels.static final Color
The default color for marker lines.static final Stroke
The default stroke for marker lines.static final boolean
The default visibility for gridlines perpendicular to the row-axis.static final Color
The default color for pie section labels.static final Font
The default font for pie section labels.static final Font
The default subtitle font.static final Color
The default background color for the title and subtitle, and legend header and footer.static final Font
The default title font.static final boolean
The default visibility for gridlines perpendicular to the x-axis.static final boolean
The default visibility for gridlines perpendicular to the y-axis.static final boolean
The default visibility for gridlines perpendicular to the z-axis. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance with default attributes.StandardChartStyle
(StandardChartStyle source) A copy constructor that creates a new style that is a copy of an existing style (note that the existing style listeners are not copied). -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChangeListener
(ChartStyleChangeListener listener) Registers a listener to receive notification of changes to the chart.clone()
Returns a clone of the chart style (note that the change listeners are not cloned).static Font
createDefaultFont
(int style, int size) Creates a default font with the specifiedstyle
andsize
.boolean
Tests this instance for equality with an arbitrary object.protected void
Sends aChartStyleChangeEvent
to all registered listeners.Returns the foreground color for the axis label (the main label, not the tick labels).Returns the font used for the axis label.Returns the color used to draw the tick labels on the axis.Returns the font used for the axis tick labels.Returns the background painter.Returns the color used for theChartBox3D
(for those charts that have one).boolean
Returns the flag that controls whether or not gridlines are drawn perpendicular to the column axis in category plots.Returns the color used for the gridlines.Returns the stroke used to draw the gridlines.Returns the background color for the legend footer.Returns the foreground color for the legend footer.Returns the font for the legend footer.Returns the background color for the legend header.Returns the foreground color for the legend header.Returns the font used to display the legend header.Returns the background color for legend items.Returns the foreground color used for the legend items.Returns the font used for legend item text.Returns the standard shape for legend items.Returns the color used to fill the band representing the marker range.Returns the color for the marker labels.Returns the font used to draw marker labels.Returns the color used to draw marker lines.Returns the stroke used to draw marker lines.boolean
Returns the flag that controls whether or not gridlines are drawn perpendicular to the row axis in category plots.Returns the color used to display pie section labels.Returns the font used for pie section labels.Color[]
Returns the standard colors for the style.Returns the background color for the chart subtitle.Returns the color for the chart subtitle.Returns the font used for the chart subtitle.Returns the background color for the title.Returns the title color.Returns the chart title font.boolean
Returns the flag that specifies whether or not gridlines are drawn for the x-axis.boolean
Returns the flag that specifies whether or not gridlines are drawn for the y-axis.boolean
Returns the flag that specifies whether or not gridlines are drawn for the z-axis.boolean
isNotify()
Returns a flag that controls whether or not change events are sent to registered listeners.void
Notifies all registered listeners that the chart style has been modified.void
removeChangeListener
(ChartStyleChangeListener listener) Deregisters a listener so that it no longer receives notification of changes to the chart.void
setAxisLabelColor
(Color color) Sets the foreground color for the axis label and sends aChartStyleChangeEvent
to all registered listeners.void
setAxisLabelFont
(Font font) Sets the font used for the axis label and sends aChartStyleChangeEvent
to all registered listeners.void
setAxisTickLabelColor
(Color color) Sets the foreground color for the axis tick labels and sends aChartStyleChangeEvent
to all registered listeners.void
setAxisTickLabelFont
(Font font) Sets the font used for the axis tick labels and sends aChartStyleChangeEvent
to all registered listeners.void
setBackgroundPainter
(RectanglePainter painter) Sets the background painter.void
setChartBoxColor
(Color color) Sets the color used for the chart box and sends aChartStyleChangeEvent
to all registered listeners.void
setGridlineColor
(Color color) Sets the color for the gridlines and sends aChartStyleChangeEvent
to all registered listeners.void
setGridlineStroke
(Stroke stroke) Sets the stroke used for gridlines and sends aChartStyleChangeEvent
to all registered listeners.void
Sets the background color for the legend footer and sends aChartStyleChangeEvent
to all registered listeners.void
setLegendFooterColor
(Color color) Sets the foreground color for the legend footer and sends aChartStyleChangeEvent
to all registered listeners.void
setLegendFooterFont
(Font font) Sets the legend footer font and sends aChartStyleChangeEvent
to all registered listeners.void
Sets the background color for the legend header and sends aChartStyleChangeEvent
to all registered listeners.void
setLegendHeaderColor
(Color color) Sets the foreground color for the legend header and sends aChartStyleChangeEvent
to all registered listeners.void
setLegendHeaderFont
(Font font) Sets the legend header font and sends aChartStyleChangeEvent
to all registered listeners.void
Sets the background color for legend items and sends aChartStyleChangeEvent
to all registered listeners.void
setLegendItemColor
(Color color) Sets the foreground color used for legend item text and sends aChartStyleChangeEvent
to all registered listeners.void
setLegendItemFont
(Font font) Sets the legend item font and sends aChartStyleChangeEvent
to all registered listeners.void
setLegendItemShape
(Shape shape) Sets the default shape for legend items and sends aChartStyleChangeEvent
to all registered listeners.void
setMarkerFillColor
(Color color) Sets the marker fill color and sends a change event to all registered listeners.void
setMarkerLabelColor
(Color color) Sets the color for the marker labels and sends a change event to all registered listeners.void
setMarkerLabelFont
(Font font) Sets the marker label font and sends a change event to all registered listeners.void
setMarkerLineColor
(Color color) Sets the marker line color and sends a change event to all registered listeners.void
setMarkerLineStroke
(Stroke stroke) Sets the stroke for the marker lines and sends a change event to all registered listeners.void
setNotify
(boolean notify) Sets a flag that controls whether or not listeners receiveChartStyleChangeEvent
notifications.void
setSectionLabelColor
(Color color) Sets the color used for the pie section labels and sends aChartStyleChangeEvent
to all registered listeners.void
setSectionLabelFont
(Font font) Sets the font used for the pie section labels and sends aChartStyleChangeEvent
to all registered listeners.void
setStandardColors
(Color... colors) Sets the standard colors for the chart and sends aChartStyleChangeEvent
to all registered listeners.void
setSubtitleBackgroundColor
(Color color) Sets the background color for the chart subtitle and sends a change event to all registered listeners.void
setSubtitleColor
(Color color) Sets the color for the chart subtitle and sends a change event to all registered listeners.void
setSubtitleFont
(Font font) Sets the font used for the chart subtitle and sends aChartStyleChangeEvent
to all registered listeners.void
setTitleBackgroundColor
(Color color) Sets the background color for the title and sends a change event to all registered listeners.void
setTitleColor
(Color color) Sets the foreground color for the chart title and sends a change event to all registered listeners.void
setTitleFont
(Font font) Sets the font used for the chart title and sends aChartStyleChangeEvent
to all registered listeners.void
setXAxisGridlinesVisible
(boolean visible) Sets the flag that controls whether or not gridlines are drawn for the x-axis and sends aChartStyleChangeEvent
to all registered listeners.void
setYAxisGridlinesVisible
(boolean visible) Sets the flag that controls whether or not gridlines are drawn for the y-axis and sends aChartStyleChangeEvent
to all registered listeners.void
setZAxisGridlinesVisible
(boolean visible) Sets the flag that controls whether or not gridlines are drawn for the z-axis and sends aChartStyleChangeEvent
to all registered listeners.
-
Field Details
-
DEFAULT_TEXT_BACKGROUND_COLOR
The default background color for the title and subtitle, and legend header and footer. -
DEFAULT_TITLE_FONT
The default title font. -
DEFAULT_SUBTITLE_FONT
The default subtitle font. -
DEFAULT_CHARTBOX_COLOR
The default chartbox color. -
DEFAULT_ROW_GRIDLINES_VISIBLE
The default visibility for gridlines perpendicular to the row-axis.- See Also:
-
DEFAULT_COLUMN_GRIDLINES_VISIBLE
The default visibility for gridlines perpendicular to the column-axis.- See Also:
-
DEFAULT_X_GRIDLINES_VISIBLE
The default visibility for gridlines perpendicular to the x-axis.- See Also:
-
DEFAULT_Y_GRIDLINES_VISIBLE
The default visibility for gridlines perpendicular to the y-axis.- See Also:
-
DEFAULT_Z_GRIDLINES_VISIBLE
The default visibility for gridlines perpendicular to the z-axis.- See Also:
-
DEFAULT_GRIDLINE_COLOR
The default gridline color. -
DEFAULT_GRIDLINE_STROKE
The default gridline stroke. -
DEFAULT_SECTION_LABEL_FONT
The default font for pie section labels. -
DEFAULT_SECTION_LABEL_COLOR
The default color for pie section labels. -
DEFAULT_AXIS_LABEL_FONT
The default font for axis labels. -
DEFAULT_AXIS_LABEL_COLOR
The default foreground color for axis labels. -
DEFAULT_AXIS_TICK_LABEL_FONT
The default font for axis tick labels. -
DEFAULT_AXIS_TICK_LABEL_COLOR
The default foreground color for axis tick labels. -
DEFAULT_LEGEND_HEADER_FONT
The default font for legend headers. -
DEFAULT_LEGEND_HEADER_COLOR
The default foreground color for the legend header if there is one. -
DEFAULT_LEGEND_ITEM_SHAPE
The default legend item shape. -
DEFAULT_LEGEND_ITEM_FONT
The default font for legend item text. -
DEFAULT_LEGEND_ITEM_COLOR
The default legend item color. -
DEFAULT_LEGEND_ITEM_BACKGROUND_COLOR
The default legend item background color. -
DEFAULT_LEGEND_FOOTER_FONT
The default font for legend footers. -
DEFAULT_LEGEND_FOOTER_COLOR
The default foreground color for the legend footer if there is one. -
DEFAULT_MARKER_LABEL_FONT
The default font for marker labels. -
DEFAULT_MARKER_LABEL_COLOR
The default foreground color for marker labels. -
DEFAULT_MARKER_LINE_STROKE
The default stroke for marker lines. -
DEFAULT_MARKER_LINE_COLOR
The default color for marker lines. -
DEFAULT_MARKER_FILL_COLOR
The default fill color for markers.
-
-
Constructor Details
-
StandardChartStyle
public StandardChartStyle()Creates a new instance with default attributes. -
StandardChartStyle
A copy constructor that creates a new style that is a copy of an existing style (note that the existing style listeners are not copied).- Parameters:
source
- the source style to copy (null
not permitted).
-
-
Method Details
-
createDefaultFont
Creates a default font with the specifiedstyle
andsize
. The method attempts to use 'Palatino Linotype' ('Palatino' on MacOSX) but if it is not found it falls back to theFont.SERIF
font family.- Parameters:
style
- the style (see java.awt.Font).size
- the size.- Returns:
- The font.
- Since:
- 1.3
-
getBackgroundPainter
Returns the background painter.- Specified by:
getBackgroundPainter
in interfaceChartStyle
- Returns:
- The background painter (never
null
).
-
setBackgroundPainter
Sets the background painter.- Parameters:
painter
- the painter (null
not permitted).
-
getTitleFont
Returns the chart title font. The default value isDEFAULT_TITLE_FONT
.- Specified by:
getTitleFont
in interfaceChartStyle
- Returns:
- The chart title font (never
null
).
-
setTitleFont
Sets the font used for the chart title and sends aChartStyleChangeEvent
to all registered listeners.- Parameters:
font
- the font (null
not permitted).
-
getTitleColor
Returns the title color. The default value isColor.BLACK
.- Specified by:
getTitleColor
in interfaceChartStyle
- Returns:
- The title color (never
null
).
-
setTitleColor
Sets the foreground color for the chart title and sends a change event to all registered listeners.- Parameters:
color
- the color (null
not permitted).
-
getTitleBackgroundColor
Returns the background color for the title. The default value isDEFAULT_TEXT_BACKGROUND_COLOR
.- Specified by:
getTitleBackgroundColor
in interfaceChartStyle
- Returns:
- The background color (never
null
).
-
setTitleBackgroundColor
Sets the background color for the title and sends a change event to all registered listeners.- Parameters:
color
- the color (null
not permitted).
-
getSubtitleFont
Returns the font used for the chart subtitle. The default value isDEFAULT_SUBTITLE_FONT
.- Specified by:
getSubtitleFont
in interfaceChartStyle
- Returns:
- The chart subtitle font (never
null
).
-
setSubtitleFont
Sets the font used for the chart subtitle and sends aChartStyleChangeEvent
to all registered listeners.- Parameters:
font
- the font (null
not permitted).
-
getSubtitleColor
Returns the color for the chart subtitle. The default value isColor.BLACK
.- Specified by:
getSubtitleColor
in interfaceChartStyle
- Returns:
- The color (never
null
).
-
setSubtitleColor
Sets the color for the chart subtitle and sends a change event to all registered listeners.- Parameters:
color
- the color (null
not permitted).
-
getSubtitleBackgroundColor
Returns the background color for the chart subtitle. The default value isDEFAULT_TEXT_BACKGROUND_COLOR
.- Specified by:
getSubtitleBackgroundColor
in interfaceChartStyle
- Returns:
- The background color (never
null
).
-
setSubtitleBackgroundColor
Sets the background color for the chart subtitle and sends a change event to all registered listeners.- Parameters:
color
- the color (null
not permitted).
-
getChartBoxColor
Returns the color used for theChartBox3D
(for those charts that have one). The default value isDEFAULT_CHARTBOX_COLOR
.- Specified by:
getChartBoxColor
in interfaceChartStyle
- Returns:
- The color (never
null
).
-
setChartBoxColor
Sets the color used for the chart box and sends aChartStyleChangeEvent
to all registered listeners.- Parameters:
color
- the color (null
not permitted).
-
getColumnAxisGridlinesVisible
Returns the flag that controls whether or not gridlines are drawn perpendicular to the column axis in category plots.- Specified by:
getColumnAxisGridlinesVisible
in interfaceChartStyle
- Returns:
- A boolean.
-
getRowAxisGridlinesVisible
Returns the flag that controls whether or not gridlines are drawn perpendicular to the row axis in category plots.- Specified by:
getRowAxisGridlinesVisible
in interfaceChartStyle
- Returns:
- A boolean.
-
getXAxisGridlinesVisible
Returns the flag that specifies whether or not gridlines are drawn for the x-axis. The default value isfalse
.- Specified by:
getXAxisGridlinesVisible
in interfaceChartStyle
- Returns:
- A boolean.
-
setXAxisGridlinesVisible
Sets the flag that controls whether or not gridlines are drawn for the x-axis and sends aChartStyleChangeEvent
to all registered listeners.- Parameters:
visible
- the new flag value.
-
getYAxisGridlinesVisible
Returns the flag that specifies whether or not gridlines are drawn for the y-axis. The default value istrue
.- Specified by:
getYAxisGridlinesVisible
in interfaceChartStyle
- Returns:
- A boolean.
-
setYAxisGridlinesVisible
Sets the flag that controls whether or not gridlines are drawn for the y-axis and sends aChartStyleChangeEvent
to all registered listeners.- Parameters:
visible
- the new flag value.
-
getZAxisGridlinesVisible
Returns the flag that specifies whether or not gridlines are drawn for the z-axis. The default value istrue
.- Specified by:
getZAxisGridlinesVisible
in interfaceChartStyle
- Returns:
- A boolean.
-
setZAxisGridlinesVisible
Sets the flag that controls whether or not gridlines are drawn for the z-axis and sends aChartStyleChangeEvent
to all registered listeners.- Parameters:
visible
- the new flag value.
-
getGridlineColor
Returns the color used for the gridlines. The default value isDEFAULT_GRIDLINE_STROKE
.- Specified by:
getGridlineColor
in interfaceChartStyle
- Returns:
- The color used for the gridlines (never
null
).
-
setGridlineColor
Sets the color for the gridlines and sends aChartStyleChangeEvent
to all registered listeners.- Parameters:
color
- the color (null
not permitted).
-
getGridlineStroke
Returns the stroke used to draw the gridlines. The default value isDEFAULT_GRIDLINE_STROKE
.- Specified by:
getGridlineStroke
in interfaceChartStyle
- Returns:
- The stroke (never
null
).
-
setGridlineStroke
Sets the stroke used for gridlines and sends aChartStyleChangeEvent
to all registered listeners.- Parameters:
stroke
- the stroke (null
not permitted).
-
getSectionLabelFont
Returns the font used for pie section labels. The default value isDEFAULT_SECTION_LABEL_FONT
.- Specified by:
getSectionLabelFont
in interfaceChartStyle
- Returns:
- The font used for pie section labels (never
null
).
-
setSectionLabelFont
Sets the font used for the pie section labels and sends aChartStyleChangeEvent
to all registered listeners.- Parameters:
font
- the font (null
not permitted).
-
getSectionLabelColor
Returns the color used to display pie section labels. The default value isDEFAULT_SECTION_LABEL_COLOR
.- Specified by:
getSectionLabelColor
in interfaceChartStyle
- Returns:
- The color (never
null
).
-
setSectionLabelColor
Sets the color used for the pie section labels and sends aChartStyleChangeEvent
to all registered listeners.- Parameters:
color
- the color (null
not permitted).
-
getStandardColors
Returns the standard colors for the style. The default value is initialised by callingColors.getDefaultColors()
.- Specified by:
getStandardColors
in interfaceChartStyle
- Returns:
- The standard colors (never
null
).
-
setStandardColors
Sets the standard colors for the chart and sends aChartStyleChangeEvent
to all registered listeners.- Parameters:
colors
- the colors (null
not permitted).
-
getAxisLabelFont
Returns the font used for the axis label. The default value isDEFAULT_AXIS_LABEL_FONT
.- Specified by:
getAxisLabelFont
in interfaceChartStyle
- Returns:
- The font used for the axis label.
- See Also:
-
setAxisLabelFont
Sets the font used for the axis label and sends aChartStyleChangeEvent
to all registered listeners.- Parameters:
font
- the font (null
not permitted).
-
getAxisLabelColor
Returns the foreground color for the axis label (the main label, not the tick labels). The default value isDEFAULT_AXIS_LABEL_COLOR
.- Specified by:
getAxisLabelColor
in interfaceChartStyle
- Returns:
- The color (never
null
).
-
setAxisLabelColor
Sets the foreground color for the axis label and sends aChartStyleChangeEvent
to all registered listeners.- Parameters:
color
- the color (null
not permitted).
-
getAxisTickLabelFont
Returns the font used for the axis tick labels. The default value isDEFAULT_AXIS_TICK_LABEL_FONT
.- Specified by:
getAxisTickLabelFont
in interfaceChartStyle
- Returns:
- The font (never
null
). - See Also:
-
setAxisTickLabelFont
Sets the font used for the axis tick labels and sends aChartStyleChangeEvent
to all registered listeners.- Parameters:
font
- the font (null
not permitted).
-
getAxisTickLabelColor
Returns the color used to draw the tick labels on the axis. The default value isDEFAULT_AXIS_TICK_LABEL_COLOR
.- Specified by:
getAxisTickLabelColor
in interfaceChartStyle
- Returns:
- The color (never
null
).
-
setAxisTickLabelColor
Sets the foreground color for the axis tick labels and sends aChartStyleChangeEvent
to all registered listeners.- Parameters:
color
- the color (null
not permitted).
-
getLegendHeaderFont
Returns the font used to display the legend header. The default value isDEFAULT_LEGEND_HEADER_FONT
.- Specified by:
getLegendHeaderFont
in interfaceChartStyle
- Returns:
- The font (never
null
).
-
setLegendHeaderFont
Sets the legend header font and sends aChartStyleChangeEvent
to all registered listeners.- Parameters:
font
- the font (null
not permitted).
-
getLegendHeaderColor
Returns the foreground color for the legend header. The default value isDEFAULT_LEGEND_HEADER_COLOR
.- Specified by:
getLegendHeaderColor
in interfaceChartStyle
- Returns:
- The color (never
null
).
-
setLegendHeaderColor
Sets the foreground color for the legend header and sends aChartStyleChangeEvent
to all registered listeners.- Parameters:
color
- the color (null
not permitted).
-
getLegendHeaderBackgroundColor
Returns the background color for the legend header. The default value isDEFAULT_TEXT_BACKGROUND_COLOR
.- Specified by:
getLegendHeaderBackgroundColor
in interfaceChartStyle
- Returns:
- The color (never
null
).
-
setLegendHeaderBackgroundColor
Sets the background color for the legend header and sends aChartStyleChangeEvent
to all registered listeners.- Parameters:
color
- the color (null
not permitted).
-
getLegendItemShape
Returns the standard shape for legend items. The default value isDEFAULT_LEGEND_ITEM_SHAPE
.- Specified by:
getLegendItemShape
in interfaceChartStyle
- Returns:
- The legend shape (never
null
).
-
setLegendItemShape
Sets the default shape for legend items and sends aChartStyleChangeEvent
to all registered listeners.- Parameters:
shape
- the shape (null
not permitted).
-
getLegendItemFont
Returns the font used for legend item text. The default value isDEFAULT_LEGEND_ITEM_FONT
.- Specified by:
getLegendItemFont
in interfaceChartStyle
- Returns:
- The font used for legend item text (never
null
).
-
setLegendItemFont
Sets the legend item font and sends aChartStyleChangeEvent
to all registered listeners.- Parameters:
font
- the font (null
not permitted).
-
getLegendItemColor
Returns the foreground color used for the legend items. The default value isDEFAULT_LEGEND_ITEM_COLOR
.- Specified by:
getLegendItemColor
in interfaceChartStyle
- Returns:
- The color (never
null
).
-
setLegendItemColor
Sets the foreground color used for legend item text and sends aChartStyleChangeEvent
to all registered listeners.- Parameters:
color
- the color (null
not permitted).
-
getLegendItemBackgroundColor
Returns the background color for legend items. The default value isDEFAULT_LEGEND_ITEM_BACKGROUND_COLOR
.- Specified by:
getLegendItemBackgroundColor
in interfaceChartStyle
- Returns:
- The color (never
null
).
-
setLegendItemBackgroundColor
Sets the background color for legend items and sends aChartStyleChangeEvent
to all registered listeners.- Parameters:
color
- the color (null
not permitted).
-
getMarkerLabelFont
Returns the font used to draw marker labels.- Specified by:
getMarkerLabelFont
in interfaceChartStyle
- Returns:
- The font used to draw marker labels (never
null
).
-
setMarkerLabelFont
Sets the marker label font and sends a change event to all registered listeners.- Parameters:
font
- the font (null
not permitted).
-
getMarkerLabelColor
Returns the color for the marker labels.- Specified by:
getMarkerLabelColor
in interfaceChartStyle
- Returns:
- The color for the marker labels (never
null
).
-
setMarkerLabelColor
Sets the color for the marker labels and sends a change event to all registered listeners.- Parameters:
color
- the color (null
not permitted).
-
getMarkerLineStroke
Returns the stroke used to draw marker lines.- Specified by:
getMarkerLineStroke
in interfaceChartStyle
- Returns:
- The stroke used to draw marker lines (never
null
).
-
setMarkerLineStroke
Sets the stroke for the marker lines and sends a change event to all registered listeners.- Parameters:
stroke
- the stroke (null
not permitted).
-
getMarkerLineColor
Returns the color used to draw marker lines.- Specified by:
getMarkerLineColor
in interfaceChartStyle
- Returns:
- The color used to draw marker lines (never
null
).
-
setMarkerLineColor
Sets the marker line color and sends a change event to all registered listeners.- Parameters:
color
- the color (null
not permitted).
-
getMarkerFillColor
Returns the color used to fill the band representing the marker range.- Specified by:
getMarkerFillColor
in interfaceChartStyle
- Returns:
- The fill color (never
null
).
-
setMarkerFillColor
Sets the marker fill color and sends a change event to all registered listeners.- Parameters:
color
- the color (null
not permitted).
-
addChangeListener
Registers a listener to receive notification of changes to the chart. When a style is added to a chart, the chart will register as a listener on the style.- Specified by:
addChangeListener
in interfaceChartStyle
- Parameters:
listener
- the listener.
-
removeChangeListener
Deregisters a listener so that it no longer receives notification of changes to the chart.- Specified by:
removeChangeListener
in interfaceChartStyle
- Parameters:
listener
- the listener.
-
notifyListeners
Notifies all registered listeners that the chart style has been modified.- Parameters:
event
- information about the change event.
-
isNotify
Returns a flag that controls whether or not change events are sent to registered listeners.- Returns:
- A boolean.
- See Also:
-
setNotify
Sets a flag that controls whether or not listeners receiveChartStyleChangeEvent
notifications. This can be useful when updating multiple style attributes, you can call setNotify(false) first, update the styles, then call setNotify(true) at the end.- Parameters:
notify
- a boolean.- See Also:
-
fireChangeEvent
Sends aChartStyleChangeEvent
to all registered listeners. -
clone
Returns a clone of the chart style (note that the change listeners are not cloned).- Specified by:
clone
in interfaceChartStyle
- Overrides:
clone
in classObject
- Returns:
- A clone (never
null
).
-
equals
Tests this instance for equality with an arbitrary object.
-