Package Map
Class MapDrawingOptions
java.lang.Object
PamView.ProjectorDrawingOptions
Map.MapDrawingOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
calculateOpacity
(long now, long earliestToPlot, long dataTime) work out how opaque the lines should be.Get the opacity for lines.float
Get the opacity for shapes.void
setOpacity
(float opacity) Methods inherited from class PamView.ProjectorDrawingOptions
createColor, floatToInt255
-
Constructor Details
-
MapDrawingOptions
public MapDrawingOptions(float opacity) - Parameters:
opacity
-
-
-
Method Details
-
getLineOpacity
Description copied from class:ProjectorDrawingOptions
Get the opacity for lines.- Specified by:
getLineOpacity
in classProjectorDrawingOptions
- Returns:
- the opacity for lines (1 = solid, 0 = transparent).
-
getShapeOpacity
Description copied from class:ProjectorDrawingOptions
Get the opacity for shapes.- Specified by:
getShapeOpacity
in classProjectorDrawingOptions
- Returns:
- the opacity for shapes (1 = solid, 0 = transparent).
-
getOpacity
public float getOpacity()- Returns:
- the opacity
-
setOpacity
public void setOpacity(float opacity) - Parameters:
opacity
- the opacity to set
-
calculateOpacity
public float calculateOpacity(long now, long earliestToPlot, long dataTime) work out how opaque the lines should be.- Parameters:
now
- current time.earliestToPlot
- earliest time to plotdataTime
- data unit time- Returns:
- opacity on scale of 0 to 1.
-