Package com.massifmaps.vectorelements
Class Point
java.lang.Object
com.massifmaps.vectorelements.VectorElement
com.massifmaps.vectorelements.Point
A geometric point that can be displayed on the map.
-
Constructor Summary
ConstructorsConstructorDescriptionPoint(MapPos pos, PointStyle style) Constructs a Point object from a map position and a style.Point(PointGeometry geometry, PointStyle style) Constructs a Point object from a geometry object and a style. -
Method Summary
Modifier and TypeMethodDescriptionReturns the geometry object that defines the location of this vector element.getPos()Returns the location of this point.getStyle()Returns the style of this point.voidsetGeometry(PointGeometry geometry) Sets the location for this point.voidSets the location of this point.voidsetStyle(PointStyle style) Sets a style for this point.Methods inherited from class com.massifmaps.vectorelements.VectorElement
containsMetaDataKey, equals, getBounds, getId, getMetaData, getMetaDataElement, hashCode, isVisible, notifyElementChanged, setId, setMetaData, setMetaDataElement, setVisible
-
Constructor Details
-
Point
Constructs a Point object from a geometry object and a style.- Parameters:
geometry- The geometry object that defines the location of this point.style- The style that defines what this point looks like.
-
Point
Constructs a Point object from a map position and a style.- Parameters:
pos- The map position that defines the location of this point.style- The style that defines what this point looks like.
-
-
Method Details
-
getGeometry
Description copied from class:VectorElementReturns the geometry object that defines the location of this vector element.- Overrides:
getGeometryin classVectorElement- Returns:
- The geometry object of this vector element.
-
setGeometry
Sets the location for this point.- Parameters:
geometry- The new geometry object that defines the location of this point.
-
getPos
Returns the location of this point.- Returns:
- The map position that defines the location of this point.
-
setPos
Sets the location of this point.- Parameters:
pos- The new map position that defines the location of this point.
-
getStyle
Returns the style of this point.- Returns:
- The style that defines what this point looks like.
-
setStyle
Sets a style for this point.- Parameters:
style- The new style that defines what this point looks like.
-