Package Map
Class MapDrawingOptions
java.lang.Object
PamView.ProjectorDrawingOptions
Map.MapDrawingOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatcalculateOpacity(long now, long earliestToPlot, long dataTime) work out how opaque the lines should be.Get the opacity for lines.floatGet the opacity for shapes.voidsetOpacity(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:ProjectorDrawingOptionsGet the opacity for lines.- Specified by:
getLineOpacityin classProjectorDrawingOptions- Returns:
- the opacity for lines (1 = solid, 0 = transparent).
-
getShapeOpacity
Description copied from class:ProjectorDrawingOptionsGet the opacity for shapes.- Specified by:
getShapeOpacityin 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.
-