public class ChartOptions extends AbstractConfigurationObject
Use get()
or get(UI)
to get an
instance for the current or specified UI
.
Modifier | Constructor and Description |
---|---|
protected |
ChartOptions() |
Modifier and Type | Method and Description |
---|---|
static ChartOptions |
get()
Returns a ChartOptions instance for the current UI.
|
static ChartOptions |
get(UI ui)
Returns a ChartOptions instance for the given UI.
|
Lang |
getLang()
Returns the
Lang in use or null if no lang configuration
has been set. |
Theme |
getTheme()
Returns the
Theme in use or null if no theme has been
set. |
void |
setLang(Lang lang)
Changes the language of all charts.
|
void |
setTheme(Theme theme)
Sets the theme to use.
|
public void setLang(Lang lang)
lang
- public Lang getLang()
Lang
in use or null
if no lang configuration
has been set.Lang
in use or null
.public Theme getTheme()
Theme
in use or null
if no theme has been
set.Theme
in use or null
.public void setTheme(Theme theme)
Note that if the view is already drawn, all existing Chart
s will
be redrawn.
theme
- public static ChartOptions get(UI ui)
ui
- the UI for which the ChartOptions should be returned, not
null
public static ChartOptions get()
Copyright © 2021. All rights reserved.