NASA World Wind

gov.nasa.worldwind.applications.sar.render
Class ScreenElevationLine

java.lang.Object
  extended by gov.nasa.worldwind.applications.sar.render.ScreenElevationLine
All Implemented Interfaces:
Renderable

public class ScreenElevationLine
extends Object
implements Renderable

Display an horizontal line across the viewport when a plane at a given elevation cuts through the view near plane.


Constructor Summary
ScreenElevationLine()
           
 
Method Summary
 Color getColor()
          Get the line color.
 double getElevation()
          Get the line current elevation.
 boolean isEnabled()
           
 void render(DrawContext dc)
          Causes this Renderable to render itself using the provided draw context.
 void setColor(Color color)
          Set the line color.
 void setElevation(double elevation)
          Set the line elevation.
 void setEnabled(boolean state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScreenElevationLine

public ScreenElevationLine()
Method Detail

getColor

public Color getColor()
Get the line color.

Returns:
the line color.

getElevation

public double getElevation()
Get the line current elevation.

Returns:
the line current elevation.

isEnabled

public boolean isEnabled()

render

public void render(DrawContext dc)
Description copied from interface: Renderable
Causes this Renderable to render itself using the provided draw context.

Specified by:
render in interface Renderable
Parameters:
dc - the DrawContext to be used
See Also:
DrawContext

setColor

public void setColor(Color color)
Set the line color.

Parameters:
color - the line color.

setElevation

public void setElevation(double elevation)
Set the line elevation.

Parameters:
elevation - the line elevation.

setEnabled

public void setEnabled(boolean state)

NASA World Wind