public class MissionListView2 extends JList implements MissionEditEventManager2.MissionEditEventListener
Modifier and Type | Class and Description |
---|---|
static class |
MissionListView2.GoalWrapper |
static class |
MissionListView2.LaunchPositionWrapper |
static class |
MissionListView2.MunitionAimWrapper |
static class |
MissionListView2.MunitionLaunchWrapper |
static class |
MissionListView2.RecoveryPositionWrapper |
JList.AccessibleJList, JList.DropLocation
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static int |
INSERT_OPERATION |
static int |
NO_OPERATION |
static int |
REMOVE_OPERATION |
static int |
REPLACE_OPERATION |
HORIZONTAL_WRAP, VERTICAL, VERTICAL_WRAP
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
MissionListView2(MissionEditEventManager2 parent)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addMission(MissionEditDataModel newMissionEditDataModel)
Add a single mission to the project.
|
void |
commandSelected(Object mID,
int cmd)
Indicate in the various views that a mission command has been selected
by the user
|
void |
executionAgendaGoalBegin(Object mID,
String goalID) |
void |
executionAgendaGoalFail(Object mID,
String goal) |
void |
executionAgendaGoalNew(Object mKD,
String goals) |
void |
executionAgendaGoalSuccess(Object mID,
String goal) |
void |
executionAgendaMeta(Object mID,
String msg) |
void |
executionAgendaScriptCommand(Object mID,
String msg) |
void |
executionAgendaVehicleStatus(Object mID,
String msg) |
void |
executionEnd(Object mID,
Object obj) |
void |
executionStart(Object mID)
Start execution in mission ID
|
void |
executionStateReport(Object mID,
String msg) |
void |
executionStateTelemetryDisplayUpdate(Object mID,
String msg) |
List<JComponent> |
getMissionListMenuItems() |
String |
getSuccessFailureString(int index) |
String |
getToolTipText(MouseEvent event)
Override to display description attribute of mission command object
|
void |
missionChanged(Object mID)
Notify of a change of one of the mission nodes
|
void |
missionDisplayReset() |
void |
missionSelected(Object mID)
Handle case were a single mission tab was selected
|
void |
munitionNextTrackBegin(Object mID,
Object obj) |
void |
realtimeCommand(Object mID,
int cmd) |
void |
realtimeLocation(Object mID,
Point2D p) |
protected void |
refreshMissionListPopupMenu()
Creates a right-click popup menu to access missing editing functionality
|
void |
removeMission(Object mID)
Tasks to perform when closing a mission
|
protected void |
resetSuccessFailureStringsHashMap() |
void |
telemetryFix(Object mID,
Object[] pointAndIdx) |
addListSelectionListener, addSelectionInterval, clearSelection, createSelectionModel, ensureIndexIsVisible, fireSelectionValueChanged, getAccessibleContext, getAnchorSelectionIndex, getCellBounds, getCellRenderer, getDragEnabled, getDropLocation, getDropMode, getFirstVisibleIndex, getFixedCellHeight, getFixedCellWidth, getLastVisibleIndex, getLayoutOrientation, getLeadSelectionIndex, getListSelectionListeners, getMaxSelectionIndex, getMinSelectionIndex, getModel, getNextMatch, getPreferredScrollableViewportSize, getPrototypeCellValue, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedIndex, getSelectedIndices, getSelectedValue, getSelectedValues, getSelectedValuesList, getSelectionBackground, getSelectionForeground, getSelectionMode, getSelectionModel, getUI, getUIClassID, getValueIsAdjusting, getVisibleRowCount, indexToLocation, isSelectedIndex, isSelectionEmpty, locationToIndex, paramString, removeListSelectionListener, removeSelectionInterval, setCellRenderer, setDragEnabled, setDropMode, setFixedCellHeight, setFixedCellWidth, setLayoutOrientation, setListData, setListData, setModel, setPrototypeCellValue, setSelectedIndex, setSelectedIndices, setSelectedValue, setSelectionBackground, setSelectionForeground, setSelectionInterval, setSelectionMode, setSelectionModel, setUI, setValueIsAdjusting, setVisibleRowCount, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final int NO_OPERATION
public static final int INSERT_OPERATION
public static final int REPLACE_OPERATION
public static final int REMOVE_OPERATION
public MissionListView2(MissionEditEventManager2 parent)
parent
- our edit event listener/managerpublic String getToolTipText(MouseEvent event)
getToolTipText
in class JList
event
- mouse eventprotected void resetSuccessFailureStringsHashMap()
public void addMission(MissionEditDataModel newMissionEditDataModel)
MissionEditEventManager2.MissionEditEventListener
addMission
in interface MissionEditEventManager2.MissionEditEventListener
newMissionEditDataModel
- MissionEditDataModel
public void missionDisplayReset()
public void missionChanged(Object mID)
MissionEditEventManager2.MissionEditEventListener
missionChanged
in interface MissionEditEventManager2.MissionEditEventListener
mID
- the mission ID of the node changepublic void commandSelected(Object mID, int cmd)
MissionEditEventManager2.MissionEditEventListener
commandSelected
in interface MissionEditEventManager2.MissionEditEventListener
mID
- the ID of the missioncmd
- the index of the selected commandpublic void realtimeCommand(Object mID, int cmd)
realtimeCommand
in interface MissionEditEventManager2.MissionEditEventListener
public void removeMission(Object mID)
MissionEditEventManager2.MissionEditEventListener
removeMission
in interface MissionEditEventManager2.MissionEditEventListener
mID
- the object ID of the mission to closepublic void executionAgendaGoalNew(Object mKD, String goals)
executionAgendaGoalNew
in interface MissionEditEventManager2.MissionEditEventListener
public void executionAgendaGoalBegin(Object mID, String goalID)
executionAgendaGoalBegin
in interface MissionEditEventManager2.MissionEditEventListener
public void executionAgendaGoalFail(Object mID, String goal)
executionAgendaGoalFail
in interface MissionEditEventManager2.MissionEditEventListener
public void executionAgendaGoalSuccess(Object mID, String goal)
executionAgendaGoalSuccess
in interface MissionEditEventManager2.MissionEditEventListener
public String getSuccessFailureString(int index)
index
- public void executionStart(Object mID)
MissionEditEventManager2.MissionEditEventListener
executionStart
in interface MissionEditEventManager2.MissionEditEventListener
mID
- the ID of the mission to startpublic void executionEnd(Object mID, Object obj)
executionEnd
in interface MissionEditEventManager2.MissionEditEventListener
public void realtimeLocation(Object mID, Point2D p)
realtimeLocation
in interface MissionEditEventManager2.MissionEditEventListener
public void telemetryFix(Object mID, Object[] pointAndIdx)
telemetryFix
in interface MissionEditEventManager2.MissionEditEventListener
public void missionSelected(Object mID)
MissionEditEventManager2.MissionEditEventListener
missionSelected
in interface MissionEditEventManager2.MissionEditEventListener
mID
- the ID of the single mission tab selectedpublic void executionAgendaScriptCommand(Object mID, String msg)
executionAgendaScriptCommand
in interface MissionEditEventManager2.MissionEditEventListener
public void executionAgendaVehicleStatus(Object mID, String msg)
executionAgendaVehicleStatus
in interface MissionEditEventManager2.MissionEditEventListener
public void executionAgendaMeta(Object mID, String msg)
executionAgendaMeta
in interface MissionEditEventManager2.MissionEditEventListener
public void munitionNextTrackBegin(Object mID, Object obj)
munitionNextTrackBegin
in interface MissionEditEventManager2.MissionEditEventListener
public void executionStateTelemetryDisplayUpdate(Object mID, String msg)
executionStateTelemetryDisplayUpdate
in interface MissionEditEventManager2.MissionEditEventListener
public void executionStateReport(Object mID, String msg)
executionStateReport
in interface MissionEditEventManager2.MissionEditEventListener
public List<JComponent> getMissionListMenuItems()
protected void refreshMissionListPopupMenu()