Class DetectionGroupControl

java.lang.Object
PamController.PamControlledUnit
detectiongrouplocaliser.DetectionGroupControl
All Implemented Interfaces:
PamSettings, SettingsNameProvider

public class DetectionGroupControl extends PamControlledUnit implements PamSettings
Class for grouping any type of data together. Not really a localiser, but does include some localisation options.
Will attempt to offer a variety of localisation options and will store data for each group in a pair of database tables.
Author:
dg50
  • Field Details Link icon

  • Constructor Details Link icon

    • DetectionGroupControl Link icon

      public DetectionGroupControl(String unitName)
  • Method Details Link icon

    • getSettingsReference Link icon

      public Serializable getSettingsReference()
      Specified by:
      getSettingsReference in interface PamSettings
      Returns:
      The serialisable object that will be stored
    • getSettingsVersion Link icon

      public long getSettingsVersion()
      Specified by:
      getSettingsVersion in interface PamSettings
      Returns:
      An integer version number for the settings
    • restoreSettings Link icon

      public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
      Specified by:
      restoreSettings in interface PamSettings
      Returns:
      true if successful The object performs final checks (if needed) and then casts the settings data pamcontrolledunitSettings.settings into the correct type and uses as required
    • getDetectionGroupSettings Link icon

      public DetectionGroupSettings getDetectionGroupSettings()
      Returns:
      the detectionGroupSettings
    • createDetectionMenu Link icon

      public JMenuItem createDetectionMenu(Frame parentFrame)
      Description copied from class: PamControlledUnit
      Create a JMenu object containing MenuItems associated with PamProcesses
      Overrides:
      createDetectionMenu in class PamControlledUnit
      Parameters:
      parentFrame - The owner frame of the menu
      Returns:
      reference to a JMenu which can be added to an existing menu or menu bar

      Note that if multiple views are to use the same menu, then they should each create a new menu (by setting Create to true) the first time they call this method.

    • getDetectionGroupProcess Link icon

      public DetectionGroupProcess getDetectionGroupProcess()
      Returns:
      the detectionGroupProcess
    • addGroupObserver Link icon

      public void addGroupObserver(DetectionGroupObserver groupObserver)
      Add an observer of group structure or data changes.
      Parameters:
      groupObserver -
    • removeGroupObserveR Link icon

      public void removeGroupObserveR(DetectionGroupObserver groupObserver)
      Remove an observer of group changes
      Parameters:
      groupObserver -
    • notifyGroupDataChanged Link icon

      public void notifyGroupDataChanged()
      Notify any observers that data have changed.
    • notifyGroupModelChanged Link icon

      public void notifyGroupModelChanged()
      Notify any observers that the group model has changed (effectively this means a change in annotations).
    • getSymbolforMenuItems Link icon

      public SymbolData getSymbolforMenuItems(PamDataUnit dgdu)
    • notifyModelChanged Link icon

      public void notifyModelChanged(int changeType)
      Description copied from class: PamControlledUnit
      General notification when the PAMGAURD model changes.
      Overrides:
      notifyModelChanged in class PamControlledUnit
      Parameters:
      changeType - type of change
    • getDisplayOptionsHandler Link icon

      public DisplayOptionsHandler getDisplayOptionsHandler()
      Returns:
      the displayOptionsHandler