Class LineSymbol

All Implemented Interfaces:
Visibility, Observer

public class LineSymbol extends SymbolList
Line symbology
  • Field Details

    • ARROW_TO

      public static final int ARROW_TO
      See Also:
      Constant Field Values
    • ARROW_FROM

      public static final int ARROW_FROM
      See Also:
      Constant Field Values
    • ARROWANGLE

      public static double ARROWANGLE
    • ARROWWIDTH

      public static double ARROWWIDTH
    • DEFAULT_MAXSCALE

      public static double DEFAULT_MAXSCALE
    • defaultSymbol

      public static LineSymbol defaultSymbol
    • erase

      public static LineSymbol erase
    • selected

      public static LineSymbol selected
    • samples

      public static ArrayList samples
  • Constructor Details

    • LineSymbol

      public LineSymbol()
    • LineSymbol

      public LineSymbol(Paint paint)
    • LineSymbol

      public LineSymbol(Paint paint, double width)
    • LineSymbol

      public LineSymbol(SimpleLineSymbol line)
    • LineSymbol

      public LineSymbol(Symbol[] symbols)
    • LineSymbol

      public LineSymbol(double minScale, double maxScale, AlphaComposite alpha, Paint paint, BasicStroke stroke, double lineMinScale, double lineMaxScale, AlphaComposite lineAlpha)
      Deprecated.
  • Method Details

    • getType

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

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

      public Symbol getRandomSubSymbol()
      Specified by:
      getRandomSubSymbol in class SymbolList
    • getDefault

      public SymbolList getDefault()
      Specified by:
      getDefault in class SymbolList
    • toString

      public String toString()
      Overrides:
      toString in class Symbol
    • 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
    • getDefault

      public static Symbol getDefault(int theme, int index)
    • random

      public static Symbol random()
    • unclassified

      public static Symbol unclassified()
    • getSamples

      public ArrayList getSamples()
      Specified by:
      getSamples in class SymbolList
    • getSimpleLineSymbol

      public SimpleLineSymbol getSimpleLineSymbol()
    • getSimpleLinePaint

      public Paint getSimpleLinePaint()
    • getSimpleLineWidth

      public double getSimpleLineWidth()
    • isPlainLineSymbol

      public boolean isPlainLineSymbol(boolean testColor)
    • 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