Class GeometryFeature

  • All Implemented Interfaces:
    java.lang.Cloneable, GeoObject

    public class GeometryFeature
    extends AbstractFeature
    Defines a geometry feature to be used in editable geometry sets.
    • Constructor Detail

      • GeometryFeature

        public GeometryFeature()
    • Method Detail

      • setSpatialAttribute

        public void setSpatialAttribute​(java.lang.Object spatialAttr)
        Sets the spatial attribute object
        Overrides:
        setSpatialAttribute in class AbstractFeature
        Parameters:
        spatialAttr -
      • getMBR

        public java.awt.geom.Rectangle2D getMBR()
        Returns the minimum bounding rectangle of the spatial attribute.
        Specified by:
        getMBR in interface GeoObject
        Specified by:
        getMBR in class AbstractFeature
        Returns:
      • getSpatialDimension

        public int getSpatialDimension()
        Returns the feature spatial dimension.
        Specified by:
        getSpatialDimension in class AbstractFeature
        Returns:
        -1 if geometry is null.
      • getSpatialJavaPoints

        public java.awt.geom.Point2D[] getSpatialJavaPoints()
        Returns an array of java points representing the vertexes location of the spatial object.
        Specified by:
        getSpatialJavaPoints in class AbstractFeature
        Returns:
      • getDrawable

        public Drawable getDrawable​(java.awt.geom.AffineTransform viewportTransform)
        Description copied from interface: GeoObject
        This method returns a drawable Java2D shape or point that can be directly rendered onto a device. If a non-null viewportTransform is supplied, then it is applied and result returned.
        Returns:
        a Drawable instance that references either a Shape or a Point2D
      • isSubElementOf

        public boolean isSubElementOf​(GeoObject obj)
        Description copied from interface: GeoObject
        Returns true if this GeoObject is a sub element of the provided GeoObject
        Returns:
      • substract

        public java.util.List<GeoObject> substract​(java.util.List<? extends GeoObject> obj)
        Description copied from interface: GeoObject
        Returns a set of GeoObjects that represent the substraction of the provided GeoObjects from this GeoObject
        Returns: