Class PoliticalOverlay

All Implemented Interfaces:
Serializable, Cloneable, Comparable

public class PoliticalOverlay extends LineOverlay
The PoliticalOverlay class annotates an EarthDataView with political border lines. Both state borders and international borders may be selected but by default, only international borders are rendered.
Since:
3.1.7
Author:
Peter Hollemans
See Also:
  • Constructor Details

    • PoliticalOverlay

      public PoliticalOverlay(Color color)
      Creates a new political overlay with the specified color. By default, only international borders are shown. The layer number is initialized to 0, and the stroke to the default BasicStroke
      Parameters:
      color - the overlay color.
  • Method Details

    • setReaderFactory

      public void setReaderFactory(BinnedGSHHSReaderFactory factory)
      Sets the read factory for new border readers.
    • getState

      public boolean getState()
      Gets the state borders flag.
    • setState

      public void setState(boolean flag)
      Sets the state borders flag. By default, no state borders are drawn.
    • getInternational

      public boolean getInternational()
      Gets the international borders flag.
    • setInternational

      public void setInternational(boolean flag)
      Sets the international borders flag. By default, international borders are drawn.
    • 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.