|
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.layers.AbstractLayer
gov.nasa.worldwind.layers.CrosshairLayer
public class CrosshairLayer
Renders a crosshair icon in the viewport center or at a specified location.
| Field Summary |
|---|
| Fields inherited from class gov.nasa.worldwind.avlist.AVListImpl |
|---|
changeSupport |
| Constructor Summary | |
|---|---|
CrosshairLayer()
|
|
CrosshairLayer(String iconFilePath)
|
|
| Method Summary | |
|---|---|
protected void |
doRender(DrawContext dc)
|
String |
getIconFilePath()
Returns the layer's current icon file path. |
double |
getIconScale()
Returns the icon scale factor. |
Vec4 |
getLocationCenter()
Get the crosshair location inside the viewport. |
String |
getResizeBehavior()
Returns the crosshair icon's resize behavior. |
double |
getToViewportScale()
Returns the layer's compass-to-viewport scale factor. |
void |
setIconFilePath(String iconFilePath)
Sets the crosshair icon's image location. |
void |
setIconScale(double iconScale)
Sets the scale factor defining the displayed size of the crosshair icon relative to the icon's width and height in its image file. |
void |
setLocationCenter(Vec4 locationCenter)
Set the crosshair location inside the viewport. |
void |
setResizeBehavior(String resizeBehavior)
Sets the behavior the layer uses to size the crosshair icon when the viewport size changes, typically when the World Wind window is resized. |
void |
setToViewportScale(double toViewportScale)
Sets the scale factor applied to the viewport size to determine the displayed size of the crosshair icon. |
String |
toString()
|
| Methods inherited from class gov.nasa.worldwind.layers.AbstractLayer |
|---|
dispose, doPick, doPreRender, getMaxActiveAltitude, getMinActiveAltitude, getName, getOpacity, getRestorableState, getScale, isAtMaxResolution, isEnabled, isLayerActive, isLayerInView, isMultiResolution, isNetworkRetrievalEnabled, isPickEnabled, pick, preRender, render, restoreState, setEnabled, setMaxActiveAltitude, setMinActiveAltitude, setName, setNetworkRetrievalEnabled, setOpacity, setPickEnabled |
| Methods inherited from class gov.nasa.worldwind.WWObjectImpl |
|---|
propertyChange |
| Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl |
|---|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, 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, wait, wait, wait |
| 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 |
| Constructor Detail |
|---|
public CrosshairLayer()
public CrosshairLayer(String iconFilePath)
| Method Detail |
|---|
protected void doRender(DrawContext dc)
doRender in class AbstractLayerpublic String getIconFilePath()
public double getIconScale()
setIconScale(double) for a description of the scale factor.
public Vec4 getLocationCenter()
public String getResizeBehavior()
public double getToViewportScale()
public void setIconFilePath(String iconFilePath)
iconFilePath - the path to the icon's image filepublic void setIconScale(double iconScale)
setToViewportScale(double) and the current viewport size.
iconScale - the icon scale factorpublic void setLocationCenter(Vec4 locationCenter)
locationCenter - the crosshair location inside the viewport.public void setResizeBehavior(String resizeBehavior)
resizeBehavior - the desired resize behaviorpublic void setToViewportScale(double toViewportScale)
toViewportScale - the compass to viewport scale factorpublic String toString()
toString in class AbstractLayer
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||