Package com.kheops.jmap.metadata
Class MapImageRequest.AttributedRect
java.lang.Object
com.kheops.jmap.metadata.MapImageRequest.AttributedRect
- All Implemented Interfaces:
Serializable
- Enclosing class:
MapImageRequest
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 Summary
Modifier and TypeFieldDescriptionprotected byte
Defines whether the coord object contains a WC or a DC coordinate.The K2DRotateRect object. -
Constructor Summary
ConstructorDescriptionCreates a new AttributedRect instance.AttributedRect
(OrientedRectangle rect, boolean hasDCCoord) Creates a new AttributedRect instance. -
Method Summary
Modifier and TypeMethodDescriptiongetRect()
Returns the K2DRotateRect object wrapped by this AttributedRect.boolean
Returnstrue
if the rect object contains a DC coordinate.void
setRect
(OrientedRectangle rect) Sets the K2DRotateRect object wrapped by this AttributedRect.
-
Field Details
-
hasDCCoord
protected byte hasDCCoordDefines whether the coord object contains a WC or a DC coordinate. -
rect
The K2DRotateRect object.
-
-
Constructor Details
-
AttributedRect
public AttributedRect()Creates a new AttributedRect instance. -
AttributedRect
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()Returnstrue
if the rect object contains a DC coordinate.- Returns:
- whether the rect object contains a DC coordinate.
-
getRect
Returns the K2DRotateRect object wrapped by this AttributedRect.- Returns:
- the K2DRotateRect object.
-
setRect
Sets the K2DRotateRect object wrapped by this AttributedRect.- Parameters:
rect
- the K2DRotateRect object.
-