Class LineSymbol

java.lang.Object
viewer.symbols.Symbol
viewer.symbols.LineSymbol

public class LineSymbol
extends Symbol
A line segment that can be added to a map
Author:
haunert
  • Field Summary

    Fields 
    Modifier and Type Field Description
    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
    LineSymbol​(Feature feature)  
    LineSymbol​(Feature feature, java.awt.Color strokeColor)  
    LineSymbol​(Feature feature, java.awt.Color strokeColor, java.awt.Stroke stroke)  
  • 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
  • Constructor Details

    • LineSymbol

      public LineSymbol​(Feature feature)
      Parameters:
      feature - feature which the line is associated to
    • LineSymbol

      public LineSymbol​(Feature feature, java.awt.Color strokeColor)
      Parameters:
      feature - feature
      strokeColor - stroke color
    • LineSymbol

      public LineSymbol​(Feature feature, java.awt.Color strokeColor, java.awt.Stroke stroke)
      Parameters:
      feature - feature which the polygon is associated to
      strokeColor - stroke color
      stroke - stroke object
  • 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