public class KMLScreenImageImpl extends ScreenImage implements KMLRenderable
ScreenImage.OrderedImage
Modifier and Type | Field and Description |
---|---|
protected long |
iconRetrievalTime
Indicates the time at which the image source was specified.
|
protected static int |
KML_MAINTAIN_ASPECT_RATIO
Size value that KML uses to indicate that the image aspect ration should be maintained.
|
protected static int |
KML_NATIVE_DIMENSION
Size value that KML uses to indicate that the native image dimension should be maintained.
|
protected KMLScreenOverlay |
parent |
awtScreenLocation, color, delegateOwner, dx, dy, frameNumber, height, imageOffset, imageSource, opacity, orderedImage, originalImageHeight, originalImageWidth, pickLayer, pickSupport, rotation, rotationOffset, rotationPoint, screenLocation, screenOffset, size, texture, width
FORMAT_NOT_SUPPORTED, FORMAT_PARTIALLY_SUPPORTED, FORMAT_SUPPORTED
Constructor and Description |
---|
KMLScreenImageImpl(KMLTraversalContext tc,
KMLScreenOverlay overlay)
Create an screen image.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getSizeMode(java.lang.Double size)
Get the size mode for a size parameter.
|
protected BasicWWTexture |
initializeTexture()
Create and initialize the texture from the image source.
|
protected boolean |
mustResolveHref()
Indicates whether or not the image source needs to be resolved.
|
void |
preRender(KMLTraversalContext tc,
DrawContext dc)
Pre-render this element.
|
void |
render(KMLTraversalContext tc,
DrawContext dc)
Render this element.
|
protected java.lang.String |
resolveHref()
Resolve the HREF in this overlay's Icon element against the KML root.
|
computeOffsets, doRender, draw, export, exportAsKML, getColor, getDelegateOwner, getImageHeight, getImageOffset, getImageSource, getImageWidth, getOpacity, getRotation, getRotationOffset, getScreenLocation, getScreenLocation, getScreenOffset, getSize, getTexture, isExportFormatSupported, pick, render, setColor, setDelegateOwner, setImageOffset, setImageSource, setOpacity, setRotation, setRotationOffset, setScreenLocation, setScreenOffset, setSize
onMessage, propertyChange
addPropertyChangeListener, 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, setValues
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onMessage
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
protected long iconRetrievalTime
protected static final int KML_MAINTAIN_ASPECT_RATIO
protected static final int KML_NATIVE_DIMENSION
protected final KMLScreenOverlay parent
public KMLScreenImageImpl(KMLTraversalContext tc, KMLScreenOverlay overlay)
tc
- the current KMLTraversalContext
.overlay
- the Overlay element containing.java.lang.NullPointerException
- if the traversal context is null.java.lang.IllegalArgumentException
- if the parent overlay or the traversal context is null.protected java.lang.String getSizeMode(java.lang.Double size)
size
- The KML size attributeSize.NATIVE_DIMENSION
, Size.MAINTAIN_ASPECT_RATIO
,
or Size.EXPLICIT_DIMENSION
.protected BasicWWTexture initializeTexture()
initializeTexture
in class ScreenImage
protected boolean mustResolveHref()
public void preRender(KMLTraversalContext tc, DrawContext dc)
preRender
in interface KMLRenderable
tc
- the current KML traversal context.dc
- the current draw context.public void render(KMLTraversalContext tc, DrawContext dc)
render
in interface KMLRenderable
tc
- the current KML traversal context.dc
- the current draw context.protected java.lang.String resolveHref()