Package Map

Class MapDrawingOptions


public class MapDrawingOptions extends ProjectorDrawingOptions
  • Constructor Details

    • MapDrawingOptions

      public MapDrawingOptions(float opacity)
      Parameters:
      opacity -
  • Method Details

    • getLineOpacity

      public Float getLineOpacity()
      Description copied from class: ProjectorDrawingOptions
      Get the opacity for lines.
      Specified by:
      getLineOpacity in class ProjectorDrawingOptions
      Returns:
      the opacity for lines (1 = solid, 0 = transparent).
    • getShapeOpacity

      public Float getShapeOpacity()
      Description copied from class: ProjectorDrawingOptions
      Get the opacity for shapes.
      Specified by:
      getShapeOpacity in class ProjectorDrawingOptions
      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 plot
      dataTime - data unit time
      Returns:
      opacity on scale of 0 to 1.