Class TargetMotionMainPanel<T extends PamDataUnit>

java.lang.Object
targetMotionModule.panels.TargetMotionMainPanel<T>
All Implemented Interfaces:
ColorManaged, PamTabPanel

public class TargetMotionMainPanel<T extends PamDataUnit> extends Object implements PamTabPanel, ColorManaged
  • Field Details

    • northPanelHeight

      public static final int northPanelHeight
      See Also:
    • currentLocalisation

      public JTextField currentLocalisation
    • comment

      public JTextField comment
    • settings

      public static org.kordamp.ikonli.swing.FontIcon settings
  • Constructor Details

  • Method Details

    • createMaps

      public void createMaps()
      Create the maps. This needs to be done after pamguard has initialised because of 3D components.
    • getMap3D

      public MapPanel getMap3D()
    • getMap2D

      public MapPanel getMap2D()
    • showLoadBar

      public void showLoadBar(boolean show)
    • updateControlPanelList

      public void updateControlPanelList()
      Get the current control panels.
    • changeControlPanel

      public void changeControlPanel()
    • createCommentPanel

      public PamPanel createCommentPanel()
    • createSavePanel

      public PamPanel createSavePanel()
      Create panel which allows users to save results
      Returns:
    • update

      public void update(int flag)
    • dataChanged

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

      public void updateCurrentControlPanel()
    • getCurrentControlPanel

      public AbstractControlPanel getCurrentControlPanel()
    • 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()
    • 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
    • createMenu

      public JMenu createMenu(Frame parentFrame)
      Specified by:
      createMenu in interface PamTabPanel
      Returns:
      a JMeny for the panel
    • getPanel

      public JComponent getPanel()
      Specified by:
      getPanel in interface PamTabPanel
      Returns:
      Reference to a graphics component that can be added to the view. This will typically be a JPanel or a JInternalFrame;
    • getToolBar

      public JToolBar getToolBar()
      Specified by:
      getToolBar in interface PamTabPanel
      Returns:
      a JToolbas associated with this tab. This will only be displayed when the current tab is activated
    • getTargetMotionControl

      public TargetMotionControl getTargetMotionControl()