Class GridOverlayDraw

java.lang.Object
PamView.PanelOverlayDraw
Map.gridbaselayer.GridOverlayDraw

@Deprecated public class GridOverlayDraw extends PanelOverlayDraw
Deprecated.
  • Constructor Details

    • GridOverlayDraw

      public GridOverlayDraw(PamSymbol defaultSymbol)
      Deprecated.
  • Method Details

    • drawDataUnit

      public Rectangle drawDataUnit(Graphics g, PamDataUnit pamDataUnit, GeneralProjector generalProjector)
      Deprecated.
      Specified by:
      drawDataUnit in class PanelOverlayDraw
      Parameters:
      g - Graphics handle to draw on
      pamDataUnit - PamDataUnit to draw
      generalProjector - Projector to use when drawing.
      Returns:
      A rectangle surrouding whatever has just been drawn.
    • canDraw

      public boolean canDraw(GeneralProjector.ParameterType[] parameterTypes, GeneralProjector.ParameterUnits[] parameterUnits)
      Deprecated.
      Specified by:
      canDraw in class PanelOverlayDraw
      Returns:
      Returns whether or not the object can be drawn using the given projector. The implementation of CanDraw should examine the parameter types in GeneralProjector and check that it will know how to prvide those parameters before returning true, or false otherwise.
    • createKeyItem

      public PamKeyItem createKeyItem(GeneralProjector generalProjector, int keyType)
      Deprecated.
      Description copied from class: PanelOverlayDraw
      provide a graphics component (probably a JPanel) that can be incorporated into a key panel for maps, and anything else that uses overlay graphics.

      Since multiple keys may be created in various displays, new ones should normally be created each time this is called.

      The GeneralProjector reference is passed as a parameter since the type of symbol or shape drawn on a particular plot may depend on the type of coordinate system. For example, whistles are drawn as a contour on the spectrogram display, but as a point (PamSymbol) on the map.

      It is possible that some PanelOverlayDraw implementations will be rather complicated and the keys consequently quite large. The extendedKey parameter may therefore be used to draw a full or a cut down version of the key. It is expected that most implementations will ignore this parameter !

      Specified by:
      createKeyItem in class PanelOverlayDraw
      Parameters:
      generalProjector - Reference to a GeneralProjector responsible for drawing with the PAnelOverlayDraw implementation
      keyType - Draw a more complicated key, giving more detail
      Returns:
      java.awt compnent (usually a JPanel).
      See Also:
    • getHoverText

      public String getHoverText(GeneralProjector generalProjector, PamDataUnit dataUnit, int iSide)
      Deprecated.
      Description copied from class: PanelOverlayDraw
      Provides text for popup hover windows on displays.
      Specified by:
      getHoverText in class PanelOverlayDraw
      Parameters:
      generalProjector - Projector associated with the display requiring the text
      dataUnit - Data unit the mouse hovered over
      Returns:
      Text to display