public class KMLPlacemark extends KMLAbstractFeature
Modifier and Type | Field and Description |
---|---|
protected KMLAbstractGeometry |
geometry |
protected java.util.List<KMLRenderable> |
renderables |
balloon, region, styleSelectors, visibility
MSG_BOX_CHANGED, MSG_GEOMETRY_CHANGED, MSG_LINK_CHANGED, MSG_STYLE_CHANGED, MSG_TIME_CHANGED, MSG_VIEW_CHANGED
CHARACTERS_CONTENT, fields, namespaceURI, parent
Constructor and Description |
---|
KMLPlacemark(java.lang.String namespaceURI)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addRenderable(KMLRenderable r) |
void |
applyChange(KMLAbstractObject sourceValues) |
protected void |
doAddEventContent(java.lang.Object o,
XMLEventParserContext ctx,
javax.xml.stream.events.XMLEvent event,
java.lang.Object... args) |
protected void |
doPreRender(KMLTraversalContext tc,
DrawContext dc)
Pre-renders the placemark geometry represented by this
KMLPlacemark . |
protected void |
doRender(KMLTraversalContext tc,
DrawContext dc)
Renders the placemark geometry represented by this
KMLGroundOverlay . |
KMLAbstractGeometry |
getGeometry()
Returns the placemark's geometry element.
|
java.util.List<KMLRenderable> |
getRenderables()
Returns the
KMLRenderable s of this placemark. |
KMLSimpleData |
getSimpleData() |
protected void |
initializeGeometry(KMLTraversalContext tc,
KMLAbstractGeometry geom) |
protected boolean |
isValidAltitudeMode(java.lang.String altMode)
Indicates whether or not an altitude mode equals one of the altitude modes defined in the KML specification.
|
void |
onChange(Message msg) |
protected KMLRenderable |
selectLinearRingRenderable(KMLTraversalContext tc,
KMLAbstractGeometry geom) |
protected KMLRenderable |
selectLineStringRenderable(KMLTraversalContext tc,
KMLAbstractGeometry geom) |
protected KMLRenderable |
selectModelRenderable(KMLTraversalContext tc,
KMLAbstractGeometry geom) |
protected KMLRenderable |
selectPointRenderable(KMLTraversalContext tc,
KMLAbstractGeometry geom) |
protected KMLRenderable |
selectPolygonRenderable(KMLTraversalContext tc,
KMLAbstractGeometry geom) |
protected void |
setGeometry(KMLAbstractGeometry geometry) |
addStyleSelector, getAddress, getAddressDetails, getAuthor, getBalloon, getDescription, getExtendedData, getLink, getName, getOpen, getPhoneNumber, getRegion, getSnippet, getSnippetText, getStyleSelectors, getStyleUrl, getSubStyle, getTimePrimitive, getView, getVisibility, hasStyle, hasStyleSelectors, isFeatureActive, mergeStyleSelectors, preRender, render, renderBalloon, setBalloon, setRegion, setTimePrimitive, setView, setVisibility
getId, getRoot, getTargetId, onMessage
allocate, doAddCharacters, doAddEventAttribute, doParseEventAttributes, doParseEventContent, freeResources, getAConstructor, getCharacters, getField, getField, getFields, getNamespaceURI, getParent, hasField, hasField, hasFields, mergeFields, newInstance, overrideFields, parse, parseCharacterContent, removeField, setField, setField, setFields, setNamespaceURI, setParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onMessage
protected KMLAbstractGeometry geometry
protected java.util.List<KMLRenderable> renderables
public KMLPlacemark(java.lang.String namespaceURI)
namespaceURI
- the qualifying namespace URI. May be null to indicate no namespace qualification.protected void addRenderable(KMLRenderable r)
public void applyChange(KMLAbstractObject sourceValues)
applyChange
in class KMLAbstractFeature
protected void doAddEventContent(java.lang.Object o, XMLEventParserContext ctx, javax.xml.stream.events.XMLEvent event, java.lang.Object... args) throws javax.xml.stream.XMLStreamException
doAddEventContent
in class KMLAbstractFeature
javax.xml.stream.XMLStreamException
protected void doPreRender(KMLTraversalContext tc, DrawContext dc)
KMLPlacemark
. This initializes the placemark
geometry if necessary, prior to pre-rendering.doPreRender
in class KMLAbstractFeature
tc
- the current KML traversal context.dc
- the current draw context.protected void doRender(KMLTraversalContext tc, DrawContext dc)
KMLGroundOverlay
.doRender
in class KMLAbstractFeature
tc
- the current KML traversal context.dc
- the current draw context.public KMLAbstractGeometry getGeometry()
public java.util.List<KMLRenderable> getRenderables()
KMLRenderable
s of this placemark.public KMLSimpleData getSimpleData()
protected void initializeGeometry(KMLTraversalContext tc, KMLAbstractGeometry geom)
protected boolean isValidAltitudeMode(java.lang.String altMode)
altMode
- Altitude mode test.altMode
is one of "clampToGround", "relativeToGround", or "absolute".public void onChange(Message msg)
onChange
in class KMLAbstractObject
protected KMLRenderable selectLinearRingRenderable(KMLTraversalContext tc, KMLAbstractGeometry geom)
protected KMLRenderable selectLineStringRenderable(KMLTraversalContext tc, KMLAbstractGeometry geom)
protected KMLRenderable selectModelRenderable(KMLTraversalContext tc, KMLAbstractGeometry geom)
protected KMLRenderable selectPointRenderable(KMLTraversalContext tc, KMLAbstractGeometry geom)
protected KMLRenderable selectPolygonRenderable(KMLTraversalContext tc, KMLAbstractGeometry geom)
protected void setGeometry(KMLAbstractGeometry geometry)