Package gda.images.camera
Class BeamDataComponent
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.images.camera.BeamDataComponent
- All Implemented Interfaces:
Configurable,Findable,BeamDataComponentInterface,gda.observable.IObservable
@ServiceInterface(BeamDataComponentInterface.class)
public class BeamDataComponent
extends FindableConfigurableBase
implements BeamDataComponentInterface
Reads and saves the data which describes the various zoom levels of a gda.images.camera object.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates aBeamDataComponent, reading the beam data from the file specified by thegda.images.displayConfigFileproperty. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIObserver(gda.observable.IObserver observer) voiddeleteIObserver(gda.observable.IObserver observer) voidstatic BeamDataComponentstatic BeamDataComponentgetTestingInstance(String configfile) voidReads from a configuration file the beam centre and size at different zoom levels for display over the image display panel.voidstatic voidsetInstance(BeamDataComponent component) Sets the singletonBeamDataComponent.voidsetOpticalCamera(Camera opticalCamera) voidupdateCurrentCentre(int x, int y) Update the beam centre (in pixels) for the current zoom.Methods inherited from class gda.factory.FindableConfigurableBase
getName, setNameMethods inherited from class gda.factory.ConfigurableBase
configure, isConfigureAtStartup, isConfigured, reconfigure, setConfigured
-
Field Details
-
INSTANCE_NAME
- See Also:
-
-
Constructor Details
-
BeamDataComponent
public BeamDataComponent()Creates aBeamDataComponent, reading the beam data from the file specified by thegda.images.displayConfigFileproperty.
-
-
Method Details
-
getInstance
- Returns:
- the singleton object for this class.
-
setInstance
Sets the singletonBeamDataComponent. -
getCamera
- Specified by:
getCamerain interfaceBeamDataComponentInterface- Returns:
- the camera object this object refers to.
-
getTestingInstance
-
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
- Specified by:
getCurrentBeamDatain interfaceBeamDataComponentInterface- Returns:
- BeamData
-
updateCurrentCentre
public void updateCurrentCentre(int x, int y) Update the beam centre (in pixels) for the current zoom.- Specified by:
updateCurrentCentrein interfaceBeamDataComponentInterface
-
setOpticalCamera
-
addIObserver
public void addIObserver(gda.observable.IObserver observer) - Specified by:
addIObserverin interfacegda.observable.IObservable
-
deleteIObserver
public void deleteIObserver(gda.observable.IObserver observer) - Specified by:
deleteIObserverin interfacegda.observable.IObservable
-
deleteIObservers
public void deleteIObservers()- Specified by:
deleteIObserversin interfacegda.observable.IObservable
-