Class AbstractChartOptions<C extends AbstractChartBuilder<C>,O extends AbstractChartOptions<C,O>>
- Direct Known Subclasses:
ChartOptions.Basic,DataTableChart.DataTableOptions
AbstractChartBuilder.getOptions(),
for example ScatterChart.ScatterOptions or BarLineChart.BarLineOptions. You never instantiate
this class or a concrete subclass of it directly.
Options control chart-wide display settings: title and legend, axis labels and bounds, an optional Z axis
and embedded boxplot overlay, period comparison, and interaction toggles such as drilldown and zoom. Every
method here is declared protected and selectively re-exposed as public by intermediate tier
classes in ChartOptions (ChartOptions.Basic, ChartOptions.XYLabels,
ChartOptions.XYMinMax, ChartOptions.ZAxis, ChartOptions.EmbeddedBoxplot), mirroring
how AbstractChartSeries exposes its own optional methods, plus a few methods each concrete Options
type re-exposes directly rather than through one of those tiers. Not every chart type extends one of these
tiers at all: DataTableChart.DataTableOptions extends this class directly and exposes almost none of
these methods. Consult a concrete Options type's own public methods to see which of these are actually
available on it.
- See Also:
-
Field Summary
Fields inherited from class BacklinkBuilder
METHOD_BACKFields inherited from class ObjectIdentity
classId, idGenerator, instanceId, invocations, m, NONE, parentObjectIdentity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected OgetThis()protected OsetBoxplotAxisLabel(String boxplotAxisLabel) Sets the label for the axis of an embedded box plot overlay (seeAbstractChartSeries.setBoxplotAxis()at the series level).protected OsetBoxplotAxisMax(BigDecimal boxplotAxisMax) Sets the upper bound for an embedded box plot overlay's axis.protected OsetBoxplotAxisMin(BigDecimal boxplotAxisMin) Sets the lower bound for an embedded box plot overlay's axis.protected OsetComparison(Boolean comparison) Enables comparing this chart's data against a prior period.protected OsetComparisonType(ComparisonType comparisonType) Sets how the compared prior period, enabled withsetComparison(Boolean), is chosen.protected OsetDisableDrilldown(Boolean disableDrilldown) Disables drilldown on this chart.protected OsetDisableZoom(Boolean disableZoom) Disables zooming on this chart.protected OsetHideLegend(Boolean hideLegend) Hides the chart's legend.protected OsetHideTooltips(Boolean hideTooltips) Hides the chart's tooltips.protected OsetMarker(BigDecimal xValue, BigDecimal yValue) Adds a reference marker at the given X/Y coordinate.protected OsetMaxDataPoints(BigDecimal maximumNumberOfDataPoints) Limits how many data points this chart renders.protected OsetShowZAxis(Boolean showZAxis) Shows or hides the chart's secondary Z axis.protected OsetSubtitle(String subtitle) Sets the chart's subtitle, shown below the title.protected OSets the chart's title.protected OSets the X axis label.protected OsetXLogarithmic(boolean enable) Renders the X axis on a logarithmic scale.protected OsetXMax(BigDecimal xMaxDecimal) Sets the X axis' upper bound for a chart type whose X axis is a plain numeric scale.protected OSets the X axis' upper bound for a chart type whose X axis is a continuous date/time scale, unlikesetXMax(BigDecimal).protected OsetXMin(BigDecimal xMinDecimal) Sets the X axis' lower bound for a chart type whose X axis is a plain numeric scale.protected OSets the X axis' lower bound for a chart type whose X axis is a continuous date/time scale, unlikesetXMin(BigDecimal).protected OSets the Y axis label.protected OsetYLogarithmic(boolean enable) Renders the Y axis on a logarithmic scale.protected OsetYMax(BigDecimal xMax) Sets the Y axis' upper bound.protected OsetYMin(BigDecimal yMin) Sets the Y axis' lower bound.protected OSets the Z axis label.protected OsetZLogarithmic(boolean enable) Renders the Z axis on a logarithmic scale.protected OsetZMax(BigDecimal zMax) Sets the Z axis' upper bound.protected OsetZMin(BigDecimal zMin) Sets the Z axis' lower bound.Methods inherited from class BacklinkBuilder
back, getParentMethods inherited from class ObjectIdentity
addInvocation, addInvocation, addInvocationInternal, getClassId
-
Constructor Details
-
AbstractChartOptions
-
-
Method Details
-
getThis
-
setTitle
Sets the chart's title. Declaredprotectedhere; re-exposed aspublicviaChartOptions.Basic(and every tier built on top of it).- Parameters:
title- the title to display above the chart- Returns:
- this Options object, for chaining further configuration
-
setSubtitle
Sets the chart's subtitle, shown below the title. Declaredprotectedhere; re-exposed aspublicviaChartOptions.Basic(and every tier built on top of it).- Parameters:
subtitle- the subtitle to display- Returns:
- this Options object, for chaining further configuration
-
setHideLegend
Hides the chart's legend. Declaredprotectedhere; re-exposed aspublicviaChartOptions.Basic(and every tier built on top of it).- Parameters:
hideLegend-trueto hide the legend;falseornullto show it- Returns:
- this Options object, for chaining further configuration
-
setHideTooltips
Hides the chart's tooltips. Declaredprotectedhere; re-exposed aspublicviaChartOptions.Basic(and every tier built on top of it).- Parameters:
hideTooltips-trueto hide tooltips;falseornullto show them- Returns:
- this Options object, for chaining further configuration
-
setXLabel
Sets the X axis label. Declaredprotectedhere; re-exposed aspublicviaChartOptions.XYLabels(and every tier built on top of it).- Parameters:
xLabel- the label to display on the X axis- Returns:
- this Options object, for chaining further configuration
-
setXMin
Sets the X axis' lower bound for a chart type whose X axis is a plain numeric scale. Declaredprotectedhere; re-exposed aspublicviaChartOptions.XYMinMax, for exampleScatterChart.ScatterOptions.- Parameters:
xMinDecimal- the lowest value to show on the X axis- Returns:
- this Options object, for chaining further configuration
- See Also:
-
setXMin
Sets the X axis' lower bound for a chart type whose X axis is a continuous date/time scale, unlikesetXMin(BigDecimal). Not exposed through anyChartOptionstier; a concrete Options type overrides it directly, for exampleDetailedTimeSeriesChart.DetailedTimeSeriesOptionsorTimeSeriesScatterChart.TimeSeriesScatterOptions.- Parameters:
xMinDate- the earliest date/time to show on the X axis- Returns:
- this Options object, for chaining further configuration
- See Also:
-
setXMax
Sets the X axis' upper bound for a chart type whose X axis is a plain numeric scale. Declaredprotectedhere; re-exposed aspublicviaChartOptions.XYMinMax, for exampleScatterChart.ScatterOptions.- Parameters:
xMaxDecimal- the highest value to show on the X axis- Returns:
- this Options object, for chaining further configuration
- See Also:
-
setXMax
Sets the X axis' upper bound for a chart type whose X axis is a continuous date/time scale, unlikesetXMax(BigDecimal). Not exposed through anyChartOptionstier; a concrete Options type overrides it directly, for exampleDetailedTimeSeriesChart.DetailedTimeSeriesOptionsorTimeSeriesScatterChart.TimeSeriesScatterOptions.- Parameters:
xMaxDate- the latest date/time to show on the X axis- Returns:
- this Options object, for chaining further configuration
- See Also:
-
setXLogarithmic
Renders the X axis on a logarithmic scale. Not exposed through anyChartOptionstier; a concrete Options type overrides it directly, for exampleScatterChart.ScatterOptionsorBubbleChart.BubbleOptions. Only meaningful for a chart type whose X axis is itself an aggregated numeric measure.- Parameters:
enable-trueto use a logarithmic X axis;falsefor a linear one- Returns:
- this Options object, for chaining further configuration
- See Also:
-
setYLabel
Sets the Y axis label. Declaredprotectedhere; re-exposed aspublicviaChartOptions.XYLabels(and every tier built on top of it).- Parameters:
yLabel- the label to display on the Y axis- Returns:
- this Options object, for chaining further configuration
-
setYMin
Sets the Y axis' lower bound. Declaredprotectedhere; re-exposed aspublicindependently via bothChartOptions.XYMinMaxandChartOptions.ZAxis, since most chart types have a Y axis worth bounding regardless of which of those two tiers they otherwise build on.- Parameters:
yMin- the lowest value to show on the Y axis- Returns:
- this Options object, for chaining further configuration
- See Also:
-
setYMax
Sets the Y axis' upper bound. Declaredprotectedhere; re-exposed aspublicindependently via bothChartOptions.XYMinMaxandChartOptions.ZAxis, since most chart types have a Y axis worth bounding regardless of which of those two tiers they otherwise build on.- Parameters:
xMax- the highest value to show on the Y axis- Returns:
- this Options object, for chaining further configuration
- See Also:
-
setYLogarithmic
Renders the Y axis on a logarithmic scale. Not exposed through anyChartOptionstier; a concrete Options type overrides it directly, for exampleScatterChart.ScatterOptionsorBarLineChart.BarLineOptions.- Parameters:
enable-trueto use a logarithmic Y axis;falsefor a linear one- Returns:
- this Options object, for chaining further configuration
- See Also:
-
setShowZAxis
Shows or hides the chart's secondary Z axis. Declaredprotectedhere; re-exposed aspublicviaChartOptions.ZAxis(andChartOptions.EmbeddedBoxplot, which is built on top of it).- Parameters:
showZAxis-trueto show the Z axis;falseornullto hide it- Returns:
- this Options object, for chaining further configuration
-
setZLabel
Sets the Z axis label. Declaredprotectedhere; re-exposed aspublicviaChartOptions.ZAxis(andChartOptions.EmbeddedBoxplot, which is built on top of it).- Parameters:
zLabel- the label to display on the Z axis- Returns:
- this Options object, for chaining further configuration
-
setZMin
Sets the Z axis' lower bound. Declaredprotectedhere; re-exposed aspublicviaChartOptions.ZAxis(andChartOptions.EmbeddedBoxplot, which is built on top of it).- Parameters:
zMin- the lowest value to show on the Z axis- Returns:
- this Options object, for chaining further configuration
- See Also:
-
setZMax
Sets the Z axis' upper bound. Declaredprotectedhere; re-exposed aspublicviaChartOptions.ZAxis(andChartOptions.EmbeddedBoxplot, which is built on top of it).- Parameters:
zMax- the highest value to show on the Z axis- Returns:
- this Options object, for chaining further configuration
- See Also:
-
setZLogarithmic
Renders the Z axis on a logarithmic scale. Not exposed through anyChartOptionstier; a concrete Options type overrides it directly, for exampleBarLineChart.BarLineOptionsorTimeSeriesChart.TimeSeriesOptions.- Parameters:
enable-trueto use a logarithmic Z axis;falsefor a linear one- Returns:
- this Options object, for chaining further configuration
-
setComparison
Enables comparing this chart's data against a prior period. Declaredprotectedhere; re-exposed aspublicviaChartOptions.ZAxis(andChartOptions.EmbeddedBoxplot, which is built on top of it).- Parameters:
comparison-trueto enable period comparison;falseornullto disable it- Returns:
- this Options object, for chaining further configuration
- See Also:
-
setComparisonType
Sets how the compared prior period, enabled withsetComparison(Boolean), is chosen. Not exposed through anyChartOptionstier; a concrete Options type overrides it directly, for exampleBarLineChart.BarLineOptionsorDetailedTimeSeriesChart.DetailedTimeSeriesOptions.- Parameters:
comparisonType- the kind of prior period to compare against- Returns:
- this Options object, for chaining further configuration
- See Also:
-
setBoxplotAxisLabel
Sets the label for the axis of an embedded box plot overlay (seeAbstractChartSeries.setBoxplotAxis()at the series level). Declaredprotectedhere; re-exposed aspublicviaChartOptions.EmbeddedBoxplot, for exampleBarLineChart.BarLineOptionsorTimeSeriesChart.TimeSeriesOptions.- Parameters:
boxplotAxisLabel- the label to display for the embedded boxplot axis- Returns:
- this Options object, for chaining further configuration
-
setBoxplotAxisMin
Sets the lower bound for an embedded box plot overlay's axis. Declaredprotectedhere; re-exposed aspublicviaChartOptions.EmbeddedBoxplot, for exampleBarLineChart.BarLineOptionsorTimeSeriesChart.TimeSeriesOptions.- Parameters:
boxplotAxisMin- the lowest value to show on the embedded boxplot axis- Returns:
- this Options object, for chaining further configuration
- See Also:
-
setBoxplotAxisMax
Sets the upper bound for an embedded box plot overlay's axis. Declaredprotectedhere; re-exposed aspublicviaChartOptions.EmbeddedBoxplot, for exampleBarLineChart.BarLineOptionsorTimeSeriesChart.TimeSeriesOptions.- Parameters:
boxplotAxisMax- the highest value to show on the embedded boxplot axis- Returns:
- this Options object, for chaining further configuration
- See Also:
-
setDisableDrilldown
Disables drilldown on this chart. Not exposed through anyChartOptionstier; almost every concrete Options type overrides it directly, since drilldown applies broadly across chart types.- Parameters:
disableDrilldown-trueto disable drilldown;falseornullto allow it- Returns:
- this Options object, for chaining further configuration
-
setDisableZoom
Disables zooming on this chart. Not exposed through anyChartOptionstier; most concrete Options types that support zoom override it directly.- Parameters:
disableZoom-trueto disable zoom;falseornullto allow it- Returns:
- this Options object, for chaining further configuration
-
setMaxDataPoints
Limits how many data points this chart renders. Not exposed through anyChartOptionstier; a concrete Options type overrides it directly, for exampleBarLineChart.BarLineOptions,PieChart.PieOptions, orBoxplotChart.BoxplotOptions.- Parameters:
maximumNumberOfDataPoints- the maximum number of data points to render- Returns:
- this Options object, for chaining further configuration
-
setMarker
Adds a reference marker at the given X/Y coordinate. Not exposed through anyChartOptionstier; a concrete Options type overrides it directly, for exampleScatterChart.ScatterOptions,BubbleChart.BubbleOptions, orTimeSeriesScatterChart.TimeSeriesScatterOptions. Only meaningful for a chart type whose X and Y axes are both aggregated numeric measures.- Parameters:
xValue- the marker's X coordinateyValue- the marker's Y coordinate- Returns:
- this Options object, for chaining further configuration
-