NASA World Wind

gov.nasa.worldwind.layers
Class SkyColorLayer

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.WWObjectImpl
          extended by gov.nasa.worldwind.layers.AbstractLayer
              extended by gov.nasa.worldwind.layers.RenderableLayer
                  extended by gov.nasa.worldwind.layers.SkyColorLayer
All Implemented Interfaces:
AVList, Disposable, Layer, Restorable, WWObject, java.beans.PropertyChangeListener, java.util.EventListener

public class SkyColorLayer
extends RenderableLayer

Paints the sky color background depending on altitude.


Field Summary
 
Fields inherited from class gov.nasa.worldwind.avlist.AVListImpl
changeSupport
 
Constructor Summary
SkyColorLayer()
          Paints the sky color background depending on altitude
SkyColorLayer(java.awt.Color color)
          Paints the sky color background depending on altitude
 
Method Summary
 void doRender(DrawContext dc)
           
 double getFadeBottomAltitude()
          Get the bottom altitude for the fade effect (meters)
 double getFadeTopAltitude()
          Get the top altitude for the fade effect (meters)
 java.awt.Color getSkyColor()
          Get the sky Color
 void setFadeBottomAltitude(double alt)
          Set the bottom altitude for the fade effect (meters)
 void setFadeTopAltitude(double alt)
          Set the top altitude for the fade effect (meters)
 void setSkyColor(java.awt.Color color)
          Set the sky Color
 java.lang.String toString()
           
 
Methods inherited from class gov.nasa.worldwind.layers.RenderableLayer
addRenderable, addRenderables, dispose, doPick, getDelegateOwner, getRenderables, removeAllRenderables, removeRenderable, setRenderables
 
Methods inherited from class gov.nasa.worldwind.layers.AbstractLayer
getMaxActiveAltitude, getMinActiveAltitude, getName, getOpacity, getRestorableState, getScale, isAtMaxResolution, isEnabled, isLayerActive, isLayerInView, isMultiResolution, isPickEnabled, pick, render, restoreState, setEnabled, setMaxActiveAltitude, setMinActiveAltitude, setName, 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

SkyColorLayer

public SkyColorLayer()
Paints the sky color background depending on altitude


SkyColorLayer

public SkyColorLayer(java.awt.Color color)
Paints the sky color background depending on altitude

Parameters:
color - the sky Color
Method Detail

doRender

public void doRender(DrawContext dc)
Overrides:
doRender in class RenderableLayer

getFadeBottomAltitude

public double getFadeBottomAltitude()
Get the bottom altitude for the fade effect (meters)

Returns:
the bottom altitude in meters

getFadeTopAltitude

public double getFadeTopAltitude()
Get the top altitude for the fade effect (meters)

Returns:
the top altitude in meters

getSkyColor

public java.awt.Color getSkyColor()
Get the sky Color

Returns:
the sky color

setFadeBottomAltitude

public void setFadeBottomAltitude(double alt)
Set the bottom altitude for the fade effect (meters)

Parameters:
alt - the bottom altitude in meters

setFadeTopAltitude

public void setFadeTopAltitude(double alt)
Set the top altitude for the fade effect (meters)

Parameters:
alt - the top altitude in meters

setSkyColor

public void setSkyColor(java.awt.Color color)
Set the sky Color

Parameters:
color - the sky color

toString

public java.lang.String toString()
Overrides:
toString in class RenderableLayer

NASA World Wind