Package PamView
Class PamSymbolBase
java.lang.Object
PamView.PamSymbolBase
- All Implemented Interfaces:
Serializable
,Cloneable
- Direct Known Subclasses:
PamSymbol
,PamSymbolFX
Base class for both FX and Swing PamSymbols
- Author:
- dg50
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected 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
ConstructorsConstructorDescriptionPamSymbolBase
(SymbolData symbolData) Construct a symbol with shape information. -
Method Summary
Modifier and TypeMethodDescriptionclone()
double
Get the symbol height as an doubledouble
Get the symbol width as a doublefloat
Get the symbol line thicknessGet the symbol data - all the information needed to describe the symbol, shape, colour, etc.char
static char
getTextCode
(PamSymbolType symbol) Get a text code for a symbolstatic PamSymbolType
interpretTextCode
(String textCode) Convert a single character text code into a symbol type more or less following the Matlab symbol definitions.boolean
isFill()
Is the symbol filledvoid
setFill
(boolean fill) Set the symbol fillvoid
setHeight
(double height) Set the symbol heightvoid
setLineThickness
(float lineThickness) Set the symbol line thicknessvoid
setSymbolData
(SymbolData symbolData) Set the symbol data.void
setWidth
(double width) Set the symbol width
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
sqx
protected static final double[] sqx -
sqy
protected static final double[] sqy -
diax
protected static final double[] diax -
diay
protected static final double[] diay -
trux
protected static final double[] trux -
truy
protected static final double[] truy -
trdx
protected static final double[] trdx -
trdy
protected static final double[] trdy -
trrx
protected static final double[] trrx -
trry
protected static final double[] trry -
trlx
protected static final double[] trlx -
trly
protected static final double[] trly -
pentx
protected static final double[] pentx -
penty
protected static final double[] penty -
hexx
protected static final double[] hexx -
hexy
protected static final double[] hexy
-
-
Constructor Details
-
Method Details
-
interpretTextCode
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
public char getTextCode()- Returns:
- the text code for this symbol
-
getSymbolData
Get the symbol data - all the information needed to describe the symbol, shape, colour, etc.- Returns:
-
setSymbolData
Set the symbol data.- Parameters:
symbolData
-
-
getTextCode
Get a text code for a symbol- Parameters:
symbol
- symbol type- Returns:
- text code
-
setWidth
public void setWidth(double width) Set the symbol width- Parameters:
d
- symbol width in pixels.
-
setHeight
public void setHeight(double height) Set the symbol height- Parameters:
height
- symbol height in pixels
-
getDWidth
public double getDWidth()Get the symbol width as a double- Returns:
- symbol width in pixels
- See Also:
-
getDHeight
public double getDHeight()Get the symbol height as an double- Returns:
- symbol height in pixels
- See Also:
-
isFill
public boolean isFill()Is the symbol filled- Returns:
- true if filled
-
setFill
public void setFill(boolean fill) Set the symbol fill- Parameters:
fill
-
-
getLineThickness
public float getLineThickness()Get the symbol line thickness- Returns:
- line thickness
-
setLineThickness
public void setLineThickness(float lineThickness) Set the symbol line thickness- Parameters:
lineThickness
- line thickness
-
clone
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-