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

  • Method Details

    • setVisible

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

      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

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

      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

      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

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

      public void updateEventList()
    • setCurrentEventIndex

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

      public void enableControls()
    • canRun

      public boolean canRun()
    • start

      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

      public void notifyNewResults()
    • progressReport

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

      public String getUserComment()
    • getColorId

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