public class MissionRenderer extends javax.swing.JPanel implements java.awt.event.ActionListener, javax.swing.event.ChangeListener, VehicleStateListener
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static int |
R2D_AND_R3D_MULTICAMS |
static int |
R2D_AND_R3D1CAM |
static int |
R2D_ONLY |
static int |
R3D_1CAM |
static int |
R3D_MULTICAMS |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
MissionRenderer(MissionType mission,
int shownRenderers) |
MissionRenderer(PlanType plan,
MapGroup map,
int shownRenderers)
Class constructor
|
MissionRenderer(PlanType plan,
MissionType mission,
int shownRenderers) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent action)
This method is run everytime a new action is performed
|
void |
addButtonToToolbar(javax.swing.AbstractButton button) |
void |
addToolbarAction(javax.swing.AbstractAction action) |
javax.swing.JToolBar |
buildToolbar(boolean showExecutionControls)
Creates the JToolbar to be added in the interface
|
void |
cleanup() |
void |
dispose()
Cleans some memory in use
|
SystemPositionAndAttitude |
getCurstate() |
protected java.util.TimerTask |
getDynObjectsUpdater() |
MapType |
getLocalMap() |
VehicleType |
getMainVehicle() |
MapGroup |
getMapGroup() |
MissionType |
getMission() |
PlanType |
getPlan() |
StateRenderer2D |
getRenderer2d() |
Renderer3D |
getRenderer3d() |
Renderer[] |
getRenderers() |
javax.swing.JComponent |
getRenderPanel() |
void |
setActiveManeuver(java.lang.String manId) |
void |
setInterpolateStatesVisible(boolean visible) |
void |
setMainVehicle(VehicleType mainVehicle) |
void |
setMapGroup(MapGroup mg)
This method refreshes the maps shown in all the renderers contained in this class
|
void |
setMission(MissionType mission) |
void |
setPlan(PlanType plan) |
void |
setVehicleState(VehicleType vehicle,
SystemPositionAndAttitude state) |
void |
showPreviewControls(boolean showPreviewControls) |
void |
startInterpolatingStates() |
void |
startUpdatingDynamicElements() |
void |
stateChanged(javax.swing.event.ChangeEvent e) |
void |
stopInterpolatingStates() |
void |
stopUpdatingDynamicElements() |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, 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, 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 R2D_ONLY
public static final int R3D_1CAM
public static final int R2D_AND_R3D1CAM
public static final int R3D_MULTICAMS
public static final int R2D_AND_R3D_MULTICAMS
public MissionRenderer(PlanType plan, MissionType mission, int shownRenderers)
public MissionRenderer(MissionType mission, int shownRenderers)
public void startInterpolatingStates()
public void stopInterpolatingStates()
public void setVehicleState(VehicleType vehicle, SystemPositionAndAttitude state)
setVehicleState
in interface VehicleStateListener
public javax.swing.JToolBar buildToolbar(boolean showExecutionControls)
public void addButtonToToolbar(javax.swing.AbstractButton button)
public void dispose()
public void actionPerformed(java.awt.event.ActionEvent action)
actionPerformed
in interface java.awt.event.ActionListener
public void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged
in interface javax.swing.event.ChangeListener
public void setMapGroup(MapGroup mg)
mg
- The new MapGrouppublic Renderer[] getRenderers()
public javax.swing.JComponent getRenderPanel()
public SystemPositionAndAttitude getCurstate()
public VehicleType getMainVehicle()
public void setMainVehicle(VehicleType mainVehicle)
public void cleanup()
public StateRenderer2D getRenderer2d()
public Renderer3D getRenderer3d()
public void setMission(MissionType mission)
public MissionType getMission()
public void setPlan(PlanType plan)
public PlanType getPlan()
public void showPreviewControls(boolean showPreviewControls)
public void addToolbarAction(javax.swing.AbstractAction action)
public void setActiveManeuver(java.lang.String manId)
public void setInterpolateStatesVisible(boolean visible)
public void startUpdatingDynamicElements()
public void stopUpdatingDynamicElements()
public MapType getLocalMap()
protected java.util.TimerTask getDynObjectsUpdater()
public MapGroup getMapGroup()
Copyright © 2004-2014 FEUP-LSTS and Neptus developers. All Rights Reserved.