Class ScreenElevationLine
- java.lang.Object
-
- gov.nasa.worldwindx.applications.sar.render.ScreenElevationLine
-
- All Implemented Interfaces:
Renderable
public class ScreenElevationLine extends java.lang.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
Constructors Constructor Description ScreenElevationLine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Color
getColor()
Get the line color.double
getElevation()
Get the line current elevation.boolean
isEnabled()
void
render(DrawContext dc)
Causes thisRenderable
to render itself using the provided draw context.void
setColor(java.awt.Color color)
Set the line color.void
setElevation(double elevation)
Set the line elevation.void
setEnabled(boolean state)
-
-
-
Method Detail
-
getElevation
public double getElevation()
Get the line current elevation.- Returns:
- the line current elevation.
-
setElevation
public void setElevation(double elevation)
Set the line elevation.- Parameters:
elevation
- the line elevation.
-
getColor
public java.awt.Color getColor()
Get the line color.- Returns:
- the line color.
-
setColor
public void setColor(java.awt.Color color)
Set the line color.- Parameters:
color
- the line color.
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean state)
-
render
public void render(DrawContext dc)
Description copied from interface:Renderable
Causes thisRenderable
to render itself using the provided draw context.- Specified by:
render
in interfaceRenderable
- Parameters:
dc
- theDrawContext
to be used- See Also:
DrawContext
-
-