public class TLcdKML22LatLonBox extends TLcdKML22AbstractLatLonBox
OGC KML Specification description:
This element can be used wherever the following element is referenced: -kml:AbstractObjectGroup
Note: since a KML LatLonBox can be rotated, it does not implement ILcdBounds
.
Modifier and Type | Field and Description |
---|---|
static TLcdDataProperty |
ABSTRACT_LAT_LON_BOX_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to the
AbstractLatLonBoxObjectExtensionGroup element. |
static TLcdDataProperty |
ABSTRACT_LAT_LON_BOX_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to the
AbstractLatLonBoxSimpleExtensionGroup element. |
static TLcdDataProperty |
EAST_PROPERTY
Data property that maps to the
east element. |
static TLcdDataProperty |
LAT_LON_BOX_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to the
LatLonBoxObjectExtensionGroup element. |
static TLcdDataProperty |
LAT_LON_BOX_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to the
LatLonBoxSimpleExtensionGroup element. |
static TLcdDataProperty |
NORTH_PROPERTY
Data property that maps to the
north element. |
static TLcdDataProperty |
ROTATION_PROPERTY
Data property that maps to the
rotation element. |
static TLcdDataProperty |
SOUTH_PROPERTY
Data property that maps to the
south element. |
static TLcdDataProperty |
WEST_PROPERTY
Data property that maps to the
west element. |
ID_PROPERTY, OBJECT_SIMPLE_EXTENSION_GROUP_PROPERTY, TARGET_ID_PROPERTY
Constructor and Description |
---|
TLcdKML22LatLonBox(TLcdDataType aType)
Creates a new
TLcdKML22LatLonBox with a custom TLcdDataType . |
Modifier and Type | Method and Description |
---|---|
TLcdKML22LatLonBox |
clone()
Returns a deep clone of this object.
|
TLcdDataObject |
clone(Map aObjectDictionary)
Returns a deep clone of this object.
|
Double |
getEast()
Returns the value of the property that maps to the
east element. |
Double |
getNorth()
Returns the value of the property that maps to the
north element. |
Double |
getRotation()
Returns the value of the property that maps to the
rotation element. |
Double |
getSouth()
Returns the value of the property that maps to the
south element. |
Double |
getWest()
Returns the value of the property that maps to the
west element. |
void |
setEast(Double aValue)
Sets the value of the property that maps to the
east element. |
void |
setNorth(Double aValue)
Sets the value of the property that maps to the
north element. |
void |
setRotation(Double aValue)
Sets the value of the property that maps to the
rotation element. |
void |
setSouth(Double aValue)
Sets the value of the property that maps to the
south element. |
void |
setValue(TLcdDataProperty aTLcdDataProperty,
Object o)
Sets the value of the given property for this data object.
|
void |
setWest(Double aValue)
Sets the value of the property that maps to the
west element. |
getId, getTargetId, setId, setTargetId
getDataType, getValue, getValue, hasValue, hasValue, setValue, toString
public static final TLcdDataProperty ROTATION_PROPERTY
rotation
element.
The possible values for this property are instances of Double
.public static final TLcdDataProperty LAT_LON_BOX_SIMPLE_EXTENSION_GROUP_PROPERTY
LatLonBoxSimpleExtensionGroup
element.
The possible values for this property are instances of List<String>
.public static final TLcdDataProperty LAT_LON_BOX_OBJECT_EXTENSION_GROUP_PROPERTY
LatLonBoxObjectExtensionGroup
element.
The possible values for this property are instances of List<TLcdKML22AbstractObject>
.public static final TLcdDataProperty NORTH_PROPERTY
north
element.
The possible values for this property are instances of Double
.public static final TLcdDataProperty SOUTH_PROPERTY
south
element.
The possible values for this property are instances of Double
.public static final TLcdDataProperty EAST_PROPERTY
east
element.
The possible values for this property are instances of Double
.public static final TLcdDataProperty WEST_PROPERTY
west
element.
The possible values for this property are instances of Double
.public static final TLcdDataProperty ABSTRACT_LAT_LON_BOX_SIMPLE_EXTENSION_GROUP_PROPERTY
AbstractLatLonBoxSimpleExtensionGroup
element.
The possible values for this property are instances of List<String>
.public static final TLcdDataProperty ABSTRACT_LAT_LON_BOX_OBJECT_EXTENSION_GROUP_PROPERTY
AbstractLatLonBoxObjectExtensionGroup
element.
The possible values for this property are instances of List<TLcdKML22AbstractObject>
.public TLcdKML22LatLonBox(TLcdDataType aType)
TLcdKML22LatLonBox
with a custom TLcdDataType
.aType
- a custom TLcdDataType
public void setValue(TLcdDataProperty aTLcdDataProperty, Object o)
ILcdDataObject
Sets the value of the given property for this data object. The implementation is allowed to throw an exception if the given value can't be set.
The given property must be declared in thedata object's type
or in one of its super types. In
other words, getDataType().getProperties().contains( aProperty ) should always be true.
Otherwise, the implementation should throw an IllegalArgumentException
.setValue
in interface ILcdDataObject
setValue
in class TLcdDataObject
aTLcdDataProperty
- the property for which the value is to be seto
- the value to setTLcdDataType.getProperty(String)
public Double getSouth()
south
element.SOUTH_PROPERTY
property.public Double getEast()
east
element.EAST_PROPERTY
property.public Double getWest()
west
element.WEST_PROPERTY
property.public Double getNorth()
north
element.NORTH_PROPERTY
property.public Double getRotation()
rotation
element.ROTATION_PROPERTY
property.public TLcdKML22LatLonBox clone()
TLcdDataObject
TLcdDataObject.clone(Map)
.clone
in interface ILcdCloneable
clone
in class TLcdDataObject
Object.clone()
public TLcdDataObject clone(Map aObjectDictionary)
TLcdDataObject
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.ILcdDeepCloneable
or
ILcdCloneable
then this interface is used to clone the value.clone
in interface ILcdDeepCloneable
clone
in class TLcdDataObject
aObjectDictionary
- the Object dictionary that keeps track of the objects for which a clone has already been made,
and their corresponding clone Object.public void setRotation(Double aValue)
rotation
element.aValue
- the value to set for the ROTATION_PROPERTY
property.public void setNorth(Double aValue)
north
element.aValue
- the value to set for the NORTH_PROPERTY
property.public void setSouth(Double aValue)
south
element.aValue
- the value to set for the SOUTH_PROPERTY
property.public void setEast(Double aValue)
east
element.aValue
- the value to set for the EAST_PROPERTY
property.public void setWest(Double aValue)
west
element.aValue
- the value to set for the WEST_PROPERTY
property.