Package PamView

Class PamSymbolBase

java.lang.Object
PamView.PamSymbolBase
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
PamSymbol, PamSymbolFX

public abstract class PamSymbolBase extends Object implements Serializable, Cloneable
Base class for both FX and Swing PamSymbols
Author:
dg50
See Also:
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    protected static final double[]
     
    protected static final double[]
     
    protected static final double[]
     
    protected static final double[]
     
    protected static final double[]
     
    protected static final double[]
     
    static final long
     
    protected static final double[]
     
    protected static final double[]
     
    protected static final double[]
     
    protected static final double[]
     
    protected static final double[]
     
    protected static final double[]
     
    protected static final double[]
     
    protected static final double[]
     
    protected static final double[]
     
    protected static final double[]
     
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    Construct a symbol with shape information.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
     
    double
    Get the symbol height as an double
    double
    Get the symbol width as a double
    float
    Get the symbol line thickness
    Get the symbol data - all the information needed to describe the symbol, shape, colour, etc.
    char
     
    static char
    Get a text code for a symbol
    Convert a single character text code into a symbol type more or less following the Matlab symbol definitions.
    boolean
    Is the symbol filled
    void
    setFill(boolean fill)
    Set the symbol fill
    void
    setHeight(double height)
    Set the symbol height
    void
    setLineThickness(float lineThickness)
    Set the symbol line thickness
    void
    Set the symbol data.
    void
    setWidth(double width)
    Set the symbol width

    Methods inherited from class java.lang.Object Link icon

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details Link icon

    • serialVersionUID Link icon

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

      protected static final double[] sqx
    • sqy Link icon

      protected static final double[] sqy
    • diax Link icon

      protected static final double[] diax
    • diay Link icon

      protected static final double[] diay
    • trux Link icon

      protected static final double[] trux
    • truy Link icon

      protected static final double[] truy
    • trdx Link icon

      protected static final double[] trdx
    • trdy Link icon

      protected static final double[] trdy
    • trrx Link icon

      protected static final double[] trrx
    • trry Link icon

      protected static final double[] trry
    • trlx Link icon

      protected static final double[] trlx
    • trly Link icon

      protected static final double[] trly
    • pentx Link icon

      protected static final double[] pentx
    • penty Link icon

      protected static final double[] penty
    • hexx Link icon

      protected static final double[] hexx
    • hexy Link icon

      protected static final double[] hexy
  • Constructor Details Link icon

    • PamSymbolBase Link icon

      public PamSymbolBase(SymbolData symbolData)
      Construct a symbol with shape information.
      Parameters:
      symbolData -
  • Method Details Link icon

    • interpretTextCode Link icon

      public static PamSymbolType interpretTextCode(String textCode)
      Convert a single character text code into a symbol type more or less following the Matlab symbol definitions.
      Parameters:
      textCode - text code
      Returns:
      symbol type
    • getTextCode Link icon

      public char getTextCode()
      Returns:
      the text code for this symbol
    • getSymbolData Link icon

      public SymbolData getSymbolData()
      Get the symbol data - all the information needed to describe the symbol, shape, colour, etc.
      Returns:
    • setSymbolData Link icon

      public void setSymbolData(SymbolData symbolData)
      Set the symbol data.
      Parameters:
      symbolData -
    • getTextCode Link icon

      public static char getTextCode(PamSymbolType symbol)
      Get a text code for a symbol
      Parameters:
      symbol - symbol type
      Returns:
      text code
    • setWidth Link icon

      public void setWidth(double width)
      Set the symbol width
      Parameters:
      d - symbol width in pixels.
    • setHeight Link icon

      public void setHeight(double height)
      Set the symbol height
      Parameters:
      height - symbol height in pixels
    • getDWidth Link icon

      public double getDWidth()
      Get the symbol width as a double
      Returns:
      symbol width in pixels
      See Also:
      • invalid reference
        Symbol width as an int
    • getDHeight Link icon

      public double getDHeight()
      Get the symbol height as an double
      Returns:
      symbol height in pixels
      See Also:
      • invalid reference
        Symbol height as an int
    • isFill Link icon

      public boolean isFill()
      Is the symbol filled
      Returns:
      true if filled
    • setFill Link icon

      public void setFill(boolean fill)
      Set the symbol fill
      Parameters:
      fill -
    • getLineThickness Link icon

      public float getLineThickness()
      Get the symbol line thickness
      Returns:
      line thickness
    • setLineThickness Link icon

      public void setLineThickness(float lineThickness)
      Set the symbol line thickness
      Parameters:
      lineThickness - line thickness
    • clone Link icon

      Overrides:
      clone in class Object
      Throws:
      CloneNotSupportedException