Class PointBasedFeature

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    MarkerFeature

    public abstract class PointBasedFeature
    extends Feature
    Abstract base class for features that are represented by a single point and a single coordinate.

    Technically this is a Feature that uses a Point geometry for representation.

    See Also:
    Serialized Form
    • Constructor Detail

      • PointBasedFeature

        protected PointBasedFeature()
      • PointBasedFeature

        protected PointBasedFeature​(Coordinate coordinates)
    • Method Detail

      • setCoordinates

        public void setCoordinates​(Coordinate coordinates)
        Sets the coordinates that define where the feature is located on the map. The coordinates must be in the same projection as the View.getProjection() and Source.getProjection().
        Parameters:
        coordinates - the new coordinates
      • getGeometry

        public Point getGeometry()
        The Point geometry representing this feature.
        Overrides:
        getGeometry in class Feature
        Returns:
        the current point geometry