Class PointSymbol

java.lang.Object
viewer.symbols.Symbol
viewer.symbols.PointSymbol

public class PointSymbol
extends Symbol
Marker for a point map feature. The feature is marked on the map using a circle.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected java.awt.Color color  
    protected int pointWidth  

    Fields inherited from class viewer.symbols.Symbol

    DASHED, DOTTED, myFeature
  • Constructor Summary

    Constructors 
    Constructor Description
    PointSymbol​(Feature feature)  
    PointSymbol​(Feature feature, java.awt.Color color)  
    PointSymbol​(Feature feature, java.awt.Color color, int pointWidth)  
  • 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

    • color

      protected java.awt.Color color
    • pointWidth

      protected int pointWidth
  • Constructor Details

    • PointSymbol

      public PointSymbol​(Feature feature)
      Parameters:
      feature - feature which the point is associated to
    • PointSymbol

      public PointSymbol​(Feature feature, java.awt.Color color)
      Parameters:
      feature - feature which the point is associated to
      color - color of the point
    • PointSymbol

      public PointSymbol​(Feature feature, java.awt.Color color, int pointWidth)
      Parameters:
      feature - feature
      color - color
      pointWidth - point width
  • 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