Class 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.
    • 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 this Renderable 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScreenElevationLine

        public ScreenElevationLine()
    • 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 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