Package targetMotionModule.panels
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 Summary
Modifier and TypeFieldDescriptionstatic final int
static org.kordamp.ikonli.swing.FontIcon
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canRun()
void
void
Create the maps.createMenu
(Frame parentFrame) Create panel which allows users to save resultsvoid
dataChanged
(T pamDetection) Called when data in the main source data block are changedvoid
The components colour scheme.getMap2D()
getMap3D()
getPanel()
void
void
showLoadBar
(boolean show) void
start
(boolean runAll) Start a run.void
update
(int flag) void
Get the current control panels.void
-
Field Details
-
northPanelHeight
public static final int northPanelHeight- See Also:
-
currentLocalisation
-
comment
-
settings
public static org.kordamp.ikonli.swing.FontIcon settings
-
-
Constructor Details
-
TargetMotionMainPanel
-
-
Method Details
-
createMaps
public void createMaps()Create the maps. This needs to be done after pamguard has initialised because of 3D components. -
getMap3D
-
getMap2D
-
showLoadBar
public void showLoadBar(boolean show) -
updateControlPanelList
public void updateControlPanelList()Get the current control panels. -
changeControlPanel
public void changeControlPanel() -
createCommentPanel
-
createSavePanel
Create panel which allows users to save results- Returns:
-
update
public void update(int flag) -
dataChanged
Called when data in the main source data block are changed- Parameters:
pamDetection
-
-
updateCurrentControlPanel
public void updateCurrentControlPanel() -
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
-
getColorId
Description copied from interface:ColorManaged
The components colour scheme.- Specified by:
getColorId
in interfaceColorManaged
- Returns:
- PamColor
-
createMenu
- Specified by:
createMenu
in interfacePamTabPanel
- Returns:
- a JMeny for the panel
-
getPanel
- Specified by:
getPanel
in interfacePamTabPanel
- Returns:
- Reference to a graphics component that can be added to the view. This will typically be a JPanel or a JInternalFrame;
-
getToolBar
- Specified by:
getToolBar
in interfacePamTabPanel
- Returns:
- a JToolbas associated with this tab. This will only be displayed when the current tab is activated
-
getTargetMotionControl
-