com.vaadin.flow.component.map.configuration.geometry.
Class Point
- java.lang.Object
-
- com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
-
- com.vaadin.flow.component.map.configuration.geometry.SimpleGeometry
-
- com.vaadin.flow.component.map.configuration.geometry.Point
-
All Implemented Interfaces:
public class Point extends SimpleGeometry
Geometry that is represented by a single point and coordinate.
See Also:
-
-
Field Summary
-
Fields inherited from class com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description Point(Coordinate coordinates)
Creates a new point geometry located at the specified coordinates.The coordinates must be in the same projection as the
View.getProjection()
andSource.getProjection()
.
-
Method Summary
All Methods Modifier and Type Method Description Coordinate
getCoordinates()
The coordinates where the point is located
String
getType()
The unique type name of this class.
void
setCoordinates(Coordinate coordinates)
Sets the coordinates that locate the point.
-
Methods inherited from class com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
addChild, addPropertyChangeListener, collectChanges, deepMarkAsDirty, getId, markAsDirty, notifyChange, notifyChange, removeChild, removePropertyChangeListener, setId, update
-
-
-
-
Constructor Detail
-
Point
public Point(Coordinate coordinates)
Creates a new point geometry located at the specified coordinates.The coordinates must be in the same projection as the
View.getProjection()
andSource.getProjection()
.Parameters:
coordinates
- the coordinates that locate the point
-
-
Method Detail
-
getType
public String getType()
Description copied from class:
AbstractConfigurationObject
The unique type name of this class. Used by the client-side synchronization mechanism to determine which OpenLayers class to synchronize into.
Specified by:
getType
in classAbstractConfigurationObject
-
getCoordinates
public Coordinate getCoordinates()
The coordinates where the point is located
Returns:
the current coordinates
-
setCoordinates
public void setCoordinates(Coordinate coordinates)
Sets the coordinates that locate the point. The coordinates must be in the same projection as the
View.getProjection()
andSource.getProjection()
.Parameters:
coordinates
- the new coordinates, not null
-
-