public class KMLPointPlacemarkImpl extends PointPlacemark implements KMLRenderable
PointPlacemark.LODSelector, PointPlacemark.OrderedPlacemark| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_LABEL_SCALE_THRESHOLD |
protected boolean |
highlightAttributesResolved |
protected long |
highlightIconRetrievalTime
Indicates the time at which the highlight image source was specified.
|
protected long |
iconRetrievalTime
Indicates the time at which the image source was specified.
|
protected double |
labelScaleThreshold
Placemark labels with a scale less than this threshold will only be drawn when the placemark is highlighted.
|
protected boolean |
normalAttributesResolved |
protected KMLPlacemark |
parent |
activeAttributes, activeTexture, altitudeMode, alwaysOnTop, applyVerticalExaggeration, clipToHorizon, DEFAULT_HIGHLIGHT_SCALE, DEFAULT_LABEL_OFFSET_IF_UNSPECIFIED, DEFAULT_POINT_SIZE, defaultAttributes, delegateOwner, dragEnabled, draggableSupport, dx, dy, enableBatchPicking, enableBatchRendering, enableDecluttering, enableLabelPicking, eyeDistance, frameNumber, highlightAttrs, highlighted, labelText, lineEnabled, linePickWidth, LODSelector, normalAttrs, PICK_Y_OFFSET, PICK_Y_SIZE_DELTA, pickLayer, pickSupport, placePoint, position, screenPoint, terrainPoint, textures, TRANSPARENT_IMAGE_ADDRESS, visibleFORMAT_NOT_SUPPORTED, FORMAT_PARTIALLY_SUPPORTED, FORMAT_SUPPORTED| Constructor and Description |
|---|
KMLPointPlacemarkImpl(KMLTraversalContext tc,
KMLPlacemark placemark,
KMLAbstractGeometry geom)
Create an instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected PointPlacemarkAttributes |
assembleLabelAttributes(PointPlacemarkAttributes attrs,
KMLLabelStyle style) |
protected PointPlacemarkAttributes |
assembleLineAttributes(PointPlacemarkAttributes attrs,
KMLLineStyle style) |
protected PointPlacemarkAttributes |
assemblePointAttributes(PointPlacemarkAttributes attrs,
KMLIconStyle style) |
protected PickedObject |
createPickedObject(DrawContext dc,
java.awt.Color pickColor)
Create a
PickedObject for this placemark. |
protected void |
determineActiveAttributes()
Determines which attributes -- normal, highlight or default -- to use each frame.
|
protected PointPlacemarkAttributes |
getInitialAttributes(java.lang.String attrType)
Get the initial attributes for this feature.
|
double |
getLabelScaleThreshold()
Get the label scale threshold.
|
protected WWTexture |
initializeTexture(java.lang.String address)
Load a texture.
|
protected PointPlacemarkAttributes |
makeAttributesCurrent(java.lang.String attrType)
Determine and set the
PointPlacemark attributes from the KML Feature fields. |
protected boolean |
mustDrawLabel()
Draw the label if the label scale is greater than the label scale threshold, if the image scale is zero (only the
text is rendered, there is no image), or if the placemark is highlighted.
|
protected boolean |
mustRefreshIcon()
Indicates whether or not the icon resource has expired.
|
void |
onMessage(Message message)
Empty implementation of MessageListener.
|
void |
preRender(KMLTraversalContext tc,
DrawContext dc)
Pre-render this element.
|
void |
render(KMLTraversalContext tc,
DrawContext dc)
Render this element.
|
void |
setLabelScaleThreshold(double labelScaleThreshold)
Set the label scale threshold.
|
beginDrawing, chooseTexture, computeImageBounds, computeImageOffset, computeLabelPoint, computePlacemarkPoints, doDrag, doDrawOrderedRenderable, drag, drawBatched, drawLabel, drawLine, drawOrderedRenderable, drawPoint, endDrawing, export, exportAsKML, getActiveAttributes, getAltitudeMode, getAttributes, getDefaultAttributes, getDelegateOwner, getDistanceFromEye, getHighlightAttributes, getLabelBounds, getLabelText, getLinePickWidth, getLODSelector, getPosition, getReferencePosition, intersectsFrustum, isAlwaysOnTop, isApplyVerticalExaggeration, isClipToHorizon, isDragEnabled, isDrawLine, isDrawPoint, isEnableBatchPicking, isEnableBatchRendering, isEnableDecluttering, isEnableLabelPicking, isExportFormatSupported, isHighlighted, isLineEnabled, isVisible, makeOrderedRenderable, move, moveTo, pick, render, setAltitudeMode, setAlwaysOnTop, setApplyVerticalExaggeration, setAttributes, setClipToHorizon, setDelegateOwner, setDragEnabled, setEnableBatchPicking, setEnableBatchRendering, setEnableDecluttering, setEnableLabelPicking, setHighlightAttributes, setHighlighted, setLabelText, setLineColor, setLineEnabled, setLinePickWidth, setLineWidth, setLODSelector, setPointSize, setPosition, setVisiblepropertyChangeaddPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValuespublic static final double DEFAULT_LABEL_SCALE_THRESHOLD
protected boolean highlightAttributesResolved
protected long highlightIconRetrievalTime
protected long iconRetrievalTime
protected double labelScaleThreshold
protected boolean normalAttributesResolved
protected final KMLPlacemark parent
public KMLPointPlacemarkImpl(KMLTraversalContext tc, KMLPlacemark placemark, KMLAbstractGeometry geom)
tc - the current KMLTraversalContext.placemark - the Placemark element containing the Point.geom - the KMLPoint geometry.java.lang.NullPointerException - if the geometry is null.java.lang.IllegalArgumentException - if the parent placemark or the traversal context is null.protected PointPlacemarkAttributes assembleLabelAttributes(PointPlacemarkAttributes attrs, KMLLabelStyle style)
protected PointPlacemarkAttributes assembleLineAttributes(PointPlacemarkAttributes attrs, KMLLineStyle style)
protected PointPlacemarkAttributes assemblePointAttributes(PointPlacemarkAttributes attrs, KMLIconStyle style)
protected PickedObject createPickedObject(DrawContext dc, java.awt.Color pickColor)
PickedObject for this placemark. The PickedObject returned by this method will be added to the
pick list to represent the current placemark.createPickedObject in class PointPlacemarkdc - Active draw context.pickColor - Unique color for this PickedObject.protected void determineActiveAttributes()
PointPlacemarkdetermineActiveAttributes in class PointPlacemarkprotected PointPlacemarkAttributes getInitialAttributes(java.lang.String attrType)
attrType - KMLConstants.NORMAL or KMLConstants.HIGHLIGHT.public double getLabelScaleThreshold()
setLabelScaleThreshold(double)protected WWTexture initializeTexture(java.lang.String address)
initializeTexture in class PointPlacemarkaddress - Path or URL to the image to load into a texture.protected PointPlacemarkAttributes makeAttributesCurrent(java.lang.String attrType)
PointPlacemark attributes from the KML Feature fields.attrType - the type of attributes, either KMLConstants.NORMAL or KMLConstants.HIGHLIGHT.protected boolean mustDrawLabel()
mustDrawLabel in class PointPlacemarkprotected boolean mustRefreshIcon()
public void onMessage(Message message)
WWObjectImplonMessage in interface MessageListeneronMessage in class WWObjectImplmessage - The message that was received.public void preRender(KMLTraversalContext tc, DrawContext dc)
KMLRenderablepreRender in interface KMLRenderabletc - the current KML traversal context.dc - the current draw context.public void render(KMLTraversalContext tc, DrawContext dc)
KMLRenderablerender in interface KMLRenderabletc - the current KML traversal context.dc - the current draw context.public void setLabelScaleThreshold(double labelScaleThreshold)
labelScaleThreshold - New label scale threshold.getLabelScaleThreshold()