Package cnuphys.lund
Class LundStyle
java.lang.Object
cnuphys.lund.LundStyle
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic LundStyle
addLundStyle
(LundId lundId, Color lineColor) Add a lund style into the databaseGet the fill colorGet the line colorGet the strokestatic LundStyle
Get a style for a given lund Id.Get a transparent version of the fill color.void
setFillColor
(Color color) Set the fill colorvoid
setLineColor
(Color color) Set the line color
-
Field Details
-
styles
Hashtable of styles.
-
-
Method Details
-
getLineColor
Get the line color- Returns:
- the line color
-
getFillColor
Get the fill color- Returns:
- the fill color
-
getTransparentFillColor
Get a transparent version of the fill color.- Returns:
- a transparent version of the fill color.
-
setLineColor
Set the line color- Parameters:
color
- the new line color
-
setFillColor
Set the fill color- Parameters:
color
- the new fill color
-
getStroke
Get the stroke- Returns:
- the drawing stroke
-
addLundStyle
Add a lund style into the database- Parameters:
lundId
- the lund particle idlineColor
- the line color- Returns:
- the added style (or if it already existed, taken from the database)
-
getStyle
Get a style for a given lund Id. Returns _unknownStyle if the style hasn't been added yet or lundId is null.- Parameters:
lundId
- the Id to match- Returns:
- the style
-