Package cnuphys.lund
Class LundStyle
java.lang.Object
cnuphys.lund.LundStyle
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionstatic LundStyleaddLundStyle(LundId lundId, Color lineColor) Add a lund style into the databaseGet the fill colorGet the line colorGet the strokestatic LundStyleGet a style for a given lund Id.Get a transparent version of the fill color.voidsetFillColor(Color color) Set the fill colorvoidsetLineColor(Color color) Set the line color
- 
Field Details- 
stylesHashtable of styles.
 
- 
- 
Method Details- 
getLineColorGet the line color- Returns:
- the line color
 
- 
getFillColorGet the fill color- Returns:
- the fill color
 
- 
getTransparentFillColorGet a transparent version of the fill color.- Returns:
- a transparent version of the fill color.
 
- 
setLineColorSet the line color- Parameters:
- color- the new line color
 
- 
setFillColorSet the fill color- Parameters:
- color- the new fill color
 
- 
getStrokeGet the stroke- Returns:
- the drawing stroke
 
- 
addLundStyleAdd a lund style into the database- Parameters:
- lundId- the lund particle id
- lineColor- the line color
- Returns:
- the added style (or if it already existed, taken from the database)
 
- 
getStyleGet 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
 
 
-