Class AutoTracker.Wizard

All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants
Enclosing class:
AutoTracker

protected class AutoTracker.Wizard extends JDialog implements PropertyChangeListener
A wizard to guide users of AutoTracker.
See Also:
  • Field Details

    • templateToolbar

      protected JToolBar templateToolbar
    • searchToolbar

      protected JToolBar searchToolbar
    • targetToolbar

      protected JToolBar targetToolbar
    • imageToolbar

      protected JToolBar imageToolbar
    • trackToolbar

      protected JToolBar trackToolbar
    • textPaneSize

      protected Dimension textPaneSize
    • isPositioned

      protected boolean isPositioned
  • Constructor Details

    • Wizard

      public Wizard()
      Constructs a Wizard.
  • Method Details

    • clearTextPaneSize

      public void clearTextPaneSize()
    • propertyChange

      public void propertyChange(PropertyChangeEvent e)
      Responds to property change events. This listens for TFrame.PROPERTY_TFRAME_TAB.
      Specified by:
      propertyChange in interface PropertyChangeListener
      Parameters:
      e - the property change event
    • setChanged

      public void setChanged()
      Sets the changed flag
    • setVisible

      public void setVisible(boolean vis)
      Overrides JDialog setVisible method.
      Overrides:
      setVisible in class Dialog
      Parameters:
      vis - true to show this inspector
    • setFontLevel

      public void setFontLevel(int level)
      Sets the font level.
      Parameters:
      level - the desired font level
    • dispose

      public void dispose()
      Overrides:
      dispose in class Window
    • getAlphaFromPercent

      protected int getAlphaFromPercent(int percent)
    • createGUI

      protected void createGUI()
      Creates the visible components.
    • refreshNow

      protected void refreshNow()
    • acceptAction

      protected void acceptAction()
    • skipAction

      protected void skipAction()
    • startAction

      protected void startAction(ActionEvent e, ActionListener searchAction)
    • deleteLaterAction

      protected void deleteLaterAction()
    • deleteThisAction

      protected void deleteThisAction()
    • deleteButtonAction

      protected void deleteButtonAction()
    • keyFrameButtonAction

      protected void keyFrameButtonAction()
    • deleteKeyFrameAction

      protected void deleteKeyFrameAction()
    • refreshTextPaneSize

      protected void refreshTextPaneSize()
      Refreshes the preferred size of the text pane.
    • refreshStrings

      protected void refreshStrings()
      Refreshes the titles and labels.
    • refreshStringsAsync

      protected void refreshStringsAsync()
    • refreshButtons

      protected void refreshButtons()
      Refreshes the buttons and layout.
    • refreshButtonsAsync

      protected void refreshButtonsAsync()
    • refreshDrawingFlags

      protected void refreshDrawingFlags()
      Refreshes the drawing flags.
    • refreshGUI

      protected void refreshGUI()
      Refreshes the visible components of this wizard.
    • refreshGUIAsync

      protected void refreshGUIAsync()
    • refreshDropdowns

      protected void refreshDropdowns()
      Refreshes the dropdown lists.
    • refreshIcons

      protected void refreshIcons()
      Refreshes the template icons.
    • refreshIconsPosted

      protected void refreshIconsPosted()
    • replaceIcons

      protected void replaceIcons(AutoTracker.KeyFrameData keyFrame)
      Replaces the template icons with new ones.
      Parameters:
      keyFrame - the key frame with the template matcher
    • refreshInfo

      protected void refreshInfo()
      Refreshes the info displayed in the textpane.
    • getTemplateInstructions

      protected String getTemplateInstructions()
      Returns the template instructions.
      Returns:
      the instructions
    • getSearchInstructions

      protected String getSearchInstructions()
      Returns the search instructions.
      Returns:
      the instructions
    • getTargetInstructions

      protected String getTargetInstructions()
      Returns the target instructions.
      Returns:
      the instructions
    • getStatusInfo

      protected String getStatusInfo(int code, int n, double[] peakWidthAndHeight)
      Returns the status text for a given frame number and status code.
      Parameters:
      code - the status code (integer 0-9)
      n - the frame number
      peakWidthAndHeight - the match data
      Returns:
      the status text
    • prepareForFixedSearch

      protected void prepareForFixedSearch(boolean fixed)
    • getMatchDataString

      protected String getMatchDataString()
      Gets the match data as a delimited string with "columns" for frame number, match score, target x and target y.