Package PamView.symbol
Class SymbolData
java.lang.Object
PamView.symbol.SymbolData
- All Implemented Interfaces:
Serializable,Cloneable
Class to hold symbol data for both FX and Swing types
of PAMSymbols.
- Author:
- Doug Gillespie
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanfloatfloatstatic final longfloat -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for a simple empty data (black circle)SymbolData(PamSymbolType symbol, float width, float height, boolean fill, Color fillColor, Color lineColor) Construct a standard symbol data object.SymbolData(PamSymbolType symbol, float width, float height, float lineThickness, boolean fill, Color fillColor, Color lineColor) Construct a standard symbol data object. -
Method Summary
Modifier and TypeMethodDescriptionclone()Get the type of symbolvoidsetFillColor(Color fillColor) voidSet the line properties for the given graphics handle.voidsetLineColor(Color lineColor) voidsetSymbol(PamSymbolType symbol) Set the symbol type
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
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
-
getFillColor
- Returns:
- the fillColor
-
setFillColor
- Parameters:
fillColor- the fillColor to set
-
getLineColor
- Returns:
- the lineColor
-
setLineColor
- Parameters:
lineColor- the lineColor to set
-
getSymbol
Get the type of symbol- Returns:
- the type of symbol
-
setSymbol
Set the symbol type- Parameters:
symbol- - the symbol type
-
setGraphicsProperties
Set the line properties for the given graphics handle.- Parameters:
g-
-