Class Point


public class Point extends VectorElement
A geometric point that can be displayed on the map.
  • Constructor Details

    • Point

      public Point(PointGeometry geometry, PointStyle style)
      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

      public Point(MapPos pos, PointStyle style)
      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

      public PointGeometry getGeometry()
      Description copied from class: VectorElement
      Returns the geometry object that defines the location of this vector element.
      Overrides:
      getGeometry in class VectorElement
      Returns:
      The geometry object of this vector element.
    • setGeometry

      public void setGeometry(PointGeometry geometry)
      Sets the location for this point.
      Parameters:
      geometry - The new geometry object that defines the location of this point.
    • getPos

      public MapPos getPos()
      Returns the location of this point.
      Returns:
      The map position that defines the location of this point.
    • setPos

      public void setPos(MapPos pos)
      Sets the location of this point.
      Parameters:
      pos - The new map position that defines the location of this point.
    • getStyle

      public PointStyle getStyle()
      Returns the style of this point.
      Returns:
      The style that defines what this point looks like.
    • setStyle

      public void setStyle(PointStyle style)
      Sets a style for this point.
      Parameters:
      style - The new style that defines what this point looks like.