Package difar.display

Class DIFARGram

java.lang.Object
difar.display.DIFARGram
All Implemented Interfaces:
DIFARDisplayUnit

public class DIFARGram extends Object implements DIFARDisplayUnit
Display window for viewing and selecting bearings from difarDataUnits Contains a spectrogram, the DIFARGram (i.e. bearing, frequency, power ambiguity surface), user controls (e.g. save, delete, etc.) and a status bar.
  • Field Details

    • cursor

      public VRCursor cursor
    • spectrogramImageChoice

      public int spectrogramImageChoice
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface DIFARDisplayUnit
    • getComponent

      public Component getComponent()
      Specified by:
      getComponent in interface DIFARDisplayUnit
    • getDifarGroupPanel

      public DIFARGroupPanel getDifarGroupPanel()
    • difarNotification

      public int difarNotification(DIFARMessage difarMessage)
      Specified by:
      difarNotification in interface DIFARDisplayUnit
    • prepareDifarImage

      public boolean prepareDifarImage()
    • repaintAll

      public void repaintAll()
    • getFreqImageBins

      public int[] getFreqImageBins(DifarDataUnit difarDataUnit, BufferedImage difarImage)
      Image may be zoomed in frequency so may only plot a subset of the available image.
      Parameters:
      difarDataunit - difar data unit
      difarImage2 - image.
      Returns:
      bin limits for drawing of image on difargram and spectrgram
    • setClickedPosition

      public void setClickedPosition(MouseEvent e)
      Called when user clicks on the DIFARgram with the left mouse button
      Parameters:
      e - mouse data.
    • createPopupMenu

      public JPopupMenu createPopupMenu(MouseEvent e)
    • restoreDifarMaximum

      public void restoreDifarMaximum()
      Restore maximum values
    • zoomFrequency

      public void zoomFrequency()
      Called when the zoom state of the control panel changes. Remake the axes and repaint the images.