public class Configuration extends AbstractConfigurationObject implements ChartConfiguration
Constructor and Description |
---|
Configuration() |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ConfigurationChangeListener listener)
Sets the listener to be notified of e.g.
|
void |
addColorAxis(ColorAxis axis)
Adds a color-axis to the configuration
|
void |
addPane(Pane pane)
Adds a pane.
|
void |
addPlotOptions(AbstractPlotOptions plotOptions)
Adds plot options
|
void |
addSeries(Series series)
Adds a single series to the list of series in this configuration.
|
void |
addxAxis(XAxis axis)
Adds an X-axis to the configuration
|
void |
addyAxis(YAxis axis)
Adds a Y-axis.
|
void |
addzAxis(ZAxis axis)
Adds a Z-axis.
|
void |
disableCredits()
Disables the credits by setting a Credits object with the enabled
property set to false.
|
void |
fireAxesRescaled(Axis axis,
Number minimum,
Number maximum,
boolean redraw,
boolean animate)
Fires axis rescaled event.
|
Accessibility |
getAccessibility() |
ChartModel |
getChart() |
ColorAxis |
getColorAxis()
Returns the color axis.
|
ColorAxis |
getColorAxis(int index) |
Credits |
getCredits() |
Drilldown |
getDrilldown()
Configuration options for drill down, the concept of inspecting
increasingly high resolution data through clicking on chart items like
columns or pie slices.
|
Exporting |
getExporting() |
HTMLLabels |
getLabels() |
Legend |
getLegend() |
Loading |
getLoading() |
Navigation |
getNavigation() |
Navigator |
getNavigator() |
NoData |
getNoData() |
int |
getNumberOfColorAxes() |
int |
getNumberOfxAxes() |
int |
getNumberOfyAxes() |
int |
getNumberOfzAxes() |
Pane |
getPane() |
Collection<AbstractPlotOptions> |
getPlotOptions()
Returns all plot options used by this configuration.
|
AbstractPlotOptions |
getPlotOptions(ChartType type)
Returns the plot options for a specific chart type used by this
configuration.
|
RangeSelector |
getRangeSelector() |
Scrollbar |
getScrollbar() |
List<Series> |
getSeries() |
Subtitle |
getSubTitle() |
Title |
getTitle() |
Tooltip |
getTooltip() |
XAxis |
getxAxis()
Returns the X-axis or category axis.
|
XAxis |
getxAxis(int index) |
AxisList<YAxis> |
getyAxes() |
YAxis |
getyAxis()
Returns the Y-axis or value axis.
|
YAxis |
getyAxis(int index) |
AxisList<ZAxis> |
getzAxes() |
ZAxis |
getzAxis()
Returns the Z-axis.
|
ZAxis |
getzAxis(int index) |
Boolean |
isExporting() |
void |
removeChangeListener(ConfigurationChangeListener listener)
Removes a change listener.
|
void |
removeColorAxes()
Removes all defined color-axes
|
void |
removexAxes()
Removes all defined X-axes
|
void |
removeyAxes()
Removes all defined Y-axes
|
void |
removezAxes()
Removes all defined Z-axes
|
void |
resetZoom()
Reset zoom level by setting axes extremes to null
|
void |
resetZoom(boolean redraw,
boolean animate)
Reset zoom level by setting axes extremes to null
|
void |
reverseListSeries()
Reverses the ListSeries (transposes it such that categories would be
series names and vice versa) to help stacking
throws
IllegalStateException if series are not ListSeries type |
void |
setAccessibility(Accessibility accessibility)
Sets options for configuring accessibility for the chart.
|
void |
setChart(ChartModel chart)
Sets options regarding the chart and plot areas as well as general chart
options.
|
void |
setCredits(Credits credits)
Sets/changes the credits label that is added in the lower right corner of
the chart.
|
void |
setExporting(Boolean exporting)
Sets whether to enable exporting
|
void |
setExporting(Exporting exporting)
Sets the exporting module settings.
|
void |
setLabels(HTMLLabels labels)
Sets HTML labels that can be positioned anywhere in the chart area.
|
void |
setLegend(Legend legend)
Sets the legend.
|
void |
setLoading(Loading loading)
Set loading options control the appearance of the loading screen that
covers the plot area on chart operations.
|
void |
setNavigation(Navigation navigation)
Set options for buttons and menus appearing in the exporting module.
|
void |
setNavigator(Navigator navigator)
Set configuration for the navigator
|
void |
setNoData(NoData noData)
Set options for displaying a message when no data is available.
|
void |
setPlotOptions(AbstractPlotOptions... plotOptions)
Sets component-wide default plot options.
|
void |
setRangeSelector(RangeSelector rangeSelector)
Set settings for range selector.
|
void |
setScrollbar(Scrollbar scrollbar)
Set configuration for the scrollbar.
|
void |
setSeries(List<Series> series)
Sets the actual series to append to the chart.
|
void |
setSeries(Series... series) |
void |
setSubTitle(String text)
Sets the subtitle to the given text
|
void |
setSubTitle(Subtitle subTitle)
Sets the chart's subtitle
|
void |
setTitle(String text)
Sets the new chart's main title to the given string
|
void |
setTitle(Title title)
The main title of the chart.
|
void |
setTooltip(Tooltip tooltip)
Sets the options for the tooltip that appears when the user hovers over a
series or point.
|
public Accessibility getAccessibility()
setAccessibility(Accessibility)
public void setAccessibility(Accessibility accessibility)
accessibility
- public ChartModel getChart()
setChart(ChartModel)
public void setChart(ChartModel chart)
chart
- public List<Series> getSeries()
setSeries(List)
public void addSeries(Series series)
series
- public void setSeries(List<Series> series)
Chart.drawChart(boolean)
needs to be called with
true
as parameter so the configuration object is resent to
the client.series
- public void setSeries(Series... series)
series
- setSeries(List)
public Drilldown getDrilldown()
public Title getTitle()
setTitle(Title)
public void setTitle(Title title)
title
- public void setTitle(String text)
text
- Text of titlepublic Subtitle getSubTitle()
public void setSubTitle(String text)
text
- Text of subtitlepublic void setSubTitle(Subtitle subTitle)
subTitle
- public XAxis getxAxis()
public int getNumberOfxAxes()
public XAxis getxAxis(int index)
public void removexAxes()
public void addxAxis(XAxis axis)
axis
- The X-Axis to add.getxAxis()
public YAxis getyAxis()
getyAxes()
public int getNumberOfyAxes()
public YAxis getyAxis(int index)
public void removeyAxes()
public void addyAxis(YAxis axis)
axis
- The Y-axis to add.getyAxes()
,
getyAxis()
public AxisList<YAxis> getyAxes()
public ZAxis getzAxis()
getzAxes()
public int getNumberOfzAxes()
public ZAxis getzAxis(int index)
public void removezAxes()
public void addzAxis(ZAxis axis)
axis
- The Z-axis to add.getzAxes()
,
getzAxis()
public AxisList<ZAxis> getzAxes()
public Tooltip getTooltip()
setTooltip(Tooltip)
public void setTooltip(Tooltip tooltip)
tooltip
- public Credits getCredits()
setCredits(Credits)
public void setCredits(Credits credits)
credits
- public void disableCredits()
public Legend getLegend()
setLegend(Legend)
public void setLegend(Legend legend)
legend
- public Collection<AbstractPlotOptions> getPlotOptions()
setPlotOptions(AbstractPlotOptions...)
public AbstractPlotOptions getPlotOptions(ChartType type)
Returns null if no plot options was found for the type
type
- setPlotOptions(AbstractPlotOptions...)
public void setPlotOptions(AbstractPlotOptions... plotOptions)
If the component contains several chart types, this method can be called with several plot option types. Subsequent calls with the same plot type will replace previous options for that specific chart type i.e only the latest options for each chart type is honored.
PlotOptionsSeries
is a special plot options type that can be used
to define rules for all chart types.
plotOptions
- AbstractPlotOptions
public void addPlotOptions(AbstractPlotOptions plotOptions)
plotOptions
- setPlotOptions(AbstractPlotOptions...)
public HTMLLabels getLabels()
setLabels(HTMLLabels)
public void setLabels(HTMLLabels labels)
labels
- public void setExporting(Boolean exporting)
exporting
- Exporting
,
setExporting(Exporting)
public void setExporting(Exporting exporting)
exporting
- Exporting
public Exporting getExporting()
setExporting(Exporting)
public Boolean isExporting()
setExporting(Boolean)
public Pane getPane()
addPane(Pane)
public void addPane(Pane pane)
pane
- public void setRangeSelector(RangeSelector rangeSelector)
This is only valid if the chart is configured to use timeline. See
Chart.setTimeline(Boolean)
}
rangeSelector
- RangeSelector
public RangeSelector getRangeSelector()
public Scrollbar getScrollbar()
setScrollbar(Scrollbar)
public void setScrollbar(Scrollbar scrollbar)
scrollbar
- public NoData getNoData()
setNoData(NoData)
public void setNoData(NoData noData)
Lang.setNoData(String)
noData
- public Navigation getNavigation()
setNavigation(Navigation)
public void setNavigation(Navigation navigation)
navigation
- public Loading getLoading()
setLoading(Loading)
public void setLoading(Loading loading)
loading
- public Navigator getNavigator()
setNavigator(Navigator)
public void setNavigator(Navigator navigator)
navigator
- public void reverseListSeries()
IllegalStateException
if series are not ListSeries typepublic void fireAxesRescaled(Axis axis, Number minimum, Number maximum, boolean redraw, boolean animate)
fireAxesRescaled
in interface ChartConfiguration
axis
- Axis that is the source of the event.minimum
- New minimum.maximum
- New maximum.redraw
- Whether or not to redraw.animate
- Whether or not to animate.public void resetZoom()
public void resetZoom(boolean redraw, boolean animate)
redraw
- Whether or not to redraw.animate
- Whether or not to animate.public void addChangeListener(ConfigurationChangeListener listener)
This method is used internally by the library. Usage by the end user will cause unexpected behavior.
listener
- Listener to add.public void removeChangeListener(ConfigurationChangeListener listener)
listener
- Listener to remove.public ColorAxis getColorAxis()
public int getNumberOfColorAxes()
public ColorAxis getColorAxis(int index)
public void removeColorAxes()
public void addColorAxis(ColorAxis axis)
axis
- The color Axis to add.getColorAxis()
Copyright © 2025. All rights reserved.