Class ZoomControl
java.lang.Object
org.vaadin.addons.componentfactory.leaflet.LeafletObject
org.vaadin.addons.componentfactory.leaflet.controls.LeafletControl
org.vaadin.addons.componentfactory.leaflet.controls.ZoomControl
- All Implemented Interfaces:
Serializable,Identifiable,ExecutableFunctions
A basic zoom control with two buttons (zoom in and zoom out). It is put on
the map by default unless you set its zoomControl option to false. Extends
Control.
- Since:
- 2020-03-06
- Version:
- 1.0
- Author:
- Gabor Kokeny Email: kokeny19@gmail.com
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.vaadin.addons.componentfactory.leaflet.controls.LeafletControl
LeafletControl.ControlPosition -
Field Summary
Fields inherited from class org.vaadin.addons.componentfactory.leaflet.controls.LeafletControl
leafletMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the text set on the zoom-in button.Gets the title (tooltip) set on the zoom-in button.Gets the text set on the zoom-out button.Gets the title (tooltip) set on the zoom-out button.voidsetZoomInText(String zoomInText) Sets the text shown on the zoom-in button.voidsetZoomInTitle(String zoomInTitle) Sets the title (tooltip) shown on the zoom-in button.voidsetZoomOutText(String zoomOutText) Sets the text shown on the zoom-out button.voidsetZoomOutTitle(String zoomOutTitle) Sets the title (tooltip) shown on the zoom-out button.Methods inherited from class org.vaadin.addons.componentfactory.leaflet.controls.LeafletControl
addTo, getLeafletType, getPosition, remove, setPositionMethods inherited from class org.vaadin.addons.componentfactory.leaflet.LeafletObject
call, configureObjectMapper, executeJs, getConstructorArgumentNames, getJson, getParent, getUuid, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.vaadin.addons.componentfactory.leaflet.layer.map.functions.ExecutableFunctions
call, executeJs
-
Constructor Details
-
ZoomControl
public ZoomControl()Creates a new zoom control.
-
-
Method Details
-
getZoomInText
Gets the text set on the zoom-in button.- Returns:
- the zoom-in button text
-
setZoomInText
Sets the text shown on the zoom-in button.- Parameters:
zoomInText- the zoom-in button text
-
getZoomInTitle
Gets the title (tooltip) set on the zoom-in button.- Returns:
- the zoom-in button title
-
setZoomInTitle
Sets the title (tooltip) shown on the zoom-in button.- Parameters:
zoomInTitle- the zoom-in button title
-
getZoomOutText
Gets the text set on the zoom-out button.- Returns:
- the zoom-out button text
-
setZoomOutText
Sets the text shown on the zoom-out button.- Parameters:
zoomOutText- the zoom-out button text
-
getZoomOutTitle
Gets the title (tooltip) set on the zoom-out button.- Returns:
- the zoom-out button title
-
setZoomOutTitle
Sets the title (tooltip) shown on the zoom-out button.- Parameters:
zoomOutTitle- the zoom-out button title
-