Class SimpleLineSymbol

java.lang.Object
java.util.Observable
ca.spatial.mapview.symbol.Symbol
ca.spatial.mapview.symbol.SimpleLineSymbol
All Implemented Interfaces:
PaintType, Visibility, Cloneable, Observer

public class SimpleLineSymbol extends Symbol implements PaintType, Cloneable
  • Field Details

  • Constructor Details

    • SimpleLineSymbol

      public SimpleLineSymbol()
    • SimpleLineSymbol

      public SimpleLineSymbol(Paint paint, double lineWidth)
    • SimpleLineSymbol

      public SimpleLineSymbol(Paint paint, BasicStroke stroke, double minScale, double maxScale, AlphaComposite alpha)
  • Method Details

    • getType

      public int getType()
      Specified by:
      getType in class Symbol
    • toString

      public String toString()
      Overrides:
      toString in class Symbol
    • clone

      public Object clone()
      Specified by:
      clone in class Symbol
    • isPlainLineSymbol

      public boolean isPlainLineSymbol(boolean testColor)
    • isClear

      public boolean isClear()
      Description copied from class: Symbol
      Test if the symbol is clear
      Overrides:
      isClear in class Symbol
    • setFillColor

      public void setFillColor(Color color)
      Description copied from class: Symbol
      Set the fill color for this symbol
      Specified by:
      setFillColor in class Symbol
    • getFillColor

      public Color getFillColor()
      Description copied from class: Symbol
      Get the fill color used for this symbol
      Specified by:
      getFillColor in class Symbol
    • getColor

      public Color getColor()
      Description copied from class: Symbol
      Get the color for this symbol. The action that happens depends on the type of symbol:
      • for a polygon symbol get the fill color, or if null get the outline color
      • for a line symbol get the line color
      • for a point symbol get the marker color
      Specified by:
      getColor in class Symbol
    • setColor

      public void setColor(Color c)
      Description copied from class: Symbol
      Set the color for this symbol. The action that happens depends on the type of symbol:
      • for a polygon symbol set the fill color, or if null set the outline color
      • for a line symbol set the line color
      • for a point symbol set the marker color
      Specified by:
      setColor in class Symbol
    • setLineColor

      public void setLineColor(Color color)
      Description copied from class: Symbol
      Set the line color for this symbol
      Specified by:
      setLineColor in class Symbol
    • getLineColor

      public Color getLineColor()
      Description copied from class: Symbol
      Get the line color used for this symbol
      Specified by:
      getLineColor in class Symbol
    • setLineWidth

      public void setLineWidth(double width)
      Description copied from class: Symbol
      Set the line width for this symbol
      Specified by:
      setLineWidth in class Symbol
    • getLineWidth

      public double getLineWidth()
      Description copied from class: Symbol
      Get the line width used for this symbol
      Specified by:
      getLineWidth in class Symbol
    • setLineStyle

      public SimpleLineSymbol setLineStyle(int type)
    • getLineStyle

      public int getLineStyle()
    • makeStroke

      public BasicStroke makeStroke()
    • setPaint

      public void setPaint(Paint paint)
      Description copied from interface: PaintType
      Set the paint of this object
      Specified by:
      setPaint in interface PaintType
    • getPaint

      public Paint getPaint()
      Description copied from interface: PaintType
      Get the paint of this object
      Specified by:
      getPaint in interface PaintType
    • getPaintType

      public int getPaintType()
    • getDefaultStrokeForType

      public static Stroke getDefaultStrokeForType(int type)
    • hasArrow

      public boolean hasArrow()
    • setArrowStyle

      public void setArrowStyle(int style)
    • getArrowStyle

      public int getArrowStyle()
    • setArrowLength

      public void setArrowLength(double length)
    • getArrowLength

      public double getArrowLength()
    • setArrowAngle

      public void setArrowAngle(double angle)
    • getArrowAngle

      public double getArrowAngle()
    • setArrow

      public SimpleLineSymbol setArrow(int style, double length, double angle)
    • isVisible

      public boolean isVisible(double scale)
      Description copied from class: Symbol
      Test if the symbol would be visible at this scale
      Overrides:
      isVisible in class Symbol
    • symbolize

      public void symbolize(Graphics2D g, Shape shape, double scale, int id, boolean isScaled)
    • getCustomizer

      public Component getCustomizer(boolean scaledSymbol)
      Description copied from class: Symbol
      Get a GUI component that can be used to customize this symbol
      Specified by:
      getCustomizer in class Symbol