Class TargetMotionDialog<T extends GroupDetection>

Type Parameters:
T -
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants, ColorManaged

public class TargetMotionDialog<T extends GroupDetection> extends PamDialog implements ColorManaged
Reinstated Target motion add-in as used by the click detector. Hope one day still to replace this with Jamie's new one, but keep this one until Jamie's is working.
Author:
Doug Gillespie
See Also:
  • Constructor Details Link icon

  • Method Details Link icon

    • setVisible Link icon

      public void setVisible(boolean visible)
      Overrides:
      setVisible in class PamDialog
    • cancelButtonPressed Link icon

      public void cancelButtonPressed()
      Description copied from class: PamDialog
      called when the cancel button is pressed before the dialog closes. Generally you should set the parameters returned by the dialog to null or some default value, or in some other way indicate that Cancel was pressed.
      Specified by:
      cancelButtonPressed in class PamDialog
    • setDataUnit Link icon

      public boolean setDataUnit(T dataUnit)
      Select a sepcific data unit in the drop down menu.
      Parameters:
      dataUnit -
      Returns:
    • getParams Link icon

      public boolean getParams()
      Description copied from class: PamDialog
      called when the Ok button is pressed. This must return true in order that the dialog may close. It should also copy all parameters into an object that will be returned by showDialog.
      Specified by:
      getParams in class PamDialog
    • restoreDefaultSettings Link icon

      public void restoreDefaultSettings()
      Description copied from class: PamDialog
      standard function which should us used to copy default parameters into the dialog controls.
      Specified by:
      restoreDefaultSettings in class PamDialog
    • dataChanged Link icon

      public void dataChanged(T pamDetection)
      Called when data in the main source data block are changed
      Parameters:
      pamDetection -
    • updateEventList Link icon

      public void updateEventList()
    • setCurrentEventIndex Link icon

      public void setCurrentEventIndex(int currentEventIndex, Object sender)
    • enableControls Link icon

      public void enableControls()
    • canRun Link icon

      public boolean canRun()
    • start Link icon

      public void start(boolean runAll)
      Start a run. Will need to get options from various sub panels to work out what to actually do.

      Currently just do it all in this thread. In future, will try to rethread so multiple models can run concurrently.

    • notifyNewResults Link icon

      public void notifyNewResults()
    • progressReport Link icon

      public void progressReport(EventLocalisationProgress eventLocalisationProgress)
      Called from the localisation worker thread each time an event is loaded, started, completed, etc.
      Parameters:
      eventLocalisationProgress -
    • getUserComment Link icon

      public String getUserComment()
    • getColorId Link icon

      public PamColors.PamColor getColorId()
      Description copied from interface: ColorManaged
      The components colour scheme.
      Specified by:
      getColorId in interface ColorManaged
      Returns:
      PamColor