Class PolygonSymbol

java.lang.Object
viewer.symbols.Symbol
viewer.symbols.PolygonSymbol

public class PolygonSymbol
extends Symbol
Marker to display polygons on the map.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected java.awt.Color fillColor  
    protected java.awt.Stroke stroke  
    protected java.awt.Color strokeColor  

    Fields inherited from class viewer.symbols.Symbol

    DASHED, DOTTED, myFeature
  • Constructor Summary

    Constructors 
    Constructor Description
    PolygonSymbol​(Feature feature)  
    PolygonSymbol​(Feature feature, java.awt.Color strokeColor)  
    PolygonSymbol​(Feature feature, java.awt.Color strokeColor, java.awt.Color fillColor)  
    PolygonSymbol​(Feature feature, java.awt.Color strokeColor, java.awt.Stroke stroke)  
    PolygonSymbol​(Feature feature, java.awt.Color strokeColor, java.awt.Stroke stroke, java.awt.Color fillColor)  
  • Method Summary

    Modifier and Type Method Description
    void draw​(java.awt.Graphics2D g, Transformation t)
    This method is called to draw this Symbol into a specified Graphics object.

    Methods inherited from class viewer.symbols.Symbol

    getBoundingBox, getFeature

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • stroke

      protected java.awt.Stroke stroke
    • strokeColor

      protected java.awt.Color strokeColor
    • fillColor

      protected java.awt.Color fillColor
  • Constructor Details

    • PolygonSymbol

      public PolygonSymbol​(Feature feature)
      Parameters:
      feature - feature which the polygon is associated to
    • PolygonSymbol

      public PolygonSymbol​(Feature feature, java.awt.Color strokeColor)
      Parameters:
      feature - feature which the polygon is associated to
      strokeColor - stroke color
    • PolygonSymbol

      public PolygonSymbol​(Feature feature, java.awt.Color strokeColor, java.awt.Stroke stroke)
      Parameters:
      feature - feature which the polygon is associated to
      strokeColor - stroke color
      stroke - stroke
    • PolygonSymbol

      public PolygonSymbol​(Feature feature, java.awt.Color strokeColor, java.awt.Stroke stroke, java.awt.Color fillColor)
      Parameters:
      feature - feature which the polygon is associated to
      strokeColor - stroke color
      stroke - stroke object
      fillColor - fill color
    • PolygonSymbol

      public PolygonSymbol​(Feature feature, java.awt.Color strokeColor, java.awt.Color fillColor)
      Parameters:
      feature - feature feature which the polygon is associated to
      strokeColor - stroke color
      fillColor - fill color
  • Method Details

    • draw

      public void draw​(java.awt.Graphics2D g, Transformation t)
      Description copied from class: Symbol
      This method is called to draw this Symbol into a specified Graphics object.
      Specified by:
      draw in class Symbol
      Parameters:
      g - the Graphics object
      t - the Transformation that maps world coordinates to image coordinates