Package com.vaadin.componentfactory.maps
Class MapOptions
java.lang.Object
com.vaadin.componentfactory.maps.model.AbstractConfigurationObject
com.vaadin.componentfactory.maps.MapOptions
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MapOptionsget()Returns a ChartOptions instance for the current UI.static MapOptionsget(com.vaadin.flow.component.UI ui) Returns a ChartOptions instance for the given UI.getLang()Returns theLangin use ornullif no lang configuration has been set.getTheme()Returns theThemein use ornullif no theme has been set.voidChanges the language of all charts.voidSets the theme to use.
-
Constructor Details
-
MapOptions
protected MapOptions()
-
-
Method Details
-
setLang
Changes the language of all charts.- Parameters:
lang- the language
-
getLang
Returns theLangin use ornullif no lang configuration has been set.- Returns:
- the
Langin use ornull.
-
getTheme
Returns theThemein use ornullif no theme has been set.- Returns:
- the
Themein use ornull.
-
setTheme
Sets the theme to use. Note that if the view is already drawn, all existingMaps will be redrawn.- Parameters:
theme- the theme
-
get
Returns a ChartOptions instance for the given UI. If a ChartOptions extension has not yet been added, a new one is created and added.- Parameters:
ui- the UI for which the ChartOptions should be returned, notnull- Returns:
- the ChartOptions instance connected to the given UI
-
get
Returns a ChartOptions instance for the current UI. If a ChartOptions extension has not yet been added, a new one is created and added.- Returns:
- a ChartOptions instance connected to the currently active UI
-