Class BeamDataComponent

All Implemented Interfaces:
Configurable, Findable, BeamDataComponentInterface, gda.observable.IObservable

Reads and saves the data which describes the various zoom levels of a gda.images.camera object.
  • Field Details

  • Constructor Details

    • BeamDataComponent

      public BeamDataComponent()
      Creates a BeamDataComponent, reading the beam data from the file specified by the gda.images.displayConfigFile property.
  • Method Details

    • getInstance

      public static BeamDataComponent getInstance()
      Returns:
      the singleton object for this class.
    • setInstance

      public static void setInstance(BeamDataComponent component)
      Sets the singleton BeamDataComponent.
    • getCamera

      public Camera getCamera()
      Specified by:
      getCamera in interface BeamDataComponentInterface
      Returns:
      the camera object this object refers to.
    • getTestingInstance

      public static BeamDataComponent getTestingInstance(String configfile)
    • refreshBeamData

      public void refreshBeamData()
      Reads from a configuration file the beam centre and size at different zoom levels for display over the image display panel.
    • saveBeamData

      public void saveBeamData()
    • getCurrentBeamData

      public BeamDataComponent.BeamData getCurrentBeamData()
      Specified by:
      getCurrentBeamData in interface BeamDataComponentInterface
      Returns:
      BeamData
    • updateCurrentCentre

      public void updateCurrentCentre(int x, int y)
      Update the beam centre (in pixels) for the current zoom.
      Specified by:
      updateCurrentCentre in interface BeamDataComponentInterface
    • setOpticalCamera

      public void setOpticalCamera(Camera opticalCamera)
    • addIObserver

      public void addIObserver(gda.observable.IObserver observer)
      Specified by:
      addIObserver in interface gda.observable.IObservable
    • deleteIObserver

      public void deleteIObserver(gda.observable.IObserver observer)
      Specified by:
      deleteIObserver in interface gda.observable.IObservable
    • deleteIObservers

      public void deleteIObservers()
      Specified by:
      deleteIObservers in interface gda.observable.IObservable