Class SurveyOverlay

All Implemented Interfaces:
Serializable, Cloneable, Comparable

public class SurveyOverlay extends LineOverlay
The SurveyOverlay class may be used to display the shape of an EarthDataSurvey object. For point surveys, the overlay displays a crosshair centered at the point. For a line survey, a line is drawn between the start and end points. For a box survey, a rectangle is drawn enclosing the survey area. For a polygon survey, the polygon itself is drawn.
Since:
3.1.7
Author:
Peter Hollemans
See Also:
  • Constructor Details

    • SurveyOverlay

      public SurveyOverlay(EarthDataSurvey survey, Color color)
      Creates a new survey overlay with the specified survey and color. The layer number is initialized to 0, and the stroke to the default BasicStroke.
  • Method Details

    • getSurvey

      public EarthDataSurvey getSurvey()
      Gets the survey for this overlay.
    • needsPrepare

      protected boolean needsPrepare()
      Returns false as this class needs no preparation.
      Overrides:
      needsPrepare in class EarthDataOverlay
      Returns:
      true if this overlay class needs a preparation stage, or false if not.
    • prepare

      protected void prepare(Graphics2D g, EarthDataView view)
      Description copied from class: EarthDataOverlay
      Prepares the overlay graphics prior to drawing.
      Specified by:
      prepare in class EarthDataOverlay
      Parameters:
      g - the graphics object for drawing.
      view - the earth data view.
    • draw

      protected void draw(Graphics2D g, EarthDataView view)
      Description copied from class: EarthDataOverlay
      Draws the overlay graphics.
      Specified by:
      draw in class EarthDataOverlay
      Parameters:
      g - the graphics object for drawing.
      view - the earth data view.