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

    • serialVersionUID

      public static final long serialVersionUID
      See Also:
    • symbol

      public PamSymbolType symbol
    • width

      public float width
    • height

      public float height
    • lineThickness

      public float lineThickness
    • fill

      public boolean fill
  • Constructor Details

    • SymbolData

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

      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

      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

    • clone

      public SymbolData clone()
    • getFillColor

      public Color getFillColor()
      Returns:
      the fillColor
    • setFillColor

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

      public Color getLineColor()
      Returns:
      the lineColor
    • setLineColor

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

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

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

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