Class NFEGeoObject

    • Constructor Summary

      Constructors 
      Constructor Description
      NFEGeoObject​(java.lang.Object key, JGeometry geom, Layer layer)
      Allocates a new instance of a subclass implementation
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      Drawable getDrawable​(java.awt.geom.AffineTransform viewportTransform)
      This method returns a drawable Java2D shape or point that can be directly rendered onto a device.
      JGeometry getGeometry()
      Gets the GeoObject's geometry
      java.lang.Object getKey()
      Gets the key of the selected object.
      Layer getLayer()
      Gets the associated layer for this object.
      java.awt.geom.Rectangle2D getMBR()
      Gets the minimum bounding rectangle of this geo-object.
      boolean isSubElementOf​(GeoObject obj)
      Returns true if this GeoObject is a sub element of the provided GeoObject
      abstract void refreshGeometry()
      Updates the geoobject's geometry.
      void setGeometry​(JGeometry geom)
      Sets the GeoObject's geometry.
      java.lang.Object setKey​(java.lang.Object key)
      Sets a new key on the object.
      void setLayer​(Layer layer)
      Sets the layer to be associated with this object.
      java.util.List<GeoObject> substract​(java.util.List<? extends GeoObject> objs)
      Returns a set of GeoObjects that represent the substraction of the provided GeoObjects from this GeoObject
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NFEGeoObject

        public NFEGeoObject​(java.lang.Object key,
                            JGeometry geom,
                            Layer layer)
        Allocates a new instance of a subclass implementation
        Parameters:
        key - the value that uniquely identifies to the GeoObject among other GeoObjects in the same layer
        geom - the GeoObject's geometry
        layer - the layer where the GeoObject is contained
    • Method Detail

      • getKey

        public java.lang.Object getKey()
        Description copied from interface: GeoObject
        Gets the key of the selected object.
        Specified by:
        getKey in interface GeoObject
        Returns:
        the key
      • setKey

        public java.lang.Object setKey​(java.lang.Object key)
        Description copied from interface: GeoObject
        Sets a new key on the object.
        Specified by:
        setKey in interface GeoObject
        Parameters:
        key - the new key to be set.
        Returns:
        previously set key
      • getLayer

        public Layer getLayer()
        Description copied from interface: GeoObject
        Gets the associated layer for this object.
        Specified by:
        getLayer in interface GeoObject
        Returns:
        typically an Layer instance that owns this object.
      • setLayer

        public void setLayer​(Layer layer)
        Description copied from interface: GeoObject
        Sets the layer to be associated with this object.
        Specified by:
        setLayer in interface GeoObject
        Parameters:
        layer - the Layer instance to be associated.
      • 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.
        Specified by:
        getDrawable in interface GeoObject
        Returns:
        a Drawable instance that references either a Shape or a Point2D
      • getMBR

        public java.awt.geom.Rectangle2D getMBR()
        Description copied from interface: GeoObject
        Gets the minimum bounding rectangle of this geo-object. The rectangle is in the same coordinate system as the object value.
        Specified by:
        getMBR in interface GeoObject
      • isSubElementOf

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

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

        public void setGeometry​(JGeometry geom)
        Sets the GeoObject's geometry. Null values are not allowed
        Parameters:
        geom - a geometry object
      • getGeometry

        public JGeometry getGeometry()
        Gets the GeoObject's geometry
        Returns:
        a geometry object
      • refreshGeometry

        public abstract void refreshGeometry()
        Updates the geoobject's geometry. Do not call this method directly if the geometry is spatial-indexed