Package PamView

Class ProjectorDrawingOptions

java.lang.Object
PamView.ProjectorDrawingOptions
Direct Known Subclasses:
MapDrawingOptions

public abstract class ProjectorDrawingOptions extends Object
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.
Author:
Doug Gillespie
  • Constructor Details Link icon

    • ProjectorDrawingOptions Link icon

      public ProjectorDrawingOptions()
  • Method Details Link icon

    • getLineOpacity Link icon

      public abstract Float getLineOpacity()
      Get the opacity for lines.
      Returns:
      the opacity for lines (1 = solid, 0 = transparent).
    • getShapeOpacity Link icon

      public abstract Float getShapeOpacity()
      Get the opacity for shapes.
      Returns:
      the opacity for shapes (1 = solid, 0 = transparent).
    • floatToInt255 Link icon

      public int floatToInt255(Float floatValue)
      Convert a floating point 0-1 Object to an integer value. Assume 1 if null.
      Parameters:
      floatValue -
      Returns:
    • createColor Link icon

      public Color createColor(Color oldColor, Float opacity)
      Generate a new colour object with the said opacity.
      Parameters:
      oldColor - old colour
      opacity - opacity on scale 0 to 1
      Returns:
      new colour