Class MapImageRequest.AttributedRect

java.lang.Object
com.kheops.jmap.metadata.MapImageRequest.AttributedRect
All Implemented Interfaces:
Serializable
Enclosing class:
MapImageRequest

public static final class MapImageRequest.AttributedRect extends Object implements Serializable
The AttributedRect class is a wrapper for a K2DRotateRect object and a boolean hasDCCoord which defines whether the K2DRect object wrapped by this object contains a WC or a DC coordinate.
See Also:
  • Field Details

    • hasDCCoord

      protected byte hasDCCoord
      Defines whether the coord object contains a WC or a DC coordinate.
    • rect

      public OrientedRectangle rect
      The K2DRotateRect object.
  • Constructor Details

    • AttributedRect

      public AttributedRect()
      Creates a new AttributedRect instance.
    • AttributedRect

      public AttributedRect(OrientedRectangle rect, boolean hasDCCoord)
      Creates a new AttributedRect instance.
      Parameters:
      rect - the rectangle.
      hasDCCoord - whether the rect object contains a WC or a DC coordinate.
  • Method Details

    • hasDCCoord

      public boolean hasDCCoord()
      Returns true if the rect object contains a DC coordinate.
      Returns:
      whether the rect object contains a DC coordinate.
    • getRect

      public OrientedRectangle getRect()
      Returns the K2DRotateRect object wrapped by this AttributedRect.
      Returns:
      the K2DRotateRect object.
    • setRect

      public void setRect(OrientedRectangle rect)
      Sets the K2DRotateRect object wrapped by this AttributedRect.
      Parameters:
      rect - the K2DRotateRect object.