Dart Documentationorson_chartsStandardChartStyle

StandardChartStyle class

A standard implementation of the ChartStyle interface. Some predefined chart styles are provided in the ChartStyles class.

Implements

ChartStyle

Static Properties

final Color DEFAULT_AXIS_LABEL_COLOR #

The default foreground color for the main label on an axis.

final Font DEFAULT_AXIS_LABEL_FONT #

The default font for the main label on an axis.

final Color DEFAULT_AXIS_TICK_LABEL_COLOR #

The defautl axis tick label color.

final Font DEFAULT_AXIS_TICK_LABEL_FONT #

The default axis tick label font.

final Color DEFAULT_CHARTBOX_COLOR #

The default chartbox color (the chartbox puts the walls in the background of charts).

final Color DEFAULT_GRIDLINE_COLOR #

The default color for gridlines.

final Stroke DEFAULT_GRIDLINE_STROKE #

The default stroke for gridlines.

The default foreground color for legend footer text.

final Color DEFAULT_LEGEND_HEADER_COLOR #

final Font DEFAULT_LEGEND_HEADER_FONT #

final Color DEFAULT_LEGEND_ITEM_BACKGROUND_COLOR #

final Color DEFAULT_LEGEND_ITEM_COLOR #

final Font DEFAULT_LEGEND_ITEM_FONT #

final Rectangle DEFAULT_LEGEND_ITEM_SHAPE #

final Color DEFAULT_SECTION_LABEL_COLOR #

The default foreground color for section labels on pie charts.

final Font DEFAULT_SECTION_LABEL_FONT #

The default font for section labels on pie charts.

final Font DEFAULT_SUBTITLE_FONT #

The default subtitle font.

final Color DEFAULT_TEXT_BACKGROUND_COLOR #

The default background color for text items (note that it is semi-transparent).

final Color DEFAULT_TEXT_COLOR #

The default foreground color for text items.

final Font DEFAULT_TITLE_FONT #

The default title font.

final bool DEFAULT_X_GRIDLINES_VISIBLE #

The default visibility for x-axis gridlines.

final bool DEFAULT_Y_GRIDLINES_VISIBLE #

The default visibility for y-axis gridlines.

final bool DEFAULT_Z_GRIDLINES_VISIBLE #

The default visibility for z-axis gridlines.

final String FONT_FAMILY #

The default font family.

Constructors

new StandardChartStyle() #

Creates a new default ChartStyle instance.

new StandardChartStyle.fromChartStyle(ChartStyle source) #

Creates a new style that is a copy of an existing style.

Properties

Color get axisLabelColor #

Returns the foreground color for the axis label.

void set axisLabelColor(Color color) #

Sets the foreground color for the axis label and sends a ChartStyleChangeEvent to all registered listeners.

Font get axisLabelFont #

Returns the font for axis labels.

void set axisLabelFont(Font font) #

Sets the font for the axis label and sends a ChartStyleChangeEvent to all registered listeners.

Color get axisTickLabelColor #

Returns the foreground color for the axis tick labels.

void set axisTickLabelColor(Color color) #

Sets the foreground color for the axis tick labels and sends a ChartStyleChangeEvent to all registered listeners.

Font get axisTickLabelFont #

Returns the font for the axis tick labels.

void set axisTickLabelFont(Font font) #

Sets the font for the axis tick labels and sends a ChartStyleChangeEvent to all registered listeners.

RectanglePainter backgroundPainter #

Returns the painter for the background.

docs inherited from ChartStyle

Color chartBoxColor #

Returns the color for the chartbox.

docs inherited from ChartStyle

Color gridlineColor #

Returns the color for the gridlines.

docs inherited from ChartStyle

Stroke gridlineStroke #

Returns the line stroke for the gridlines.

docs inherited from ChartStyle

Color get legendFooterBackgroundColor #

Returns the background color for the legend footer text.

void set legendFooterBackgroundColor(Color color) #

Sets the background color for the legend footer text and sends a ChartStyleChangeEvent to all registered listeners.

Color get legendFooterColor #

Returns for foreground color for the legend footer text.

void set legendFooterColor(Color color) #

Sets the foreground color for the legend footer text and sends a ChartStyleChangeEvent to all registered listeners.

Font get legendFooterFont #

Returns the font for the legend footer.

void set legendFooterFont(Font font) #

Sets the font for the legend footer and sends a ChartStyleChangeEvent to all registered listeners.

Color get legendHeaderBackgroundColor #

Returns the background color for the legend header text.

void set legendHeaderBackgroundColor(Color color) #

Sets the background color for the legend header text and sends a ChartStyleChangeEvent to all registered listeners.

Color get legendHeaderColor #

Returns the foreground color for the legend header text.

void set legendHeaderColor(Color color) #

Sets the foreground color for the legend header text and sends a ChartStyleChangeEvent to all registered listeners.

Font get legendHeaderFont #

Returns the font for the legend header text.

void set legendHeaderFont(Font font) #

Sets the font for the legend header text and sends a ChartStyleChangeEvent to all registered listeners.

Color get legendItemBackgroundColor #

Returns the background color for the legend items.

void set legendItemBackgroundColor(Color color) #

Sets the background color for the legend item text and sends a ChartStyleChangeEvent to all registered listeners.

Color get legendItemColor #

Returns the foreground color for the legend items.

void set legendItemColor(Color color) #

Sets the foreground color for the legend item text and sends a ChartStyleChangeEvent to all registered listeners.

Font get legendItemFont #

Returns the font for the legend items.

void set legendItemFont(Font font) #

Sets the font for the legend items and sends a ChartStyleChangeEvent to all registered listeners.

Rectangle get legendItemShape #

Returns the default shape for the legend items.

void set legendItemShape(Rectangle shape) #

Sets the default shape for the legend items and sends a ChartStyleChangeEvent to all registered listeners.

Color get sectionLabelColor #

Returns the foreground color for the section labels.

void set sectionLabelColor(Color color) #

Sets the foreground color for the section labels and sends a ChartStyleChangeEvent to all registered listeners.

Font sectionLabelFont #

Returns the font used for section labels on pie charts.

docs inherited from ChartStyle

List<Color> get standardColors #

Returns the list of standard colors.

void set standardColors(List<Color> colors) #

Sets the list of standard colors and sends a ChartStyleChangeEvent to all registered listeners.

Color get subtitleBackgroundColor #

Returns the background color for the chart subtitle. The default value is [DEFAULT_TEXT_BACKGROUND_COLOR].

void set subtitleBackgroundColor(Color color) #

Sets the background color for the chart subtitle and sends a ChartStyleChangeEvent to all registered listeners.

Color get subtitleColor #

Returns the foreground color for the chart subtitle. The default value is [DEFAULT_TEXT_COLOR].

void set subtitleColor(Color color) #

Sets the foreground color for the chart subtitle and sends a ChartStyleChangeEvent to all registered listeners.

Font get subtitleFont #

Returns the font for the chart subtitle. The default value is [DEFAULT_SUBTITLE_FONT].

void set subtitleFont(Font font) #

Sets the font for the chart subtitle and sends a ChartStyleChangeEvent to all registered listeners.

Color get titleBackgroundColor #

Returns the background color for the chart title. The default value is [DEFAULT_TEXT_BACKGROUND_COLOR].

void set titleBackgroundColor(Color color) #

Sets the background color for the chart title and sends a ChartStyleChangeEvent to all registered listeners.

Color get titleColor #

Returns the foreground color for the chart title. The default value is [DEFAULT_TEXT_COLOR].

void set titleColor(Color color) #

Sets the foreground color for the chart title and sends a ChartStyleChangeEvent to all registered listeners.

Font get titleFont #

Returns the font for the chart title. The default value is [DEFAULT_TITLE_FONT].

void set titleFont(Font font) #

Sets the title font and sends a ChartStyleChangeEvent to all registered listeners.

bool xAxisGridlinesVisible #

Returns a flag that controls whether or not gridlines are drawn for the x-axis.

docs inherited from ChartStyle

bool yAxisGridlinesVisible #

Returns a flag that controls whether or not gridlines are drawn for the y-axis.

docs inherited from ChartStyle

bool zAxisGridlinesVisible #

Returns a flag that controls whether or not gridlines are drawn for the z-axis.

docs inherited from ChartStyle

Methods

void addStyleChangeListener(ChartStyleChangeListener listener) #

Registers a listener so that it will receive notification of changes to this ChartStyle instance.

docs inherited from ChartStyle

void fireChangeEvent() #

Sends a ChartStyleChangeEvent to all registered listeners.

void removeStyleChangeListener(ChartStyleChangeListener listener) #

Deegisters a listener so that it will no longer receive notification of changes to this ChartStyle instance.

docs inherited from ChartStyle