Class PointGeometry

java.lang.Object
com.massifmaps.geometry.Geometry
com.massifmaps.geometry.PointGeometry

public class PointGeometry extends Geometry
Point geometry. Geometry is defined by a single map position.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a PointGeometry object from a given map position.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the center point of the geometry.
    Returns the position of the point.
    int
    Returns what kind of geometry this is.

    Without it the only way to tell a MultiPoint from a Point is a downcast, or - from a
    scripting binding - matching on the wrapper's class name.

    Methods inherited from class com.massifmaps.geometry.Geometry

    equals, getBounds, getGeoJSON, hashCode

    Methods inherited from class java.lang.Object

    clone, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PointGeometry

      public PointGeometry(MapPos pos)
      Constructs a PointGeometry object from a given map position.
      Parameters:
      pos - The map position.
  • Method Details

    • getCenterPos

      public MapPos getCenterPos()
      Description copied from class: Geometry
      Returns the center point of the geometry.
      Overrides:
      getCenterPos in class Geometry
      Returns:
      The center point of the geometry.
    • getType

      public int getType()
      Description copied from class: Geometry
      Returns what kind of geometry this is.

      Without it the only way to tell a MultiPoint from a Point is a downcast, or - from a
      scripting binding - matching on the wrapper's class name.
      Overrides:
      getType in class Geometry
      Returns:
      The geometry type.
    • getPos

      public MapPos getPos()
      Returns the position of the point.
      Returns:
      The position of the point.