Class SymbolData

java.lang.Object
PamView.symbol.SymbolData
All Implemented Interfaces:
Serializable, Cloneable

public class SymbolData extends Object implements Serializable, Cloneable
Class to hold symbol data for both FX and Swing types of PAMSymbols.
Author:
Doug Gillespie
See Also:
  • Field Details Link icon

    • serialVersionUID Link icon

      public static final long serialVersionUID
      See Also:
    • symbol Link icon

      public PamSymbolType symbol
    • width Link icon

      public float width
    • height Link icon

      public float height
    • lineThickness Link icon

      public float lineThickness
    • fill Link icon

      public boolean fill
  • Constructor Details Link icon

    • SymbolData Link icon

      public SymbolData()
      Constructor for a simple empty data (black circle)
    • SymbolData Link icon

      public SymbolData(PamSymbolType symbol, float width, float height, boolean fill, Color fillColor, Color lineColor)
      Construct a standard symbol data object.
      Parameters:
      symbol -
      width -
      height -
      fill -
      fillColorRGB -
      lineColorRGB -
    • SymbolData Link icon

      public SymbolData(PamSymbolType symbol, float width, float height, float lineThickness, boolean fill, Color fillColor, Color lineColor)
      Construct a standard symbol data object.
      Parameters:
      symbol -
      width -
      height -
      lineThickness -
      fill -
      fillColorRGB -
      lineColorRGB -
  • Method Details Link icon

    • clone Link icon

      public SymbolData clone()
    • getFillColor Link icon

      public Color getFillColor()
      Returns:
      the fillColor
    • setFillColor Link icon

      public void setFillColor(Color fillColor)
      Parameters:
      fillColor - the fillColor to set
    • getLineColor Link icon

      public Color getLineColor()
      Returns:
      the lineColor
    • setLineColor Link icon

      public void setLineColor(Color lineColor)
      Parameters:
      lineColor - the lineColor to set
    • getSymbol Link icon

      public PamSymbolType getSymbol()
      Get the type of symbol
      Returns:
      the type of symbol
    • setSymbol Link icon

      public void setSymbol(PamSymbolType symbol)
      Set the symbol type
      Parameters:
      symbol - - the symbol type
    • setGraphicsProperties Link icon

      public void setGraphicsProperties(Graphics g)
      Set the line properties for the given graphics handle.
      Parameters:
      g -