|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.render.ScreenImage
public class ScreenImage
Draws an image parallel to the screen at a specified screen location relative to the World Window.
| Field Summary | |
|---|---|
protected BasicWWTexture |
texture
|
| Constructor Summary | |
|---|---|
ScreenImage()
|
|
| Method Summary | |
|---|---|
protected void |
doRender(DrawContext dc)
|
Layer |
getClientLayer()
Returns the layer to be associated with the screen image when the image is picked. |
int |
getImageHeight(DrawContext dc)
Returns the height of the source image, or null if no source image has been specified. |
java.lang.Object |
getImageSource()
Returns the current image source. |
int |
getImageWidth(DrawContext dc)
Returns the width of the source image, or 0 if no source image has been specified. |
double |
getOpacity()
Returns the opacity of the surface. |
java.awt.Point |
getScreenLocation()
Returns the location of the image on the screen. |
protected BasicWWTexture |
getTexture()
|
void |
pick(DrawContext dc,
java.awt.Point pickPoint)
|
void |
render(DrawContext dc)
Causes this Renderable to render itself using the DrawContext provided. |
void |
setClientLayer(Layer client)
Specifies the layer to be associated with the screen image when the image is picked. |
void |
setImageSource(java.lang.Object imageSource)
Specifies the image source, which may be either a file path Stringor a BufferedImage. |
void |
setOpacity(double opacity)
Sets the opacity of the surface. |
void |
setScreenLocation(java.awt.Point screenLocation)
Specifies the location of the image on the screen. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected BasicWWTexture texture
| Constructor Detail |
|---|
public ScreenImage()
| Method Detail |
|---|
protected void doRender(DrawContext dc)
public Layer getClientLayer()
public int getImageHeight(DrawContext dc)
dc - the current draw context.
public java.lang.Object getImageSource()
getImageSource()public int getImageWidth(DrawContext dc)
dc - the current draw context.
public double getOpacity()
public java.awt.Point getScreenLocation()
protected BasicWWTexture getTexture()
public void pick(DrawContext dc,
java.awt.Point pickPoint)
pick in interface Pickablepublic void render(DrawContext dc)
RenderableRenderable to render itself using the DrawContext provided. The
DrawContext provides the elevation model, openGl instance, globe and other information required for
drawing. It is recommended that the DrawContext is non-null as most implementations do not support
null DrawContexts.
render in interface Renderabledc - the DrawContext to be usedDrawContextpublic void setClientLayer(Layer client)
client - the layer to associate with the screen image when the image is picked. May be null.public void setImageSource(java.lang.Object imageSource)
Stringor a BufferedImage.
imageSource - the image source, either a file path Stringor a BufferedImage.
java.lang.IllegalArgumentException - if the imageSource is null.public void setOpacity(double opacity)
opacity - a positive value indicating the opacity of the surface.
java.lang.IllegalArgumentException - if the specified opacity is less than zero.public void setScreenLocation(java.awt.Point screenLocation)
screenLocation - the screen location on which to center the image. May be null, in which case the image is
not displayed.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||