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 ColorThe default foreground color for axis labels.static final FontThe default font for axis labels.static final ColorThe default foreground color for axis tick labels.static final FontThe default font for axis tick labels.static final ColorThe default chartbox color.static final booleanThe default visibility for gridlines perpendicular to the column-axis.static final ColorThe default gridline color.static final StrokeThe default gridline stroke.static final ColorThe default foreground color for the legend footer if there is one.static final FontThe default font for legend footers.static final ColorThe default foreground color for the legend header if there is one.static final FontThe default font for legend headers.static final ColorThe default legend item background color.static final ColorThe default legend item color.static final FontThe default font for legend item text.static final ShapeThe default legend item shape.static final ColorThe default fill color for markers.static final ColorThe default foreground color for marker labels.static final FontThe default font for marker labels.static final ColorThe default color for marker lines.static final StrokeThe default stroke for marker lines.static final booleanThe default visibility for gridlines perpendicular to the row-axis.static final ColorThe default color for pie section labels.static final FontThe default font for pie section labels.static final FontThe default subtitle font.static final ColorThe default background color for the title and subtitle, and legend header and footer.static final FontThe default title font.static final booleanThe default visibility for gridlines perpendicular to the x-axis.static final booleanThe default visibility for gridlines perpendicular to the y-axis.static final booleanThe 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 TypeMethodDescriptionvoidaddChangeListener(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 FontcreateDefaultFont(int style, int size) Creates a default font with the specifiedstyleandsize.booleanTests this instance for equality with an arbitrary object.protected voidSends aChartStyleChangeEventto 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).booleanReturns 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.booleanReturns 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.booleanReturns the flag that specifies whether or not gridlines are drawn for the x-axis.booleanReturns the flag that specifies whether or not gridlines are drawn for the y-axis.booleanReturns the flag that specifies whether or not gridlines are drawn for the z-axis.booleanisNotify()Returns a flag that controls whether or not change events are sent to registered listeners.voidNotifies all registered listeners that the chart style has been modified.voidremoveChangeListener(ChartStyleChangeListener listener) Deregisters a listener so that it no longer receives notification of changes to the chart.voidsetAxisLabelColor(Color color) Sets the foreground color for the axis label and sends aChartStyleChangeEventto all registered listeners.voidsetAxisLabelFont(Font font) Sets the font used for the axis label and sends aChartStyleChangeEventto all registered listeners.voidsetAxisTickLabelColor(Color color) Sets the foreground color for the axis tick labels and sends aChartStyleChangeEventto all registered listeners.voidsetAxisTickLabelFont(Font font) Sets the font used for the axis tick labels and sends aChartStyleChangeEventto all registered listeners.voidsetBackgroundPainter(RectanglePainter painter) Sets the background painter.voidsetChartBoxColor(Color color) Sets the color used for the chart box and sends aChartStyleChangeEventto all registered listeners.voidsetGridlineColor(Color color) Sets the color for the gridlines and sends aChartStyleChangeEventto all registered listeners.voidsetGridlineStroke(Stroke stroke) Sets the stroke used for gridlines and sends aChartStyleChangeEventto all registered listeners.voidSets the background color for the legend footer and sends aChartStyleChangeEventto all registered listeners.voidsetLegendFooterColor(Color color) Sets the foreground color for the legend footer and sends aChartStyleChangeEventto all registered listeners.voidsetLegendFooterFont(Font font) Sets the legend footer font and sends aChartStyleChangeEventto all registered listeners.voidSets the background color for the legend header and sends aChartStyleChangeEventto all registered listeners.voidsetLegendHeaderColor(Color color) Sets the foreground color for the legend header and sends aChartStyleChangeEventto all registered listeners.voidsetLegendHeaderFont(Font font) Sets the legend header font and sends aChartStyleChangeEventto all registered listeners.voidSets the background color for legend items and sends aChartStyleChangeEventto all registered listeners.voidsetLegendItemColor(Color color) Sets the foreground color used for legend item text and sends aChartStyleChangeEventto all registered listeners.voidsetLegendItemFont(Font font) Sets the legend item font and sends aChartStyleChangeEventto all registered listeners.voidsetLegendItemShape(Shape shape) Sets the default shape for legend items and sends aChartStyleChangeEventto all registered listeners.voidsetMarkerFillColor(Color color) Sets the marker fill color and sends a change event to all registered listeners.voidsetMarkerLabelColor(Color color) Sets the color for the marker labels and sends a change event to all registered listeners.voidsetMarkerLabelFont(Font font) Sets the marker label font and sends a change event to all registered listeners.voidsetMarkerLineColor(Color color) Sets the marker line color and sends a change event to all registered listeners.voidsetMarkerLineStroke(Stroke stroke) Sets the stroke for the marker lines and sends a change event to all registered listeners.voidsetNotify(boolean notify) Sets a flag that controls whether or not listeners receiveChartStyleChangeEventnotifications.voidsetSectionLabelColor(Color color) Sets the color used for the pie section labels and sends aChartStyleChangeEventto all registered listeners.voidsetSectionLabelFont(Font font) Sets the font used for the pie section labels and sends aChartStyleChangeEventto all registered listeners.voidsetStandardColors(Color... colors) Sets the standard colors for the chart and sends aChartStyleChangeEventto all registered listeners.voidsetSubtitleBackgroundColor(Color color) Sets the background color for the chart subtitle and sends a change event to all registered listeners.voidsetSubtitleColor(Color color) Sets the color for the chart subtitle and sends a change event to all registered listeners.voidsetSubtitleFont(Font font) Sets the font used for the chart subtitle and sends aChartStyleChangeEventto all registered listeners.voidsetTitleBackgroundColor(Color color) Sets the background color for the title and sends a change event to all registered listeners.voidsetTitleColor(Color color) Sets the foreground color for the chart title and sends a change event to all registered listeners.voidsetTitleFont(Font font) Sets the font used for the chart title and sends aChartStyleChangeEventto all registered listeners.voidsetXAxisGridlinesVisible(boolean visible) Sets the flag that controls whether or not gridlines are drawn for the x-axis and sends aChartStyleChangeEventto all registered listeners.voidsetYAxisGridlinesVisible(boolean visible) Sets the flag that controls whether or not gridlines are drawn for the y-axis and sends aChartStyleChangeEventto all registered listeners.voidsetZAxisGridlinesVisible(boolean visible) Sets the flag that controls whether or not gridlines are drawn for the z-axis and sends aChartStyleChangeEventto 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 (nullnot permitted).
-
-
Method Details
-
createDefaultFont
Creates a default font with the specifiedstyleandsize. The method attempts to use 'Palatino Linotype' ('Palatino' on MacOSX) but if it is not found it falls back to theFont.SERIFfont 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:
getBackgroundPainterin interfaceChartStyle- Returns:
- The background painter (never
null).
-
setBackgroundPainter
Sets the background painter.- Parameters:
painter- the painter (nullnot permitted).
-
getTitleFont
Returns the chart title font. The default value isDEFAULT_TITLE_FONT.- Specified by:
getTitleFontin interfaceChartStyle- Returns:
- The chart title font (never
null).
-
setTitleFont
Sets the font used for the chart title and sends aChartStyleChangeEventto all registered listeners.- Parameters:
font- the font (nullnot permitted).
-
getTitleColor
Returns the title color. The default value isColor.BLACK.- Specified by:
getTitleColorin 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 (nullnot permitted).
-
getTitleBackgroundColor
Returns the background color for the title. The default value isDEFAULT_TEXT_BACKGROUND_COLOR.- Specified by:
getTitleBackgroundColorin 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 (nullnot permitted).
-
getSubtitleFont
Returns the font used for the chart subtitle. The default value isDEFAULT_SUBTITLE_FONT.- Specified by:
getSubtitleFontin interfaceChartStyle- Returns:
- The chart subtitle font (never
null).
-
setSubtitleFont
Sets the font used for the chart subtitle and sends aChartStyleChangeEventto all registered listeners.- Parameters:
font- the font (nullnot permitted).
-
getSubtitleColor
Returns the color for the chart subtitle. The default value isColor.BLACK.- Specified by:
getSubtitleColorin 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 (nullnot permitted).
-
getSubtitleBackgroundColor
Returns the background color for the chart subtitle. The default value isDEFAULT_TEXT_BACKGROUND_COLOR.- Specified by:
getSubtitleBackgroundColorin 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 (nullnot permitted).
-
getChartBoxColor
Returns the color used for theChartBox3D(for those charts that have one). The default value isDEFAULT_CHARTBOX_COLOR.- Specified by:
getChartBoxColorin interfaceChartStyle- Returns:
- The color (never
null).
-
setChartBoxColor
Sets the color used for the chart box and sends aChartStyleChangeEventto all registered listeners.- Parameters:
color- the color (nullnot permitted).
-
getColumnAxisGridlinesVisible
Returns the flag that controls whether or not gridlines are drawn perpendicular to the column axis in category plots.- Specified by:
getColumnAxisGridlinesVisiblein 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:
getRowAxisGridlinesVisiblein 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:
getXAxisGridlinesVisiblein interfaceChartStyle- Returns:
- A boolean.
-
setXAxisGridlinesVisible
Sets the flag that controls whether or not gridlines are drawn for the x-axis and sends aChartStyleChangeEventto 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:
getYAxisGridlinesVisiblein interfaceChartStyle- Returns:
- A boolean.
-
setYAxisGridlinesVisible
Sets the flag that controls whether or not gridlines are drawn for the y-axis and sends aChartStyleChangeEventto 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:
getZAxisGridlinesVisiblein interfaceChartStyle- Returns:
- A boolean.
-
setZAxisGridlinesVisible
Sets the flag that controls whether or not gridlines are drawn for the z-axis and sends aChartStyleChangeEventto 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:
getGridlineColorin interfaceChartStyle- Returns:
- The color used for the gridlines (never
null).
-
setGridlineColor
Sets the color for the gridlines and sends aChartStyleChangeEventto all registered listeners.- Parameters:
color- the color (nullnot permitted).
-
getGridlineStroke
Returns the stroke used to draw the gridlines. The default value isDEFAULT_GRIDLINE_STROKE.- Specified by:
getGridlineStrokein interfaceChartStyle- Returns:
- The stroke (never
null).
-
setGridlineStroke
Sets the stroke used for gridlines and sends aChartStyleChangeEventto all registered listeners.- Parameters:
stroke- the stroke (nullnot permitted).
-
getSectionLabelFont
Returns the font used for pie section labels. The default value isDEFAULT_SECTION_LABEL_FONT.- Specified by:
getSectionLabelFontin interfaceChartStyle- Returns:
- The font used for pie section labels (never
null).
-
setSectionLabelFont
Sets the font used for the pie section labels and sends aChartStyleChangeEventto all registered listeners.- Parameters:
font- the font (nullnot permitted).
-
getSectionLabelColor
Returns the color used to display pie section labels. The default value isDEFAULT_SECTION_LABEL_COLOR.- Specified by:
getSectionLabelColorin interfaceChartStyle- Returns:
- The color (never
null).
-
setSectionLabelColor
Sets the color used for the pie section labels and sends aChartStyleChangeEventto all registered listeners.- Parameters:
color- the color (nullnot permitted).
-
getStandardColors
Returns the standard colors for the style. The default value is initialised by callingColors.getDefaultColors().- Specified by:
getStandardColorsin interfaceChartStyle- Returns:
- The standard colors (never
null).
-
setStandardColors
Sets the standard colors for the chart and sends aChartStyleChangeEventto all registered listeners.- Parameters:
colors- the colors (nullnot permitted).
-
getAxisLabelFont
Returns the font used for the axis label. The default value isDEFAULT_AXIS_LABEL_FONT.- Specified by:
getAxisLabelFontin interfaceChartStyle- Returns:
- The font used for the axis label.
- See Also:
-
setAxisLabelFont
Sets the font used for the axis label and sends aChartStyleChangeEventto all registered listeners.- Parameters:
font- the font (nullnot 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:
getAxisLabelColorin interfaceChartStyle- Returns:
- The color (never
null).
-
setAxisLabelColor
Sets the foreground color for the axis label and sends aChartStyleChangeEventto all registered listeners.- Parameters:
color- the color (nullnot permitted).
-
getAxisTickLabelFont
Returns the font used for the axis tick labels. The default value isDEFAULT_AXIS_TICK_LABEL_FONT.- Specified by:
getAxisTickLabelFontin interfaceChartStyle- Returns:
- The font (never
null). - See Also:
-
setAxisTickLabelFont
Sets the font used for the axis tick labels and sends aChartStyleChangeEventto all registered listeners.- Parameters:
font- the font (nullnot permitted).
-
getAxisTickLabelColor
Returns the color used to draw the tick labels on the axis. The default value isDEFAULT_AXIS_TICK_LABEL_COLOR.- Specified by:
getAxisTickLabelColorin interfaceChartStyle- Returns:
- The color (never
null).
-
setAxisTickLabelColor
Sets the foreground color for the axis tick labels and sends aChartStyleChangeEventto all registered listeners.- Parameters:
color- the color (nullnot permitted).
-
getLegendHeaderFont
Returns the font used to display the legend header. The default value isDEFAULT_LEGEND_HEADER_FONT.- Specified by:
getLegendHeaderFontin interfaceChartStyle- Returns:
- The font (never
null).
-
setLegendHeaderFont
Sets the legend header font and sends aChartStyleChangeEventto all registered listeners.- Parameters:
font- the font (nullnot permitted).
-
getLegendHeaderColor
Returns the foreground color for the legend header. The default value isDEFAULT_LEGEND_HEADER_COLOR.- Specified by:
getLegendHeaderColorin interfaceChartStyle- Returns:
- The color (never
null).
-
setLegendHeaderColor
Sets the foreground color for the legend header and sends aChartStyleChangeEventto all registered listeners.- Parameters:
color- the color (nullnot permitted).
-
getLegendHeaderBackgroundColor
Returns the background color for the legend header. The default value isDEFAULT_TEXT_BACKGROUND_COLOR.- Specified by:
getLegendHeaderBackgroundColorin interfaceChartStyle- Returns:
- The color (never
null).
-
setLegendHeaderBackgroundColor
Sets the background color for the legend header and sends aChartStyleChangeEventto all registered listeners.- Parameters:
color- the color (nullnot permitted).
-
getLegendItemShape
Returns the standard shape for legend items. The default value isDEFAULT_LEGEND_ITEM_SHAPE.- Specified by:
getLegendItemShapein interfaceChartStyle- Returns:
- The legend shape (never
null).
-
setLegendItemShape
Sets the default shape for legend items and sends aChartStyleChangeEventto all registered listeners.- Parameters:
shape- the shape (nullnot permitted).
-
getLegendItemFont
Returns the font used for legend item text. The default value isDEFAULT_LEGEND_ITEM_FONT.- Specified by:
getLegendItemFontin interfaceChartStyle- Returns:
- The font used for legend item text (never
null).
-
setLegendItemFont
Sets the legend item font and sends aChartStyleChangeEventto all registered listeners.- Parameters:
font- the font (nullnot permitted).
-
getLegendItemColor
Returns the foreground color used for the legend items. The default value isDEFAULT_LEGEND_ITEM_COLOR.- Specified by:
getLegendItemColorin interfaceChartStyle- Returns:
- The color (never
null).
-
setLegendItemColor
Sets the foreground color used for legend item text and sends aChartStyleChangeEventto all registered listeners.- Parameters:
color- the color (nullnot permitted).
-
getLegendItemBackgroundColor
Returns the background color for legend items. The default value isDEFAULT_LEGEND_ITEM_BACKGROUND_COLOR.- Specified by:
getLegendItemBackgroundColorin interfaceChartStyle- Returns:
- The color (never
null).
-
setLegendItemBackgroundColor
Sets the background color for legend items and sends aChartStyleChangeEventto all registered listeners.- Parameters:
color- the color (nullnot permitted).
-
getMarkerLabelFont
Returns the font used to draw marker labels.- Specified by:
getMarkerLabelFontin 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 (nullnot permitted).
-
getMarkerLabelColor
Returns the color for the marker labels.- Specified by:
getMarkerLabelColorin 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 (nullnot permitted).
-
getMarkerLineStroke
Returns the stroke used to draw marker lines.- Specified by:
getMarkerLineStrokein 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 (nullnot permitted).
-
getMarkerLineColor
Returns the color used to draw marker lines.- Specified by:
getMarkerLineColorin 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 (nullnot permitted).
-
getMarkerFillColor
Returns the color used to fill the band representing the marker range.- Specified by:
getMarkerFillColorin 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 (nullnot 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:
addChangeListenerin interfaceChartStyle- Parameters:
listener- the listener.
-
removeChangeListener
Deregisters a listener so that it no longer receives notification of changes to the chart.- Specified by:
removeChangeListenerin 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 receiveChartStyleChangeEventnotifications. 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 aChartStyleChangeEventto all registered listeners. -
clone
Returns a clone of the chart style (note that the change listeners are not cloned).- Specified by:
clonein interfaceChartStyle- Overrides:
clonein classObject- Returns:
- A clone (never
null).
-
equals
Tests this instance for equality with an arbitrary object.
-