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
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyData property that maps to theAbstractFeatureObjectExtensionGroupelement.static final TLcdDataPropertyData property that maps to theAbstractFeatureSimpleExtensionGroupelement.static final TLcdDataPropertyData property that maps to theAbstractGeometryGroupelement.static final TLcdDataPropertyData property that maps to theAbstractStyleSelectorGroupelement.static final TLcdDataPropertyData property that maps to theAbstractTimePrimitiveGroupelement.static final TLcdDataPropertyData property that maps to theAbstractViewGroupelement.static final TLcdDataPropertyData property that maps to theAddressDetailselement.static final TLcdDataPropertyData property that maps to theaddresselement.static final TLcdDataPropertyData property that maps to thelinkelement.static final TLcdDataPropertyData property that maps to theauthorelement.static final TLcdDataPropertyData property that maps to thedescriptionelement.static final TLcdDataPropertyData property that maps to the choice between theMetadataandExtendedDataelements.static final TLcdDataPropertyData property that maps to thenameelement.static final TLcdDataPropertyData property that maps to theopenelement.static final TLcdDataPropertyData property that maps to thephoneNumberelement.static final TLcdDataPropertyData property that maps to thePlacemarkObjectExtensionGroupelement.static final TLcdDataPropertyData property that maps to thePlacemarkSimpleExtensionGroupelement.static final TLcdDataPropertyData property that maps to theRegionelement.static final TLcdDataPropertyData property that maps to the choice between theSnippetandsnippetelements.static final TLcdDataPropertyData property that maps to thestyleUrlelement.static final TLcdDataPropertyData property that maps to thevisibilityelement.Fields inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
ID_PROPERTY, OBJECT_SIMPLE_EXTENSION_GROUP_PROPERTY, TARGET_ID_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionTLcdKML22Placemark(TLcdDataType aType) Creates a newTLcdKML22Placemarkwith a customTLcdDataType. -
Method Summary
Modifier and TypeMethodDescriptionvoidInserts the specified shape at the specified position in thisILcdShapeList.voidAppends the specified shape to the end of thisILcdShapeList.voidAppends the specified array of shapes to the end of thisILcdShapeList.voidRemoves all of the shapes from thisILcdShapeList.clone()Returns a deep clone of this object.Returns a deep clone of this object.booleancontains2D(double aX, double aY) Checks whether thisILcdShapecontains the given point in the 2D space.booleancontains2D(ILcdPoint aPoint) Checks whether thisILcdShapecontains the givenILcdPointin the 2D space.booleancontains3D(double aX, double aY, double aZ) Checks whether thisILcdShapecontains the given point in the 3D space.booleancontains3D(ILcdPoint aPoint) Checks whether thisILcdShapecontains the givenILcdPointin the 3D space.Returns the value of the property that maps to theAbstractGeometryGroupelement.Returns the value of the property that maps to theAbstractStyleSelectorGroupelement.Returns the value of the property that maps to theAbstractTimePrimitiveGroupelement.Returns the value of the property that maps to theAbstractViewGroupelement.Returns the value of the property that maps to theaddresselement.Returns the value of the property that maps to theAddressDetailselement.Returns the value of the property that maps to thelinkelement.Returns the value of the property that maps to theauthorelement.Returns theILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.Returns the value of the property that maps to thedescriptionelement.Returns the value of the property that maps to the choice between theMetadataandExtendedDataelements.Returns the focus point of thisILcdShape.getName()Returns the value of the property that maps to thenameelement.getOpen()Returns the value of the property that maps to theopenelement.Returns the value of the property that maps to thephoneNumberelement.Returns the value of the property that maps to theRegionelement.getShape(int aIndex) Returns theILcdShapeat the given index.intReturns the number ofILcdShapeobjects in the list.Returns the value of the property that maps to the choice between theSnippetandsnippetelements.Returns the value of the property that maps to thestyleUrlelement.removeShape(int aIndex) Removes the shape at the specified position in thisILcdShapeList.booleanremoveShape(ILcdShape aShape) Removes the first occurrence of the specified shape in thisILcdShapeList.voidremoveShapes(ILcdShape[] aShapes) Removes all shapes from thisILcdShapeListthat are contained in the specified array of shapes.voidSets the value of the property that maps to theAbstractGeometryGroupelement.voidSets the value of the property that maps to theAbstractTimePrimitiveGroupelement.voidSets the value of the property that maps to theAbstractViewGroupelement.voidsetAddress(String aValue) Sets the value of the property that maps to theaddresselement.voidsetAddressDetails(ILcdDataObject aValue) Sets the value of the property that maps to theAddressDetailselement.voidsetAtomLink(ILcdDataObject aValue) Sets the value of the property that maps to thelinkelement.voidsetAuthor(ILcdDataObject aValue) Sets the value of the property that maps to theauthorelement.voidsetDescription(String aValue) Sets the value of the property that maps to thedescriptionelement.voidsetExtendedData(ILcdDataObject aValue) Sets the value of the property that maps to the choice between theMetadataandExtendedDataelements.voidSets the value of the property that maps to thenameelement.voidSets the value of the property that maps to theopenelement.voidsetPhoneNumber(String aValue) Sets the value of the property that maps to thephoneNumberelement.voidsetRegion(TLcdKML22Region aValue) Sets the value of the property that maps to theRegionelement.Replaces the shape at the specified position in thisILcdShapeListwith the specified shape.voidReplace the list of shapes contained in thisILcdShapeListwith the specified array of shapes.voidsetSnippet(TLcdKML22Snippet aValue) Sets the value of the property that maps to the choice between theSnippetandsnippetelements.voidsetStyleUrl(String aValue) Sets the value of the property that maps to thestyleUrlelement.voidsetVisibility(Boolean aValue) Sets the value of the property that maps to thevisibilityelement.voidshapeChanged(int aIndex) Notifies thisILcdShapeListthat the shape at the specified position has changed.voidshapeChanged(ILcdShape aShape) Notifies thisILcdShapeListthat the specified shape has changed.voidNotifies thisILcdShapeListthat 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, setKMLSourceNameMethods inherited from class com.luciad.format.kml22.model.TLcdKML22AbstractObject
getId, getTargetId, setId, setTargetIdMethods 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 theAbstractGeometryGroupelement. The possible values for this property are instances ofTLcdKML22AbstractGeometry. -
PLACEMARK_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to thePlacemarkSimpleExtensionGroupelement. The possible values for this property are instances ofList<String>. -
PLACEMARK_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to thePlacemarkObjectExtensionGroupelement. The possible values for this property are instances ofList<TLcdKML22AbstractObject>. -
NAME_PROPERTY
Data property that maps to thenameelement. The possible values for this property are instances ofString. -
VISIBILITY_PROPERTY
Data property that maps to thevisibilityelement. The possible values for this property are instances ofBoolean. -
OPEN_PROPERTY
Data property that maps to theopenelement. The possible values for this property are instances ofBoolean. -
AUTHOR_PROPERTY
Data property that maps to theauthorelement. The possible values for this property are instances ofILcdDataObject. -
ATOM_LINK_PROPERTY
Data property that maps to thelinkelement. The possible values for this property are instances ofILcdDataObject. -
ADDRESS_PROPERTY
Data property that maps to theaddresselement. The possible values for this property are instances ofString. -
ADDRESS_DETAILS_PROPERTY
Data property that maps to theAddressDetailselement. The possible values for this property are instances ofILcdDataObject. -
PHONE_NUMBER_PROPERTY
Data property that maps to thephoneNumberelement. The possible values for this property are instances ofString. -
SNIPPET_PROPERTY
Data property that maps to the choice between theSnippetandsnippetelements. The possible values for this property are instances ofTLcdKML22SnippetString
-
DESCRIPTION_PROPERTY
Data property that maps to thedescriptionelement. The possible values for this property are instances ofString. -
ABSTRACT_VIEW_GROUP_PROPERTY
Data property that maps to theAbstractViewGroupelement. The possible values for this property are instances ofTLcdKML22AbstractView. -
ABSTRACT_TIME_PRIMITIVE_GROUP_PROPERTY
Data property that maps to theAbstractTimePrimitiveGroupelement. The possible values for this property are instances ofTLcdKML22AbstractTimePrimitive. -
STYLE_URL_PROPERTY
Data property that maps to thestyleUrlelement. The possible values for this property are instances ofString. -
ABSTRACT_STYLE_SELECTOR_GROUP_PROPERTY
Data property that maps to theAbstractStyleSelectorGroupelement. The possible values for this property are instances ofList<TLcdKML22AbstractStyleSelector>. -
REGION_PROPERTY
Data property that maps to theRegionelement. The possible values for this property are instances ofTLcdKML22Region. -
EXTENDED_DATA_PROPERTY
Data property that maps to the choice between theMetadataandExtendedDataelements. The possible values for this property are instances of -
ABSTRACT_FEATURE_SIMPLE_EXTENSION_GROUP_PROPERTY
Data property that maps to theAbstractFeatureSimpleExtensionGroupelement. The possible values for this property are instances ofList<String>. -
ABSTRACT_FEATURE_OBJECT_EXTENSION_GROUP_PROPERTY
Data property that maps to theAbstractFeatureObjectExtensionGroupelement. The possible values for this property are instances ofList<TLcdKML22AbstractObject>.
-
-
Constructor Details
-
TLcdKML22Placemark
Creates a newTLcdKML22Placemarkwith a customTLcdDataType.- Parameters:
aType- a customTLcdDataType
-
-
Method Details
-
addShape
Description copied from interface:ILcdEditableShapeListInserts the specified shape at the specified position in thisILcdShapeList.- Specified by:
addShapein interfaceILcdEditableShapeList- Parameters:
aIndex- the index at which the shape is to be inserted.aShape- the shape to be inserted.
-
addShape
Description copied from interface:ILcdEditableShapeListAppends the specified shape to the end of thisILcdShapeList.- Specified by:
addShapein interfaceILcdEditableShapeList- Parameters:
aShape- the shape to be appended to thisILcdShapeList.
-
addShapes
Description copied from interface:ILcdEditableShapeListAppends the specified array of shapes to the end of thisILcdShapeList.- Specified by:
addShapesin interfaceILcdEditableShapeList- Parameters:
aShapes- the array of shapes to be appended to thisILcdShapeList.
-
clearShapes
public void clearShapes()Description copied from interface:ILcdEditableShapeListRemoves all of the shapes from thisILcdShapeList.- Specified by:
clearShapesin interfaceILcdEditableShapeList
-
removeShape
Description copied from interface:ILcdEditableShapeListRemoves 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:
removeShapein interfaceILcdEditableShapeList- Parameters:
aIndex- the index of the shape to removed.- Returns:
- the shape previously at the specified position.
-
removeShape
Description copied from interface:ILcdEditableShapeListRemoves the first occurrence of the specified shape in thisILcdShapeList. If thisILcdShapeListdoes not contain the shape, it is unchanged.- Specified by:
removeShapein interfaceILcdEditableShapeList- Parameters:
aShape- the shape to be removed, if present.- Returns:
trueif thisILcdShapeListcontained the specified element.
-
removeShapes
Description copied from interface:ILcdEditableShapeListRemoves all shapes from thisILcdShapeListthat are contained in the specified array of shapes.- Specified by:
removeShapesin interfaceILcdEditableShapeList- Parameters:
aShapes- the array of shapes to be removed from thisILcdShapeList.
-
setShape
Description copied from interface:ILcdEditableShapeListReplaces the shape at the specified position in thisILcdShapeListwith the specified shape.- Specified by:
setShapein 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:ILcdEditableShapeListReplace the list of shapes contained in thisILcdShapeListwith the specified array of shapes.- Specified by:
setShapesin interfaceILcdEditableShapeList- Parameters:
aShapes- the array of shapes to be stored in thisILcdShapeList.
-
shapeChanged
public void shapeChanged(int aIndex) Description copied from interface:ILcdEditableShapeListNotifies thisILcdShapeListthat the shape at the specified position has changed.- Specified by:
shapeChangedin interfaceILcdEditableShapeList- Parameters:
aIndex- the index of the shape that has changed.
-
shapeChanged
Description copied from interface:ILcdEditableShapeListNotifies thisILcdShapeListthat the specified shape has changed.- Specified by:
shapeChangedin interfaceILcdEditableShapeList- Parameters:
aShape- the shape that has changed.
-
shapesChanged
public void shapesChanged()Description copied from interface:ILcdEditableShapeListNotifies thisILcdShapeListthat some (possibly all) of its shapes have changed.- Specified by:
shapesChangedin interfaceILcdEditableShapeList
-
getShapeCount
public int getShapeCount()Description copied from interface:ILcdShapeListReturns the number ofILcdShapeobjects in the list.- Specified by:
getShapeCountin interfaceILcdShapeList- Returns:
- the number of
ILcdShapeobjects in the list.
-
getShape
Description copied from interface:ILcdShapeListReturns theILcdShapeat the given index.- Specified by:
getShapein interfaceILcdShapeList- Parameters:
aIndex- a valid index in the list ofILcdShapeobjects.- Returns:
- the
ILcdShapeat the given index.
-
contains2D
Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the givenILcdPointin the 2D space. Only the first two dimensions of theILcdShapeand theILcdPointare considered.- Specified by:
contains2Din interfaceILcdShape- Parameters:
aPoint- theILcdPointto test.- Returns:
- the boolean result of the containment test.
- See Also:
-
contains3D
Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the givenILcdPointin the 3D space.- Specified by:
contains3Din interfaceILcdShape- Parameters:
aPoint- theILcdPointto 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:ILcdShapeChecks whether thisILcdShapecontains the given point in the 3D space.- Specified by:
contains3Din 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:ILcdShapeChecks whether thisILcdShapecontains the given point in the 2D space. Only the first two dimensions of theILcdShapeare considered.- Specified by:
contains2Din 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:ILcdShapeReturns the focus point of thisILcdShape.- Specified by:
getFocusPointin interfaceILcdShape- Returns:
- the focus point of this
ILcdShape.
-
clone
Description copied from class:TLcdDataObjectReturns a deep clone of this object. This method delegates toTLcdDataObject.clone(Map).- Specified by:
clonein interfaceILcdCloneable- Overrides:
clonein classTLcdDataObject- Returns:
- a deep clone of this object
- See Also:
-
clone
Description copied from class:TLcdDataObjectReturns 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
ILcdDeepCloneableorILcdCloneablethen this interface is used to clone the value. - Otherwise, the property value is copied by reference.
- If the property value is an
- Specified by:
clonein interfaceILcdDeepCloneable- Overrides:
clonein 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:ILcdBoundedReturns theILcdBoundsby which the geometry of thisILcdBoundedobject 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
undefinedbounds. You can create undefined bounds using the default constructors ofTLcdLonLatBoundsorTLcdXYBounds.- Specified by:
getBoundsin interfaceILcdBounded- Returns:
- the
ILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.
-
getAbstractGeometryGroup
Returns the value of the property that maps to theAbstractGeometryGroupelement.- Returns:
- the value of the
ABSTRACT_GEOMETRY_GROUP_PROPERTYproperty.
-
setAbstractGeometryGroup
Sets the value of the property that maps to theAbstractGeometryGroupelement.- Parameters:
aValue- the value to set for theABSTRACT_GEOMETRY_GROUP_PROPERTYproperty.
-
getName
Returns the value of the property that maps to thenameelement.- Returns:
- the value of the
NAME_PROPERTYproperty.
-
setName
Sets the value of the property that maps to thenameelement.- Parameters:
aValue- the value to set for theNAME_PROPERTYproperty.
-
setVisibility
Sets the value of the property that maps to thevisibilityelement.- Parameters:
aValue- the value to set for theVISIBILITY_PROPERTYproperty.
-
getOpen
Returns the value of the property that maps to theopenelement.- Returns:
- the value of the
OPEN_PROPERTYproperty.
-
setOpen
Sets the value of the property that maps to theopenelement.- Parameters:
aValue- the value to set for theOPEN_PROPERTYproperty.
-
getAuthor
Returns the value of the property that maps to theauthorelement.- Returns:
- the value of the
AUTHOR_PROPERTYproperty.
-
setAuthor
Sets the value of the property that maps to theauthorelement.- Parameters:
aValue- the value to set for theAUTHOR_PROPERTYproperty.
-
getAtomLink
Returns the value of the property that maps to thelinkelement.- Returns:
- the value of the
ATOM_LINK_PROPERTYproperty.
-
setAtomLink
Sets the value of the property that maps to thelinkelement.- Parameters:
aValue- the value to set for theATOM_LINK_PROPERTYproperty.
-
getAddress
Returns the value of the property that maps to theaddresselement.- Returns:
- the value of the
ADDRESS_PROPERTYproperty.
-
setAddress
Sets the value of the property that maps to theaddresselement.- Parameters:
aValue- the value to set for theADDRESS_PROPERTYproperty.
-
getAddressDetails
Returns the value of the property that maps to theAddressDetailselement.This container defines the details of the address. Can define multiple addresses including tracking address history
- Returns:
- the value of the
ADDRESS_DETAILS_PROPERTYproperty.
-
setAddressDetails
Sets the value of the property that maps to theAddressDetailselement.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_PROPERTYproperty.
-
getPhoneNumber
Returns the value of the property that maps to thephoneNumberelement.- Returns:
- the value of the
PHONE_NUMBER_PROPERTYproperty.
-
setPhoneNumber
Sets the value of the property that maps to thephoneNumberelement.- Parameters:
aValue- the value to set for thePHONE_NUMBER_PROPERTYproperty.
-
getSnippet
Returns the value of the property that maps to the choice between theSnippetandsnippetelements.The possible values for this property are instances of
TLcdKML22SnippetString
- Returns:
- the value of the
SNIPPET_PROPERTYproperty.
-
setSnippet
Sets the value of the property that maps to the choice between theSnippetandsnippetelements.The possible values for this property are instances of
TLcdKML22SnippetString
- Parameters:
aValue- the value to set for theSNIPPET_PROPERTYproperty.
-
getDescription
Returns the value of the property that maps to thedescriptionelement.- Returns:
- the value of the
DESCRIPTION_PROPERTYproperty.
-
setDescription
Sets the value of the property that maps to thedescriptionelement.- Parameters:
aValue- the value to set for theDESCRIPTION_PROPERTYproperty.
-
getAbstractViewGroup
Returns the value of the property that maps to theAbstractViewGroupelement.- Returns:
- the value of the
ABSTRACT_VIEW_GROUP_PROPERTYproperty.
-
setAbstractViewGroup
Sets the value of the property that maps to theAbstractViewGroupelement.- Parameters:
aValue- the value to set for theABSTRACT_VIEW_GROUP_PROPERTYproperty.
-
getAbstractTimePrimitiveGroup
Returns the value of the property that maps to theAbstractTimePrimitiveGroupelement.- Returns:
- the value of the
ABSTRACT_TIME_PRIMITIVE_GROUP_PROPERTYproperty.
-
setAbstractTimePrimitiveGroup
Sets the value of the property that maps to theAbstractTimePrimitiveGroupelement.- Parameters:
aValue- the value to set for theABSTRACT_TIME_PRIMITIVE_GROUP_PROPERTYproperty.
-
getStyleUrl
Returns the value of the property that maps to thestyleUrlelement.- Returns:
- the value of the
STYLE_URL_PROPERTYproperty.
-
setStyleUrl
Sets the value of the property that maps to thestyleUrlelement.- Parameters:
aValue- the value to set for theSTYLE_URL_PROPERTYproperty.
-
getAbstractStyleSelectorGroup
Returns the value of the property that maps to theAbstractStyleSelectorGroupelement.- Returns:
- the value of the
ABSTRACT_STYLE_SELECTOR_GROUP_PROPERTYproperty.
-
getRegion
Returns the value of the property that maps to theRegionelement.- Returns:
- the value of the
REGION_PROPERTYproperty.
-
setRegion
Sets the value of the property that maps to theRegionelement.- Parameters:
aValue- the value to set for theREGION_PROPERTYproperty.
-
getExtendedData
Returns the value of the property that maps to the choice between theMetadataandExtendedDataelements.The possible values for this property are instances of
- Returns:
- the value of the
EXTENDED_DATA_PROPERTYproperty.
-
setExtendedData
Sets the value of the property that maps to the choice between theMetadataandExtendedDataelements.The possible values for this property are instances of
- Parameters:
aValue- the value to set for theEXTENDED_DATA_PROPERTYproperty.
-