|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.WWObjectImpl
gov.nasa.worldwind.render.ScreenImage
gov.nasa.worldwind.ogc.kml.impl.KMLScreenImageImpl
public class KMLScreenImageImpl
Implements at KML ScreenOverlay element.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class gov.nasa.worldwind.render.ScreenImage |
|---|
ScreenImage.OrderedImage |
| Field Summary | |
|---|---|
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
|
| Fields inherited from class gov.nasa.worldwind.render.ScreenImage |
|---|
awtScreenLocation, color, delegateOwner, dx, dy, frameNumber, height, imageOffset, imageSource, opacity, orderedImage, originalImageHeight, originalImageWidth, pickLayer, pickSupport, rotation, rotationOffset, rotationPoint, screenLocation, screenOffset, size, texture, width |
| Fields inherited from interface gov.nasa.worldwind.Exportable |
|---|
FORMAT_NOT_SUPPORTED, FORMAT_PARTIALLY_SUPPORTED, FORMAT_SUPPORTED |
| Constructor Summary | |
|---|---|
KMLScreenImageImpl(KMLTraversalContext tc,
KMLScreenOverlay overlay)
Create an screen image. |
|
| Method Summary | |
|---|---|
protected String |
getSizeMode(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 String |
resolveHref()
Resolve the HREF in this overlay's Icon element against the KML root. |
| Methods inherited from class gov.nasa.worldwind.render.ScreenImage |
|---|
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 |
| Methods inherited from class gov.nasa.worldwind.WWObjectImpl |
|---|
onMessage, propertyChange |
| Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface gov.nasa.worldwind.event.MessageListener |
|---|
onMessage |
| Methods inherited from interface gov.nasa.worldwind.avlist.AVList |
|---|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
| Field Detail |
|---|
protected long iconRetrievalTime
protected static final int KML_MAINTAIN_ASPECT_RATIO
protected static final int KML_NATIVE_DIMENSION
protected final KMLScreenOverlay parent
| Constructor Detail |
|---|
public KMLScreenImageImpl(KMLTraversalContext tc,
KMLScreenOverlay overlay)
tc - the current KMLTraversalContext.overlay - the Overlay element containing.
NullPointerException - if the traversal context is null.
IllegalArgumentException - if the parent overlay or the traversal context is null.| Method Detail |
|---|
protected String getSizeMode(Double size)
size - The KML size attribute
Size.NATIVE_DIMENSION, Size.MAINTAIN_ASPECT_RATIO,
or Size.EXPLICIT_DIMENSION.protected BasicWWTexture initializeTexture()
initializeTexture in class ScreenImageprotected boolean mustResolveHref()
public void preRender(KMLTraversalContext tc,
DrawContext dc)
preRender in interface KMLRenderabletc - the current KML traversal context.dc - the current draw context.
public void render(KMLTraversalContext tc,
DrawContext dc)
render in interface KMLRenderabletc - the current KML traversal context.dc - the current draw context.protected String resolveHref()
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||