Package beamformer.localiser.plot
Class BeamLocDisplayComponent
java.lang.Object
beamformer.localiser.plot.BeamLocDisplayComponent
- All Implemented Interfaces:
SimpleObserver<BeamLocaliserData>
,UserDisplayComponent
public class BeamLocDisplayComponent
extends Object
implements UserDisplayComponent, SimpleObserver<BeamLocaliserData>
-
Constructor Summary
ConstructorDescriptionBeamLocDisplayComponent
(BeamLocDisplayProvider beamLocDisplayProvider, BeamFormLocaliserControl bfLocaliserControl, UserDisplayControl userDisplayControl, String uniqueDisplayName) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when the component is removed from the display.Get a title for the frame the component will be added to.void
notifyModelChanged
(int changeType) Pick up model changed notifications from a parent user display.void
Called when the component is first displayed.void
setUniqueName
(String uniqueName) Set a unique name for every display.void
update
(BeamLocaliserData beamLocData) void
-
Constructor Details
-
BeamLocDisplayComponent
public BeamLocDisplayComponent(BeamLocDisplayProvider beamLocDisplayProvider, BeamFormLocaliserControl bfLocaliserControl, UserDisplayControl userDisplayControl, String uniqueDisplayName)
-
-
Method Details
-
getComponent
- Specified by:
getComponent
in interfaceUserDisplayComponent
- Returns:
- The Swing component to add to the frame
-
openComponent
public void openComponent()Description copied from interface:UserDisplayComponent
Called when the component is first displayed.- Specified by:
openComponent
in interfaceUserDisplayComponent
-
closeComponent
public void closeComponent()Description copied from interface:UserDisplayComponent
Called when the component is removed from the display.- Specified by:
closeComponent
in interfaceUserDisplayComponent
-
notifyModelChanged
public void notifyModelChanged(int changeType) Description copied from interface:UserDisplayComponent
Pick up model changed notifications from a parent user display.- Specified by:
notifyModelChanged
in interfaceUserDisplayComponent
-
getUniqueName
- Specified by:
getUniqueName
in interfaceUserDisplayComponent
- Returns:
- a unique name (across all of PAMGuard) which will be used for mark overlays and settings storage.
-
setUniqueName
Description copied from interface:UserDisplayComponent
Set a unique name for every display. This is important for saving settings and for managing things that need a unique name such as overlay marks and markers.- Specified by:
setUniqueName
in interfaceUserDisplayComponent
-
getFrameTitle
Description copied from interface:UserDisplayComponent
Get a title for the frame the component will be added to.- Specified by:
getFrameTitle
in interfaceUserDisplayComponent
- Returns:
- a title for the components frame.
-
update
- Specified by:
update
in interfaceSimpleObserver<BeamLocaliserData>
-
updateSettings
public void updateSettings()- Specified by:
updateSettings
in interfaceSimpleObserver<BeamLocaliserData>
-