|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gdata.data.geo.impl.BoxDataImpl
public class BoxDataImpl
Implementation of the BoxData interface. Currently only supports a
non-repeating Box extension. This class uses an ExtensionPoint that
is passed in to store the Box extension.
| Constructor Summary | |
|---|---|
BoxDataImpl(ExtensionPoint extensionPoint)
Construct a new BoxData with the given extension point as the backing storage of the data. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BoxDataImpl(ExtensionPoint extensionPoint)
| Method Detail |
|---|
public void setGeoBoundingBox(Point lowerLeft,
Point upperRight)
setGeoBoundingBox in interface BoxDatalowerLeft - the lower left coordinate of the box.upperRight - the upper right coordinate of the box.public void setGeoBoundingBox(Box box)
setGeoBoundingBox in interface BoxDatabox - the box that bounds this entity.public Box getGeoBoundingBox()
getGeoBoundingBox in interface BoxDatapublic 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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||