Class GoogleMapPoly
java.lang.Object
com.vaadin.flow.component.Component
com.flowingcode.vaadin.addons.googlemaps.GoogleMapPoly
- All Implemented Interfaces:
AttachNotifier,DetachNotifier,HasElement,Serializable
- Direct Known Subclasses:
GoogleMapPolygon,GoogleMapPolyline
@Tag("google-map-poly")
@JsModule("@flowingcode/google-map/google-map-poly.js") @JsModule("@flowingcode/google-map/google-map-point.js")
@NpmPackage(value="@flowingcode/google-map",version="3.8.2") @NpmPackage(value="@googlemaps/markerclusterer",version="2.0.8")
public abstract class GoogleMapPoly
extends Component
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPoint(GoogleMapPoint point) doubledoubledoubledoublebooleanisClosed()booleanvoidremovePoint(GoogleMapPoint point) voidsetClosed(boolean b) voidsetFillColor(String string) voidsetFillOpacity(double opacity) voidsetGeodesic(boolean b) voidDeprecated.voidsetIcons(IconSequence... icons) Set icons to the polygon/polyline.voidsetPoints(Iterable<GoogleMapPoint> points) voidsetStrokeColor(String string) voidsetStrokeOpacity(double opacity) voidvoidsetStrokeWeight(double weight) voidsetZIndex(double zindex) Methods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
-
Constructor Details
-
GoogleMapPoly
-
-
Method Details
-
setFillOpacity
public void setFillOpacity(double opacity) -
getFillOpacity
public double getFillOpacity() -
setStrokeOpacity
public void setStrokeOpacity(double opacity) -
getStrokeOpacity
public double getStrokeOpacity() -
setStrokePosition
-
getStrokePosition
-
setStrokeWeight
public void setStrokeWeight(double weight) -
getStrokeWeight
public double getStrokeWeight() -
setZIndex
public void setZIndex(double zindex) -
getZIndex
public double getZIndex() -
setFillColor
-
getFillColor
-
setStrokeColor
-
getStrokeColor
-
setClosed
public void setClosed(boolean b) -
isClosed
public boolean isClosed() -
setGeodesic
public void setGeodesic(boolean b) -
isGeodesic
public boolean isGeodesic() -
setPoints
-
addPoint
-
addPoint
-
removePoint
-
addClickListener
public Registration addClickListener(ComponentEventListener<GoogleMapPoly.GoogleMapPolyClickEvent> listener) -
setIcons
Deprecated.UsesetIcons(IconSequence...)instead. -
setIcons
Set icons to the polygon/polyline.- Parameters:
icons- the icons to set
-
setIcons(IconSequence...)instead.