public class BoxDataImpl extends java.lang.Object implements BoxData
ExtensionPoint
that
is passed in to store the Box extension.Constructor and Description |
---|
BoxDataImpl(ExtensionPoint extensionPoint)
Construct a new BoxData with the given extension point as the backing
storage of the data.
|
Modifier and Type | Method and Description |
---|---|
static void |
clearBox(ExtensionPoint ext)
Removes the first Box extension found on the extension point.
|
void |
clearGeoBoundingBox()
Clears the bounding box and removes the extension point.
|
void |
declareExtensions(ExtensionProfile extProfile) |
static Box |
getBox(ExtensionPoint ext)
Helper method to retrieve the Box extension point.
|
Box |
getGeoBoundingBox()
Gets the geo bounding box for this extension point.
|
static void |
setBox(ExtensionPoint ext,
Box box)
Sets the geo bounding box of the extension passed in.
|
void |
setGeoBoundingBox(Box box)
Sets the geo bounding box to the given box.
|
void |
setGeoBoundingBox(Point lowerLeft,
Point upperRight)
If there is an existing box this will set the new values on it.
|
public BoxDataImpl(ExtensionPoint extensionPoint)
public void setGeoBoundingBox(Point lowerLeft, Point upperRight)
setGeoBoundingBox
in interface BoxData
lowerLeft
- the lower left coordinate of the box.upperRight
- the upper right coordinate of the box.public void setGeoBoundingBox(Box box)
setGeoBoundingBox
in interface BoxData
box
- the box that bounds this entity.public Box getGeoBoundingBox()
getGeoBoundingBox
in interface BoxData
public void clearGeoBoundingBox()
BoxData
clearGeoBoundingBox
in interface BoxData
public static void setBox(ExtensionPoint ext, Box box)
ext
- The extension point to add the Box to.box
- The new box information.public static Box getBox(ExtensionPoint ext)
ext
- The containing extension point.public static void clearBox(ExtensionPoint ext)
ext
- The extension point from which to clear the Box extension.public void declareExtensions(ExtensionProfile extProfile)