|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Layer
| Method Summary | |
|---|---|
String |
getName()
Returns the layer's name, as specified in the most recent call to setName(java.lang.String). |
double |
getOpacity()
Returns the layer's opacity, the degree to which it is blended with underlying layers. |
double |
getScale()
Returns the map scale, in terms of the ratio of 1 to the value returned, e.g., 1:24000. |
boolean |
isAtMaxResolution()
Indicates whether the most recent rendering of the layer rendered the highest resolution imagery or other data available. |
boolean |
isEnabled()
Indicates whether the layer is enabled for rendering and selection. |
boolean |
isMultiResolution()
Indicates whether the layer provides multiple resolutions of imagery or other data. |
boolean |
isNetworkRetrievalEnabled()
Indicates whether the layer is allowed to retrieve data from the network. |
boolean |
isPickEnabled()
Indicates whether the layer performs selection during picking. |
void |
pick(DrawContext dc,
Point pickPoint)
Cause the layer to perform picking, which determines whether the object or its components intersect a given point on the screen. |
void |
preRender(DrawContext dc)
|
void |
render(DrawContext dc)
Cause the layer to draw its representation. |
void |
setEnabled(boolean enabled)
Controls whether the layer is enabled for rendering and selection. |
void |
setName(String name)
Set the layer's name. |
void |
setNetworkRetrievalEnabled(boolean networkRetrievalEnabled)
Controls whether the layer is allowed to retrieve data from the network. |
void |
setOpacity(double opacity)
Sets the layer's opacity, the degree to which it is blended with underlying layers. |
void |
setPickEnabled(boolean isPickable)
Controls whether the layer should perform picking. |
| 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 |
| Methods inherited from interface java.beans.PropertyChangeListener |
|---|
propertyChange |
| Methods inherited from interface gov.nasa.worldwind.Disposable |
|---|
dispose |
| Methods inherited from interface gov.nasa.worldwind.Restorable |
|---|
getRestorableState, restoreState |
| Method Detail |
|---|
String getName()
setName(java.lang.String).
double getOpacity()
double getScale()
boolean isAtMaxResolution()
true.
Typically such layers also return false from isMultiResolution().
true if the layer is at maximum resolution, otherwise false.boolean isEnabled()
boolean isMultiResolution()
true if the layer provides multiple resolutions, else false.boolean isNetworkRetrievalEnabled()
true if the layer is enabled to retrieve network data, else false.boolean isPickEnabled()
true if picking is enabled, else false.
void pick(DrawContext dc,
Point pickPoint)
WorldWindow.getObjectsAtCurrentPosition().
dc - the current draw context for rendering.pickPoint - the screen coordinate pointSelectEventvoid preRender(DrawContext dc)
void render(DrawContext dc)
dc - the current draw context for rendering.void setEnabled(boolean enabled)
enabled - true if the layer is enabled, else false.void setName(String name)
name - the name to assign to the layer.void setNetworkRetrievalEnabled(boolean networkRetrievalEnabled)
networkRetrievalEnabled - true if network retrieval is allowed, else false.void setOpacity(double opacity)
opacity - The layer opacity, a value between 0 and 1. 0 indicates non-opaque (fully transparent), 1
indicates fully opaque. Values between 0 and 1 indicate partial opacity.void setPickEnabled(boolean isPickable)
isPickable - true if the layer should perform picking, else false.
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||