Class ClipDisplayProjector

java.lang.Object
PamView.GeneralProjector<PamCoordinate>
clipgenerator.clipDisplay.ClipDisplayProjector

public class ClipDisplayProjector extends GeneralProjector<PamCoordinate>
Dummy projector to use with the clip display which is needed as a way of passing a referecne via this projector, to the clipDisplayPanel through to the symbolchooser.
Author:
dg50
  • Constructor Details

    • ClipDisplayProjector

      public ClipDisplayProjector(ClipDisplayPanel clipDisplayPanel)
  • Method Details

    • getCoord3d

      public Coordinate3d getCoord3d(double d1, double d2, double d3)
      Description copied from class: GeneralProjector
      Function ultimately used by a PamDataBlock to convert it's own data, in whatever form that is in into screen coordinates.
      Specified by:
      getCoord3d in class GeneralProjector<PamCoordinate>
      Parameters:
      d1 - d2 and d3 are data representing whatever is appropriate for the concrete instance of the projector (e.g. Latitude, Longitude, depth, Time Frequency, etc)
      Returns:
      A 3 dimensional coordinate (realistically z is never currently used)
    • getCoord3d

      public Coordinate3d getCoord3d(PamCoordinate dataObject)
      Description copied from class: GeneralProjector
      Same as getCoordinate3d but using the generic type
      Specified by:
      getCoord3d in class GeneralProjector<PamCoordinate>
      Parameters:
      dataObject - object extending PamCoordinate
      Returns:
      3d coordinate.
    • getDataPosition

      public PamCoordinate getDataPosition(PamCoordinate screenPosition)
      Description copied from class: GeneralProjector
      Do the exact opposite of getCoord3d and turn a screen position back into a data coordinate (e.g. a time / freq, a lat long, etc)/.
      Specified by:
      getDataPosition in class GeneralProjector<PamCoordinate>
      Parameters:
      screenPosition - screen position
      Returns:
      data object.
    • getClipDisplayPanel

      public ClipDisplayPanel getClipDisplayPanel()
      Returns:
      the clipDisplayPanel