Class TLcdKML22Placemark
- All Implemented Interfaces:
ILcdDataObject
,ILcdBounded
,ILcdEditableShapeList
,ILcdShape
,ILcdShapeList
,ILcdTimeBounded
,ILcdCache
,ILcdCloneable
,ILcdDeepCloneable
,Serializable
,Cloneable
OGC KML Specification description:
This element can be used wherever the following element is referenced: -kml:AbstractFeatureGroup A kml:Placemark is a kml:AbstractFeatureGroup with an associated kml:AbstractGeometryGroup. A kml:Placemark with a kml:Point geometry should be drawn with an icon to mark the kml:Placemark in the geographic view. The point itself determines the position of the kml:Placemark's name and display icon. kml:Placemark should contain a kml:AbstractGeometryGroup element outside of an update context, that is when not a descendant of kml:Update.
- Since:
- 10.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TLcdDataProperty
Data property that maps to theAbstractFeatureObjectExtensionGroup
element.static final TLcdDataProperty
Data property that maps to theAbstractFeatureSimpleExtensionGroup
element.static final TLcdDataProperty
Data property that maps to theAbstractGeometryGroup
element.static final TLcdDataProperty
Data property that maps to theAbstractStyleSelectorGroup
element.static final TLcdDataProperty
Data property that maps to theAbstractTimePrimitiveGroup
element.static final TLcdDataProperty
Data property that maps to theAbstractViewGroup
element.static final TLcdDataProperty
Data property that maps to theAddressDetails
element.static final TLcdDataProperty
Data property that maps to theaddress
element.static final TLcdDataProperty
Data property that maps to thelink
element.static final TLcdDataProperty
Data property that maps to theauthor
element.static final TLcdDataProperty
Data property that maps to thedescription
element.static final TLcdDataProperty
Data property that maps to the choice between theMetadata
andExtendedData
elements.static final TLcdDataProperty
Data property that maps to thename
element.static final TLcdDataProperty
Data property that maps to theopen
element.static final TLcdDataProperty
Data property that maps to thephoneNumber
element.static final TLcdDataProperty
Data property that maps to thePlacemarkObjectExtensionGroup
element.static final TLcdDataProperty
Data property that maps to thePlacemarkSimpleExtensionGroup
element.static final TLcdDataProperty
Data property that maps to theRegion
element.static final TLcdDataProperty
Data property that maps to the choice between theSnippet
andsnippet
elements.static final TLcdDataProperty
Data property that maps to thestyleUrl
element.static final TLcdDataProperty
Data property that maps to thevisibility
element.Fields inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
ID_PROPERTY, OBJECT_SIMPLE_EXTENSION_GROUP_PROPERTY, TARGET_ID_PROPERTY
-
Constructor Summary
ConstructorDescriptionTLcdKML22Placemark
(TLcdDataType aType) Creates a newTLcdKML22Placemark
with a customTLcdDataType
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Inserts the specified shape at the specified position in thisILcdShapeList
.void
Appends the specified shape to the end of thisILcdShapeList
.void
Appends the specified array of shapes to the end of thisILcdShapeList
.void
Removes all of the shapes from thisILcdShapeList
.clone()
Returns a deep clone of this object.Returns a deep clone of this object.boolean
contains2D
(double aX, double aY) Checks whether thisILcdShape
contains the given point in the 2D space.boolean
contains2D
(ILcdPoint aPoint) Checks whether thisILcdShape
contains the givenILcdPoint
in the 2D space.boolean
contains3D
(double aX, double aY, double aZ) Checks whether thisILcdShape
contains the given point in the 3D space.boolean
contains3D
(ILcdPoint aPoint) Checks whether thisILcdShape
contains the givenILcdPoint
in the 3D space.Returns the value of the property that maps to theAbstractGeometryGroup
element.Returns the value of the property that maps to theAbstractStyleSelectorGroup
element.Returns the value of the property that maps to theAbstractTimePrimitiveGroup
element.Returns the value of the property that maps to theAbstractViewGroup
element.Returns the value of the property that maps to theaddress
element.Returns the value of the property that maps to theAddressDetails
element.Returns the value of the property that maps to thelink
element.Returns the value of the property that maps to theauthor
element.Returns theILcdBounds
by which the geometry of thisILcdBounded
object is bounded.Returns the value of the property that maps to thedescription
element.Returns the value of the property that maps to the choice between theMetadata
andExtendedData
elements.Returns the focus point of thisILcdShape
.getName()
Returns the value of the property that maps to thename
element.getOpen()
Returns the value of the property that maps to theopen
element.Returns the value of the property that maps to thephoneNumber
element.Returns the value of the property that maps to theRegion
element.getShape
(int aIndex) Returns theILcdShape
at the given index.int
Returns the number ofILcdShape
objects in the list.Returns the value of the property that maps to the choice between theSnippet
andsnippet
elements.Returns the value of the property that maps to thestyleUrl
element.removeShape
(int aIndex) Removes the shape at the specified position in thisILcdShapeList
.boolean
removeShape
(ILcdShape aShape) Removes the first occurrence of the specified shape in thisILcdShapeList
.void
removeShapes
(ILcdShape[] aShapes) Removes all shapes from thisILcdShapeList
that are contained in the specified array of shapes.void
Sets the value of the property that maps to theAbstractGeometryGroup
element.void
Sets the value of the property that maps to theAbstractTimePrimitiveGroup
element.void
Sets the value of the property that maps to theAbstractViewGroup
element.void
setAddress
(String aValue) Sets the value of the property that maps to theaddress
element.void
setAddressDetails
(ILcdDataObject aValue) Sets the value of the property that maps to theAddressDetails
element.void
setAtomLink
(ILcdDataObject aValue) Sets the value of the property that maps to thelink
element.void
setAuthor
(ILcdDataObject aValue) Sets the value of the property that maps to theauthor
element.void
setDescription
(String aValue) Sets the value of the property that maps to thedescription
element.void
setExtendedData
(ILcdDataObject aValue) Sets the value of the property that maps to the choice between theMetadata
andExtendedData
elements.void
Sets the value of the property that maps to thename
element.void
Sets the value of the property that maps to theopen
element.void
setPhoneNumber
(String aValue) Sets the value of the property that maps to thephoneNumber
element.void
setRegion
(TLcdKML22Region aValue) Sets the value of the property that maps to theRegion
element.Replaces the shape at the specified position in thisILcdShapeList
with the specified shape.void
Replace the list of shapes contained in thisILcdShapeList
with the specified array of shapes.void
setSnippet
(TLcdKML22Snippet aValue) Sets the value of the property that maps to the choice between theSnippet
andsnippet
elements.void
setStyleUrl
(String aValue) Sets the value of the property that maps to thestyleUrl
element.void
setVisibility
(Boolean aValue) Sets the value of the property that maps to thevisibility
element.void
shapeChanged
(int aIndex) Notifies thisILcdShapeList
that the shape at the specified position has changed.void
shapeChanged
(ILcdShape aShape) Notifies thisILcdShapeList
that the specified shape has changed.void
Notifies thisILcdShapeList
that some (possibly all) of its shapes have changed.Methods inherited from class com.luciad.format.kml22.model.feature.TLcdKML22AbstractFeature
clearCache, getCachedObject, getInnerStyleSelector, getKMLSourceName, getTimeBounds, getVisibility, insertIntoCache, removeCachedObject, setKMLSourceName
Methods inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
getId, getTargetId, setId, setTargetId
Methods inherited from class com.luciad.datamodel.TLcdDataObject
getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue, toString
-
Field Details
-
ABSTRACT_GEOMETRY_GROUP_PROPERTY
Data property that maps to theAbstractGeometryGroup
element. The possible values for this property are instances ofTLcdKML22AbstractGeometry
. -
PLACEMARK_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to thePlacemarkSimpleExtensionGroup
element. The possible values for this property are instances ofList<String>
. -
PLACEMARK_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to thePlacemarkObjectExtensionGroup
element. The possible values for this property are instances ofList<TLcdKML22AbstractObject>
. -
NAME_PROPERTY
Data property that maps to thename
element. The possible values for this property are instances ofString
. -
VISIBILITY_PROPERTY
Data property that maps to thevisibility
element. The possible values for this property are instances ofBoolean
. -
OPEN_PROPERTY
Data property that maps to theopen
element. The possible values for this property are instances ofBoolean
. -
AUTHOR_PROPERTY
Data property that maps to theauthor
element. The possible values for this property are instances ofILcdDataObject
. -
ATOM_LINK_PROPERTY
Data property that maps to thelink
element. The possible values for this property are instances ofILcdDataObject
. -
ADDRESS_PROPERTY
Data property that maps to theaddress
element. The possible values for this property are instances ofString
. -
ADDRESS_DETAILS_PROPERTY
Data property that maps to theAddressDetails
element. The possible values for this property are instances ofILcdDataObject
. -
PHONE_NUMBER_PROPERTY
Data property that maps to thephoneNumber
element. The possible values for this property are instances ofString
. -
SNIPPET_PROPERTY
Data property that maps to the choice between theSnippet
andsnippet
elements. The possible values for this property are instances ofTLcdKML22Snippet
String
-
DESCRIPTION_PROPERTY
Data property that maps to thedescription
element. The possible values for this property are instances ofString
. -
ABSTRACT_VIEW_GROUP_PROPERTY
Data property that maps to theAbstractViewGroup
element. The possible values for this property are instances ofTLcdKML22AbstractView
. -
ABSTRACT_TIME_PRIMITIVE_GROUP_PROPERTY
Data property that maps to theAbstractTimePrimitiveGroup
element. The possible values for this property are instances ofTLcdKML22AbstractTimePrimitive
. -
STYLE_URL_PROPERTY
Data property that maps to thestyleUrl
element. The possible values for this property are instances ofString
. -
ABSTRACT_STYLE_SELECTOR_GROUP_PROPERTY
Data property that maps to theAbstractStyleSelectorGroup
element. The possible values for this property are instances ofList<TLcdKML22AbstractStyleSelector>
. -
REGION_PROPERTY
Data property that maps to theRegion
element. The possible values for this property are instances ofTLcdKML22Region
. -
EXTENDED_DATA_PROPERTY
Data property that maps to the choice between theMetadata
andExtendedData
elements. The possible values for this property are instances of -
ABSTRACT_FEATURE_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to theAbstractFeatureSimpleExtensionGroup
element. The possible values for this property are instances ofList<String>
. -
ABSTRACT_FEATURE_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to theAbstractFeatureObjectExtensionGroup
element. The possible values for this property are instances ofList<TLcdKML22AbstractObject>
.
-
-
Constructor Details
-
TLcdKML22Placemark
Creates a newTLcdKML22Placemark
with a customTLcdDataType
.- Parameters:
aType
- a customTLcdDataType
-
-
Method Details
-
addShape
Description copied from interface:ILcdEditableShapeList
Inserts the specified shape at the specified position in thisILcdShapeList
.- Specified by:
addShape
in interfaceILcdEditableShapeList
- Parameters:
aIndex
- the index at which the shape is to be inserted.aShape
- the shape to be inserted.
-
addShape
Description copied from interface:ILcdEditableShapeList
Appends the specified shape to the end of thisILcdShapeList
.- Specified by:
addShape
in interfaceILcdEditableShapeList
- Parameters:
aShape
- the shape to be appended to thisILcdShapeList
.
-
addShapes
Description copied from interface:ILcdEditableShapeList
Appends the specified array of shapes to the end of thisILcdShapeList
.- Specified by:
addShapes
in interfaceILcdEditableShapeList
- Parameters:
aShapes
- the array of shapes to be appended to thisILcdShapeList
.
-
clearShapes
public void clearShapes()Description copied from interface:ILcdEditableShapeList
Removes all of the shapes from thisILcdShapeList
.- Specified by:
clearShapes
in interfaceILcdEditableShapeList
-
removeShape
Description copied from interface:ILcdEditableShapeList
Removes the shape at the specified position in thisILcdShapeList
. Shifts any subsequent shapes to the left. Returns the shape that was removed from thisILcdShapeList
.- Specified by:
removeShape
in interfaceILcdEditableShapeList
- Parameters:
aIndex
- the index of the shape to removed.- Returns:
- the shape previously at the specified position.
-
removeShape
Description copied from interface:ILcdEditableShapeList
Removes the first occurrence of the specified shape in thisILcdShapeList
. If thisILcdShapeList
does not contain the shape, it is unchanged.- Specified by:
removeShape
in interfaceILcdEditableShapeList
- Parameters:
aShape
- the shape to be removed, if present.- Returns:
true
if thisILcdShapeList
contained the specified element.
-
removeShapes
Description copied from interface:ILcdEditableShapeList
Removes all shapes from thisILcdShapeList
that are contained in the specified array of shapes.- Specified by:
removeShapes
in interfaceILcdEditableShapeList
- Parameters:
aShapes
- the array of shapes to be removed from thisILcdShapeList
.
-
setShape
Description copied from interface:ILcdEditableShapeList
Replaces the shape at the specified position in thisILcdShapeList
with the specified shape.- Specified by:
setShape
in interfaceILcdEditableShapeList
- Parameters:
aIndex
- index of shape to replace.aShape
- the shape to be stored at the specified position.- Returns:
- the shape previously at the specified position.
-
setShapes
Description copied from interface:ILcdEditableShapeList
Replace the list of shapes contained in thisILcdShapeList
with the specified array of shapes.- Specified by:
setShapes
in interfaceILcdEditableShapeList
- Parameters:
aShapes
- the array of shapes to be stored in thisILcdShapeList
.
-
shapeChanged
public void shapeChanged(int aIndex) Description copied from interface:ILcdEditableShapeList
Notifies thisILcdShapeList
that the shape at the specified position has changed.- Specified by:
shapeChanged
in interfaceILcdEditableShapeList
- Parameters:
aIndex
- the index of the shape that has changed.
-
shapeChanged
Description copied from interface:ILcdEditableShapeList
Notifies thisILcdShapeList
that the specified shape has changed.- Specified by:
shapeChanged
in interfaceILcdEditableShapeList
- Parameters:
aShape
- the shape that has changed.
-
shapesChanged
public void shapesChanged()Description copied from interface:ILcdEditableShapeList
Notifies thisILcdShapeList
that some (possibly all) of its shapes have changed.- Specified by:
shapesChanged
in interfaceILcdEditableShapeList
-
getShapeCount
public int getShapeCount()Description copied from interface:ILcdShapeList
Returns the number ofILcdShape
objects in the list.- Specified by:
getShapeCount
in interfaceILcdShapeList
- Returns:
- the number of
ILcdShape
objects in the list.
-
getShape
Description copied from interface:ILcdShapeList
Returns theILcdShape
at the given index.- Specified by:
getShape
in interfaceILcdShapeList
- Parameters:
aIndex
- a valid index in the list ofILcdShape
objects.- Returns:
- the
ILcdShape
at the given index.
-
contains2D
Description copied from interface:ILcdShape
Checks whether thisILcdShape
contains the givenILcdPoint
in the 2D space. Only the first two dimensions of theILcdShape
and theILcdPoint
are considered.- Specified by:
contains2D
in interfaceILcdShape
- Parameters:
aPoint
- theILcdPoint
to test.- Returns:
- the boolean result of the containment test.
- See Also:
-
contains3D
Description copied from interface:ILcdShape
Checks whether thisILcdShape
contains the givenILcdPoint
in the 3D space.- Specified by:
contains3D
in interfaceILcdShape
- Parameters:
aPoint
- theILcdPoint
to test.- Returns:
- the boolean result of the containment test.
- See Also:
-
contains3D
public boolean contains3D(double aX, double aY, double aZ) Description copied from interface:ILcdShape
Checks whether thisILcdShape
contains the given point in the 3D space.- Specified by:
contains3D
in interfaceILcdShape
- Parameters:
aX
- the x coordinate of the point.aY
- the y coordinate of the point.aZ
- the z coordinate of the point.- Returns:
- the boolean result of the containment test.
-
contains2D
public boolean contains2D(double aX, double aY) Description copied from interface:ILcdShape
Checks whether thisILcdShape
contains the given point in the 2D space. Only the first two dimensions of theILcdShape
are considered.- Specified by:
contains2D
in interfaceILcdShape
- Parameters:
aX
- the x coordinate of the point.aY
- the y coordinate of the point.- Returns:
- the boolean result of the containment test.
-
getFocusPoint
Description copied from interface:ILcdShape
Returns the focus point of thisILcdShape
.- Specified by:
getFocusPoint
in interfaceILcdShape
- Returns:
- the focus point of this
ILcdShape
.
-
clone
Description copied from class:TLcdDataObject
Returns a deep clone of this object. This method delegates toTLcdDataObject.clone(Map)
.- Specified by:
clone
in interfaceILcdCloneable
- Overrides:
clone
in classTLcdDataObject
- Returns:
- a deep clone of this object
- See Also:
-
clone
Description copied from class:TLcdDataObject
Returns a deep clone of this object. If the clone is not already present in the dictionary, a new instance if created as follows:- First, a new instance is created using Java's clone() mechanism.
- Then, all properties of this object are cloned and set on the newly created
instance. A property is cloned as follows:
- If the property value is an
ILcdDataObject
, the value is cloned by first creating a new instance via thevalue.getDataType().newInstance()
method, and then cloning its properties one by one. - If the value implements
ILcdDeepCloneable
orILcdCloneable
then this interface is used to clone the value. - Otherwise, the property value is copied by reference.
- If the property value is an
- Specified by:
clone
in interfaceILcdDeepCloneable
- Overrides:
clone
in classTLcdKML22AbstractFeature
- Parameters:
aObjectDictionary
- the Object dictionary that keeps track of the objects for which a clone has already been made, and their corresponding clone Object.- Returns:
- a deep clone of this object
-
getBounds
Description copied from interface:ILcdBounded
Returns theILcdBounds
by which the geometry of thisILcdBounded
object is bounded.If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points) the return value is unspecified. It is highly recommended to return an
undefined
bounds. You can create undefined bounds using the default constructors ofTLcdLonLatBounds
orTLcdXYBounds
.- Specified by:
getBounds
in interfaceILcdBounded
- Returns:
- the
ILcdBounds
by which the geometry of thisILcdBounded
object is bounded.
-
getAbstractGeometryGroup
Returns the value of the property that maps to theAbstractGeometryGroup
element.- Returns:
- the value of the
ABSTRACT_GEOMETRY_GROUP_PROPERTY
property.
-
setAbstractGeometryGroup
Sets the value of the property that maps to theAbstractGeometryGroup
element.- Parameters:
aValue
- the value to set for theABSTRACT_GEOMETRY_GROUP_PROPERTY
property.
-
getName
Returns the value of the property that maps to thename
element.- Returns:
- the value of the
NAME_PROPERTY
property.
-
setName
Sets the value of the property that maps to thename
element.- Parameters:
aValue
- the value to set for theNAME_PROPERTY
property.
-
setVisibility
Sets the value of the property that maps to thevisibility
element.- Parameters:
aValue
- the value to set for theVISIBILITY_PROPERTY
property.
-
getOpen
Returns the value of the property that maps to theopen
element.- Returns:
- the value of the
OPEN_PROPERTY
property.
-
setOpen
Sets the value of the property that maps to theopen
element.- Parameters:
aValue
- the value to set for theOPEN_PROPERTY
property.
-
getAuthor
Returns the value of the property that maps to theauthor
element.- Returns:
- the value of the
AUTHOR_PROPERTY
property.
-
setAuthor
Sets the value of the property that maps to theauthor
element.- Parameters:
aValue
- the value to set for theAUTHOR_PROPERTY
property.
-
getAtomLink
Returns the value of the property that maps to thelink
element.- Returns:
- the value of the
ATOM_LINK_PROPERTY
property.
-
setAtomLink
Sets the value of the property that maps to thelink
element.- Parameters:
aValue
- the value to set for theATOM_LINK_PROPERTY
property.
-
getAddress
Returns the value of the property that maps to theaddress
element.- Returns:
- the value of the
ADDRESS_PROPERTY
property.
-
setAddress
Sets the value of the property that maps to theaddress
element.- Parameters:
aValue
- the value to set for theADDRESS_PROPERTY
property.
-
getAddressDetails
Returns the value of the property that maps to theAddressDetails
element.This container defines the details of the address. Can define multiple addresses including tracking address history
- Returns:
- the value of the
ADDRESS_DETAILS_PROPERTY
property.
-
setAddressDetails
Sets the value of the property that maps to theAddressDetails
element.This container defines the details of the address. Can define multiple addresses including tracking address history
- Parameters:
aValue
- the value to set for theADDRESS_DETAILS_PROPERTY
property.
-
getPhoneNumber
Returns the value of the property that maps to thephoneNumber
element.- Returns:
- the value of the
PHONE_NUMBER_PROPERTY
property.
-
setPhoneNumber
Sets the value of the property that maps to thephoneNumber
element.- Parameters:
aValue
- the value to set for thePHONE_NUMBER_PROPERTY
property.
-
getSnippet
Returns the value of the property that maps to the choice between theSnippet
andsnippet
elements.The possible values for this property are instances of
TLcdKML22Snippet
String
- Returns:
- the value of the
SNIPPET_PROPERTY
property.
-
setSnippet
Sets the value of the property that maps to the choice between theSnippet
andsnippet
elements.The possible values for this property are instances of
TLcdKML22Snippet
String
- Parameters:
aValue
- the value to set for theSNIPPET_PROPERTY
property.
-
getDescription
Returns the value of the property that maps to thedescription
element.- Returns:
- the value of the
DESCRIPTION_PROPERTY
property.
-
setDescription
Sets the value of the property that maps to thedescription
element.- Parameters:
aValue
- the value to set for theDESCRIPTION_PROPERTY
property.
-
getAbstractViewGroup
Returns the value of the property that maps to theAbstractViewGroup
element.- Returns:
- the value of the
ABSTRACT_VIEW_GROUP_PROPERTY
property.
-
setAbstractViewGroup
Sets the value of the property that maps to theAbstractViewGroup
element.- Parameters:
aValue
- the value to set for theABSTRACT_VIEW_GROUP_PROPERTY
property.
-
getAbstractTimePrimitiveGroup
Returns the value of the property that maps to theAbstractTimePrimitiveGroup
element.- Returns:
- the value of the
ABSTRACT_TIME_PRIMITIVE_GROUP_PROPERTY
property.
-
setAbstractTimePrimitiveGroup
Sets the value of the property that maps to theAbstractTimePrimitiveGroup
element.- Parameters:
aValue
- the value to set for theABSTRACT_TIME_PRIMITIVE_GROUP_PROPERTY
property.
-
getStyleUrl
Returns the value of the property that maps to thestyleUrl
element.- Returns:
- the value of the
STYLE_URL_PROPERTY
property.
-
setStyleUrl
Sets the value of the property that maps to thestyleUrl
element.- Parameters:
aValue
- the value to set for theSTYLE_URL_PROPERTY
property.
-
getAbstractStyleSelectorGroup
Returns the value of the property that maps to theAbstractStyleSelectorGroup
element.- Returns:
- the value of the
ABSTRACT_STYLE_SELECTOR_GROUP_PROPERTY
property.
-
getRegion
Returns the value of the property that maps to theRegion
element.- Returns:
- the value of the
REGION_PROPERTY
property.
-
setRegion
Sets the value of the property that maps to theRegion
element.- Parameters:
aValue
- the value to set for theREGION_PROPERTY
property.
-
getExtendedData
Returns the value of the property that maps to the choice between theMetadata
andExtendedData
elements.The possible values for this property are instances of
- Returns:
- the value of the
EXTENDED_DATA_PROPERTY
property.
-
setExtendedData
Sets the value of the property that maps to the choice between theMetadata
andExtendedData
elements.The possible values for this property are instances of
- Parameters:
aValue
- the value to set for theEXTENDED_DATA_PROPERTY
property.
-