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.ColorgetColor()Get the line color.doublegetElevation()Get the line current elevation.booleanisEnabled()voidrender(DrawContext dc)Causes thisRenderableto render itself using the provided draw context.voidsetColor(java.awt.Color color)Set the line color.voidsetElevation(double elevation)Set the line elevation.voidsetEnabled(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:RenderableCauses thisRenderableto render itself using the provided draw context.- Specified by:
renderin interfaceRenderable- Parameters:
dc- theDrawContextto be used- See Also:
DrawContext
-
-