Package PamView
Class ProjectorDrawingOptions
java.lang.Object
PamView.ProjectorDrawingOptions
- Direct Known Subclasses:
MapDrawingOptions
Options that can be added to the GeneralProjector class so that whatever draws
the data units can pick up this additional information.
Currently, this is handling fading of lines and symbols over time for the map but may be extended to include other options.
Currently, this is handling fading of lines and symbols over time for the map but may be extended to include other options.
- Author:
- Doug Gillespie
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateColor
(Color oldColor, Float opacity) Generate a new colour object with the said opacity.int
floatToInt255
(Float floatValue) Convert a floating point 0-1 Object to an integer value.abstract Float
Get the opacity for lines.abstract Float
Get the opacity for shapes.
-
Constructor Details
-
ProjectorDrawingOptions
public ProjectorDrawingOptions()
-
-
Method Details
-
getLineOpacity
Get the opacity for lines.- Returns:
- the opacity for lines (1 = solid, 0 = transparent).
-
getShapeOpacity
Get the opacity for shapes.- Returns:
- the opacity for shapes (1 = solid, 0 = transparent).
-
floatToInt255
Convert a floating point 0-1 Object to an integer value. Assume 1 if null.- Parameters:
floatValue
-- Returns:
-
createColor
Generate a new colour object with the said opacity.- Parameters:
oldColor
- old colouropacity
- opacity on scale 0 to 1- Returns:
- new colour
-