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(com.vaadin.flow.component.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)
Charts will
be redrawn.theme - public static ChartOptions get(com.vaadin.flow.component.UI ui)
ui - the UI for which the ChartOptions should be returned, not
nullpublic static ChartOptions get()
Copyright © 2024. All rights reserved.