Class TLcdNVG20Rectangle

All Implemented Interfaces:
ILcdDataObject, ILcdNVGNode, ILcdBounded, ILcdEditableSurface, ILcdShape, ILcdSurface, ILcdCache, ILcdCloneable, ILcdDeepCloneable, ILcdInvalidateable, ILcdOrientationSettable, ILcdOriented, Serializable, Cloneable

Implementation of ILcdEditableSurface that represents an NVG 2.0 Rectangle.
Since:
2015.0
See Also:
  • Field Details

    • X_PROPERTY

      public static final TLcdDataProperty X_PROPERTY
      Data property that maps to the cx attribute. The possible values for this property are instances of double.
    • Y_PROPERTY

      public static final TLcdDataProperty Y_PROPERTY
      Data property that maps to the cy attribute. The possible values for this property are instances of double.
    • ROT_ANGLE_PROPERTY

      public static final TLcdDataProperty ROT_ANGLE_PROPERTY
      Data property that maps to the rotation attribute. The possible values for this property are instances of double.
    • A_PROPERTY

      public static final TLcdDataProperty A_PROPERTY
      Data property that maps to the rx attribute. The possible values for this property are instances of double.
    • B_PROPERTY

      public static final TLcdDataProperty B_PROPERTY
      Data property that maps to the ry attribute. The possible values for this property are instances of double.
    • MAXIMUM_Z_PROPERTY

      public static final TLcdDataProperty MAXIMUM_Z_PROPERTY
      Data property that maps to the maxaltitude attribute. The possible values for this property are instances of double.
    • MINIMUM_Z_PROPERTY

      public static final TLcdDataProperty MINIMUM_Z_PROPERTY
      Data property that maps to the minaltitude attribute. The possible values for this property are instances of double.
    • EXCLUDE_PROPERTY

      public static final TLcdDataProperty EXCLUDE_PROPERTY
      Data property that maps to the exclude element. The possible values for this property are instances of TLcdNVG20Exclusion.
    • MODIFIERS_PROPERTY

      public static final TLcdDataProperty MODIFIERS_PROPERTY
      Data property that maps to the modifiers attribute. The possible values for this property are instances of TLcdNVGModifiers.
    • SYMBOL_PROPERTY

      public static final TLcdDataProperty SYMBOL_PROPERTY
      Data property that maps to the symbol attribute. The possible values for this property are instances of TLcdNVGSymbol.
    • HREF_PROPERTY

      public static final TLcdDataProperty HREF_PROPERTY
      Data property that maps to the href attribute. The possible values for this property are instances of URI.
    • LABEL_PROPERTY

      public static final TLcdDataProperty LABEL_PROPERTY
      Data property that maps to the label attribute. The possible values for this property are instances of String.
    • STYLE_PROPERTY

      public static final TLcdDataProperty STYLE_PROPERTY
      Data property that maps to the style attribute. The possible values for this property are instances of TLcdNVGStyle.
    • URI_PROPERTY

      public static final TLcdDataProperty URI_PROPERTY
      Data property that maps to the uri attribute. The possible values for this property are instances of URI.
    • METADATA_PROPERTY

      public static final TLcdDataProperty METADATA_PROPERTY
      Data property that maps to the metadata element. The possible values for this property are instances of TLcdNVG20Extension.
    • EXTENDED_DATA_PROPERTY

      public static final TLcdDataProperty EXTENDED_DATA_PROPERTY
      Data property that maps to the ExtendedData element. The possible values for this property are instances of TLcdNVG20ExtendedData.
    • TEXT_INFO_PROPERTY

      public static final TLcdDataProperty TEXT_INFO_PROPERTY
      Data property that maps to the textInfo element. The possible values for this property are instances of String.
    • TIME_STAMP_PROPERTY

      public static final TLcdDataProperty TIME_STAMP_PROPERTY
      Data property that maps to the TimeStamp element. The possible values for this property are instances of XMLGregorianCalendar.
    • TIME_SPAN_PROPERTY

      public static final TLcdDataProperty TIME_SPAN_PROPERTY
      Data property that maps to the TimeSpan element. The possible values for this property are instances of TimeSpan.
    • EXTENSION_PROPERTY

      public static final TLcdDataProperty EXTENSION_PROPERTY
      Data property that maps to the extension element. The possible values for this property are instances of TLcdNVG20Extension.
  • Constructor Details

    • TLcdNVG20Rectangle

      public TLcdNVG20Rectangle()
    • TLcdNVG20Rectangle

      public TLcdNVG20Rectangle(TLcdDataType aType)
  • Method Details

    • clone

      public TLcdNVG20Rectangle clone(Map aObjectDictionary)
      Description copied from class: TLcdDataObject
      Returns a deep clone of this object. If the clone is not already present in the dictionary, a new instance if created as follows:
      • First, a new instance is created using Java's clone() mechanism.
      • Then, all properties of this object are cloned and set on the newly created instance. A property is cloned as follows:
        • If the property value is an ILcdDataObject, the value is cloned by first creating a new instance via the value.getDataType().newInstance() method, and then cloning its properties one by one.
        • If the value implements ILcdDeepCloneable or ILcdCloneable then this interface is used to clone the value.
        • Otherwise, the property value is copied by reference.
      Specified by:
      clone in interface ILcdDeepCloneable
      Overrides:
      clone in class TLcdDataObject
      Parameters:
      aObjectDictionary - the Object dictionary that keeps track of the objects for which a clone has already been made, and their corresponding clone Object.
      Returns:
      a deep clone of this object
    • clone

      public TLcdNVG20Rectangle clone()
      Description copied from class: TLcdDataObject
      Returns a deep clone of this object. This method delegates to TLcdDataObject.clone(Map).
      Specified by:
      clone in interface ILcdCloneable
      Overrides:
      clone in class TLcdDataObject
      Returns:
      a deep clone of this object
      See Also:
    • setOrientation

      public void setOrientation(double aOrientation)
      Description copied from interface: ILcdOrientationSettable
      Sets the orientation on this object.
      Specified by:
      setOrientation in interface ILcdOrientationSettable
      Parameters:
      aOrientation - the orientation specified in degrees with 0 located at 12 o'clock and increasing clockwise.
      See Also:
    • getOrientation

      public double getOrientation()
      Description copied from interface: ILcdOriented
      Returns the orientation of this object in degrees. The orientation should be interpreted as a clockwise angle in degrees starting from 12 o'clock.

      If there is no rotation known for this object, return Double.NaN.

      Specified by:
      getOrientation in interface ILcdOriented
      Returns:
      the orientation of this object in degrees, or NaN if undefined.
    • contains3D

      public boolean contains3D(double aX, double aY, double aZ)
      Description copied from interface: ILcdShape
      Checks whether this ILcdShape contains the given point in the 3D space.
      Specified by:
      contains3D in interface ILcdShape
      Parameters:
      aX - the x coordinate of the point.
      aY - the y coordinate of the point.
      aZ - the z coordinate of the point.
      Returns:
      the boolean result of the containment test.
    • contains3D

      public boolean contains3D(ILcdPoint aPoint)
      Description copied from interface: ILcdShape
      Checks whether this ILcdShape contains the given ILcdPoint in the 3D space.
      Specified by:
      contains3D in interface ILcdShape
      Parameters:
      aPoint - the ILcdPoint to test.
      Returns:
      the boolean result of the containment test.
      See Also:
    • getBounds

      public ILcdBounds getBounds()
      Description copied from interface: ILcdBounded
      Returns the ILcdBounds by which the geometry of this ILcdBounded object is bounded.

      If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points) the return value is unspecified. It is highly recommended to return an undefined bounds. You can create undefined bounds using the default constructors of TLcdLonLatBounds or TLcdXYBounds.

      Specified by:
      getBounds in interface ILcdBounded
      Returns:
      the ILcdBounds by which the geometry of this ILcdBounded object is bounded.
    • getFocusPoint

      public ILcdPoint getFocusPoint()
      Description copied from interface: ILcdShape
      Returns the focus point of this ILcdShape.
      Specified by:
      getFocusPoint in interface ILcdShape
      Returns:
      the focus point of this ILcdShape.
    • getCachedObject

      public Object getCachedObject(Object aKey)
      Description copied from interface: ILcdCache
      Looks up and returns the cached Object corresponding to the given key.
      Specified by:
      getCachedObject in interface ILcdCache
      Parameters:
      aKey - the key Object that was used for storing the cache Object.
      Returns:
      the cached Object, or null if there is no Object corresponding to the given key.
    • clearCache

      public void clearCache()
      Description copied from interface: ILcdCache
      Clears the cache.
      Specified by:
      clearCache in interface ILcdCache
    • removeCachedObject

      public Object removeCachedObject(Object aKey)
      Description copied from interface: ILcdCache
      Looks up and removes the cached Object corresponding to the given key.
      Specified by:
      removeCachedObject in interface ILcdCache
      Parameters:
      aKey - the key Object that was used for storing the cache Object.
      Returns:
      the cached Object, or null if there was no Object corresponding to the given key.
    • insertIntoCache

      public void insertIntoCache(Object aKey, Object aValue)
      Description copied from interface: ILcdCache
      Inserts a cache Object corresponding to the given key Object.
      Specified by:
      insertIntoCache in interface ILcdCache
      Parameters:
      aKey - the key Object that will be used to identify the Object. The key must therefore be a unique identifier, typically the caller itself: insertIntoCache(this, ...).
      aValue - the Object to be cached.
    • contains2D

      public boolean contains2D(double aX, double aY)
      Description copied from interface: ILcdShape
      Checks whether this ILcdShape contains the given point in the 2D space. Only the first two dimensions of the ILcdShape are considered.
      Specified by:
      contains2D in interface ILcdShape
      Parameters:
      aX - the x coordinate of the point.
      aY - the y coordinate of the point.
      Returns:
      the boolean result of the containment test.
    • contains2D

      public boolean contains2D(ILcdPoint aPoint)
      Description copied from interface: ILcdShape
      Checks whether this ILcdShape contains the given ILcdPoint in the 2D space. Only the first two dimensions of the ILcdShape and the ILcdPoint are considered.
      Specified by:
      contains2D in interface ILcdShape
      Parameters:
      aPoint - the ILcdPoint to test.
      Returns:
      the boolean result of the containment test.
      See Also:
    • invalidateObject

      public void invalidateObject()
      Description copied from interface: ILcdInvalidateable
      Invalidates all cached values of this object. Call this method whenever one or more of this object's compositing values has been changed, to notify this object it needs to recompute its cached values.
      Specified by:
      invalidateObject in interface ILcdInvalidateable
    • getExteriorRing

      public ILcdRing getExteriorRing()
      Description copied from interface: ILcdSurface
      Returns the exterior boundary of this surface.
      Specified by:
      getExteriorRing in interface ILcdSurface
      Returns:
      the exterior boundary of this surface.
    • setExteriorRing

      public void setExteriorRing(ILcdRing aRing)
      Description copied from interface: ILcdEditableSurface
      Sets the exterior boundary of this surface.

      Note that this implementations may throw a ClassCastException or IllegalArgumentException in case the class of the ring is not compatible with the implementation of the surface. Implementations should specify in their documentation all restrictions that apply in this context.

      Specified by:
      setExteriorRing in interface ILcdEditableSurface
      Parameters:
      aRing - the exterior boundary of this surface.
    • setX

      public void setX(double aValue)
      Sets the value of the property that maps to the cx attribute.

      Center longitude in decimal degrees (WGS84)

      Parameters:
      aValue - the value to set for the X_PROPERTY property.
    • setY

      public void setY(double aValue)
      Sets the value of the property that maps to the cy attribute.

      Center latitude in decimal degrees (WGS84)

      Parameters:
      aValue - the value to set for the Y_PROPERTY property.
    • setRotAngle

      public void setRotAngle(double aValue)
      Sets the value of the property that maps to the rotation attribute.

      Rotation in the counter-clockwise direction around the center point (cx, cy). The default value is 0.0 degrees rotation.

      Parameters:
      aValue - the value to set for the ROT_ANGLE_PROPERTY property.
    • setA

      public void setA(double aValue)
      Sets the value of the property that maps to the rx attribute.

      The half length of the rectangle from the center point along the X axis (East/West) prior to rotation, in meters. This number should be positive.

      Parameters:
      aValue - the value to set for the A_PROPERTY property.
    • setB

      public void setB(double aValue)
      Sets the value of the property that maps to the ry attribute.

      The half length of the rectangle from the center point along the Y axis (North/South) prior to rotation, in meters. This number should be positive.

      Parameters:
      aValue - the value to set for the B_PROPERTY property.
    • setEllipsoid

      public void setEllipsoid(ILcdEllipsoid aEllipsoid)
    • getEllipsoid

      public ILcdEllipsoid getEllipsoid()
    • getX

      public double getX()
      Returns the value of the property that maps to the cx attribute.

      Center longitude in decimal degrees (WGS84)

      Returns:
      the value of the X_PROPERTY property.
    • getY

      public double getY()
      Returns the value of the property that maps to the cy attribute.

      Center latitude in decimal degrees (WGS84)

      Returns:
      the value of the Y_PROPERTY property.
    • getRotAngle

      public double getRotAngle()
      Returns the value of the property that maps to the rotation attribute.

      Rotation in the counter-clockwise direction around the center point (cx, cy). The default value is 0.0 degrees rotation.

      Returns:
      the value of the ROT_ANGLE_PROPERTY property.
    • getA

      public double getA()
      Returns the value of the property that maps to the rx attribute.

      The half length of the rectangle from the center point along the X axis (East/West) prior to rotation, in meters. This number should be positive.

      Returns:
      the value of the A_PROPERTY property.
    • getB

      public double getB()
      Returns the value of the property that maps to the ry attribute.

      The half length of the rectangle from the center point along the Y axis (North/South) prior to rotation, in meters. This number should be positive.

      Returns:
      the value of the B_PROPERTY property.
    • getMaximumZ

      public double getMaximumZ()
      Returns the value of the property that maps to the maxaltitude attribute.

      Maximum altitude over the datum surface (WGS-84) expressed in meters

      Returns:
      the value of the MAXIMUM_Z_PROPERTY property.
    • setMaximumZ

      public void setMaximumZ(double aValue)
      Sets the value of the property that maps to the maxaltitude attribute.

      Maximum altitude over the datum surface (WGS-84) expressed in meters

      Parameters:
      aValue - the value to set for the MAXIMUM_Z_PROPERTY property.
    • getMinimumZ

      public double getMinimumZ()
      Returns the value of the property that maps to the minaltitude attribute.

      Minimum altitude over the datum surface (WGS-84) expressed in meters

      Returns:
      the value of the MINIMUM_Z_PROPERTY property.
    • setMinimumZ

      public void setMinimumZ(double aValue)
      Sets the value of the property that maps to the minaltitude attribute.

      Minimum altitude over the datum surface (WGS-84) expressed in meters

      Parameters:
      aValue - the value to set for the MINIMUM_Z_PROPERTY property.
    • getExclude

      public TLcdNVG20Exclusion getExclude()
      Returns the value of the property that maps to the exclude element.
      Returns:
      the value of the EXCLUDE_PROPERTY property.
    • setExclude

      public void setExclude(TLcdNVG20Exclusion aValue)
      Sets the value of the property that maps to the exclude element.
      Parameters:
      aValue - the value to set for the EXCLUDE_PROPERTY property.
    • getModifiers

      public TLcdNVGModifiers getModifiers()
      Returns the value of the property that maps to the modifiers attribute.

      The modifiers attribute is used to associate additional information with the the symbol attribute

      Returns:
      the value of the MODIFIERS_PROPERTY property.
    • setModifiers

      public void setModifiers(TLcdNVGModifiers aValue)
      Sets the value of the property that maps to the modifiers attribute.

      The modifiers attribute is used to associate additional information with the the symbol attribute

      Parameters:
      aValue - the value to set for the MODIFIERS_PROPERTY property.
    • getSymbol

      public TLcdNVGSymbol getSymbol()
      Returns the value of the property that maps to the symbol attribute.

      Symbology attribute that binds the content to a specific symbol scheme and code. Format: :

      Returns:
      the value of the SYMBOL_PROPERTY property.
    • setSymbol

      public void setSymbol(TLcdNVGSymbol aValue)
      Sets the value of the property that maps to the symbol attribute.

      Symbology attribute that binds the content to a specific symbol scheme and code. Format: :

      Parameters:
      aValue - the value to set for the SYMBOL_PROPERTY property.
    • getHref

      public URI getHref()
      Returns the value of the property that maps to the href attribute.

      A URL to human readable content providing more information about the ContentType. Typically the NVG document will contain just a small amount of metadata required to render the content. The URL allows the user to drill-down (click through) to the full content.

      Returns:
      the value of the HREF_PROPERTY property.
    • setHref

      public void setHref(URI aValue)
      Sets the value of the property that maps to the href attribute.

      A URL to human readable content providing more information about the ContentType. Typically the NVG document will contain just a small amount of metadata required to render the content. The URL allows the user to drill-down (click through) to the full content.

      Parameters:
      aValue - the value to set for the HREF_PROPERTY property.
    • getLabel

      public String getLabel()
      Returns the value of the property that maps to the label attribute.

      A short text label describing the content. Long text should be placed in the text element.

      Returns:
      the value of the LABEL_PROPERTY property.
    • setLabel

      public void setLabel(String aValue)
      Sets the value of the property that maps to the label attribute.

      A short text label describing the content. Long text should be placed in the text element.

      Parameters:
      aValue - the value to set for the LABEL_PROPERTY property.
    • getStyle

      public TLcdNVGStyle getStyle()
      Returns the value of the property that maps to the style attribute.

      A text string (inline CSS string) that defines how objects should be rendered graphically.

      Returns:
      the value of the STYLE_PROPERTY property.
    • setStyle

      public void setStyle(TLcdNVGStyle aValue)
      Sets the value of the property that maps to the style attribute.

      A text string (inline CSS string) that defines how objects should be rendered graphically.

      Parameters:
      aValue - the value to set for the STYLE_PROPERTY property.
    • getUri

      public URI getUri()
      Returns the value of the property that maps to the uri attribute.

      The unique identifier for the content. The URI is immutable and shall remain constant across documents produced by the same source. Furthermore, the URI shall remain constant as the document is transferred through a mediation service/process.

      Returns:
      the value of the URI_PROPERTY property.
    • setUri

      public void setUri(URI aValue)
      Sets the value of the property that maps to the uri attribute.

      The unique identifier for the content. The URI is immutable and shall remain constant across documents produced by the same source. Furthermore, the URI shall remain constant as the document is transferred through a mediation service/process.

      Parameters:
      aValue - the value to set for the URI_PROPERTY property.
    • getMetadata

      public TLcdNVG20Extension getMetadata()
      Returns the value of the property that maps to the metadata element.

      named container for NDMS / Dublin Core defined metadata

      Returns:
      the value of the METADATA_PROPERTY property.
    • setMetadata

      public void setMetadata(TLcdNVG20Extension aValue)
      Sets the value of the property that maps to the metadata element.

      named container for NDMS / Dublin Core defined metadata

      Parameters:
      aValue - the value to set for the METADATA_PROPERTY property.
    • getExtendedData

      public TLcdNVG20ExtendedData getExtendedData()
      Returns the value of the property that maps to the ExtendedData element.
      Returns:
      the value of the EXTENDED_DATA_PROPERTY property.
    • setExtendedData

      public void setExtendedData(TLcdNVG20ExtendedData aValue)
      Sets the value of the property that maps to the ExtendedData element.
      Parameters:
      aValue - the value to set for the EXTENDED_DATA_PROPERTY property.
    • getTextInfo

      public String getTextInfo()
      Returns the value of the property that maps to the textInfo element.

      Additional human readable text in addition to @label. Long text content should be placed here.

      Returns:
      the value of the TEXT_INFO_PROPERTY property.
    • setTextInfo

      public void setTextInfo(String aValue)
      Sets the value of the property that maps to the textInfo element.

      Additional human readable text in addition to @label. Long text content should be placed here.

      Parameters:
      aValue - the value to set for the TEXT_INFO_PROPERTY property.
    • getTimeStamp

      public XMLGregorianCalendar getTimeStamp()
      Returns the value of the property that maps to the TimeStamp element.

      comparable point in time (DTG) to represent the last state change of this element

      Returns:
      the value of the TIME_STAMP_PROPERTY property.
    • setTimeStamp

      public void setTimeStamp(XMLGregorianCalendar aValue)
      Sets the value of the property that maps to the TimeStamp element.

      comparable point in time (DTG) to represent the last state change of this element

      Parameters:
      aValue - the value to set for the TIME_STAMP_PROPERTY property.
    • getTimeSpan

      public TLcdNVG20Content.TimeSpan getTimeSpan()
      Returns the value of the property that maps to the TimeSpan element.

      Define a show/hide period (based on strict DTG) for the shape as defined by KML on https://developers.google.com/kml/documentation/kmlreference#timespan

      Returns:
      the value of the TIME_SPAN_PROPERTY property.
    • setTimeSpan

      public void setTimeSpan(TLcdNVG20Content.TimeSpan aValue)
      Sets the value of the property that maps to the TimeSpan element.

      Define a show/hide period (based on strict DTG) for the shape as defined by KML on https://developers.google.com/kml/documentation/kmlreference#timespan

      Parameters:
      aValue - the value to set for the TIME_SPAN_PROPERTY property.
    • getExtension

      public TLcdNVG20Extension getExtension()
      Returns the value of the property that maps to the extension element.

      Extension point for structured community of interest specific content.

      Returns:
      the value of the EXTENSION_PROPERTY property.
    • setExtension

      public void setExtension(TLcdNVG20Extension aValue)
      Sets the value of the property that maps to the extension element.

      Extension point for structured community of interest specific content.

      Parameters:
      aValue - the value to set for the EXTENSION_PROPERTY property.