public class Focal_Plane_Assembly_Panel
extends javax.swing.JPanel
The detector control buttons (Instrument_Toggle_Button
s) are
arranged on the panel in the same general orientation as the corresponding
detector chip arrays are laid out on the HiRISE focal plane assembly, with
the nominal direction of flight for the spacecraft being towards the top of
the panel. The buttons are labeled with the correct CCD names as specified
in the HiRISE Instrument
class. An internal list within the object
keeps track of the detector control buttons. Because HiRISE instrument
commanding is done by CPMM ("CCD Processing/Memory Module") number, this
list is indexed by CPMM number. The list is accessed via the getCcdButtons()
method, which returns the list. WARNING: Although
the CCD names include numbers (e.g. "RED3"), the number that is part
of the CCD name is not the same as the CPMM number. The Instrument
class's CCD_NAMES
string array maps
CPMM number to CCD name.
The stimulator lamp control buttons are arranged on the panel according
to wavelength: the control for the blue-green stimulator lamp is on the
same row in the control layout as the detector controls for the blue-green
filtered CCDs, for example. As with the detector control buttons, an
internal list keeps track of the stimulator lamp control buttons. Accessed
via the getStimButtons()
method, the buttons are indexed in the same order
as the stimulator lamp names in the Instrument
class's stimulator lamp list
.
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
Class identification name with source code version and date.
|
static java.lang.String[] |
STIM_LAMP_ABBREVIATIONS
Short names for the stimulator lamps.
|
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
Focal_Plane_Assembly_Panel()
Creates a new instrument panel.
|
Modifier and Type | Method and Description |
---|---|
Instrument_Toggle_Button |
getCcdButton(int cpmm) |
Instrument_Toggle_Button |
getCcdButton(java.lang.String ccd) |
java.util.List<Instrument_Toggle_Button> |
getCcdButtons()
Returns a list of the detector control buttons.
|
Instrument_Toggle_Button |
getStimButton(int stim) |
java.util.List<Instrument_Toggle_Button> |
getStimButtons()
Returns a list of the stimulator lamp control buttons.
|
static void |
main(java.lang.String[] args)
Invokes a standalone test stub of the focal plane assembly panel in its own
thread.
|
protected void |
paintComponent(java.awt.Graphics g)
Draws the
Focal_Plane_Assembly_Panel . |
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, 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 java.lang.String ID
public static final java.lang.String[] STIM_LAMP_ABBREVIATIONS
Instrument
class.Instrument.STIMULATOR_LED_NAMES
public Focal_Plane_Assembly_Panel()
Note that instrument buttons that represent CCDs that are not to be used are not automatically disabled in this panel. It is up to a user (e.g., the HOGG) to disable them.
Flight_Settings
public java.util.List<Instrument_Toggle_Button> getCcdButtons()
Instrument
class provides a string array
that maps CPMM number to CCD name.Instrument_Toggle_Button
s.public Instrument_Toggle_Button getCcdButton(java.lang.String ccd)
public Instrument_Toggle_Button getCcdButton(int cpmm)
public java.util.List<Instrument_Toggle_Button> getStimButtons()
stimulator lamp names
in the Instrument
class.Instrument_Toggle_Button
s.public Instrument_Toggle_Button getStimButton(int stim)
protected void paintComponent(java.awt.Graphics g)
Focal_Plane_Assembly_Panel
.paintComponent
in class javax.swing.JComponent
g
- the Graphics
object to protect.JComponent.paintComponent(java.awt.Graphics)
public static void main(java.lang.String[] args)
Focal_Plane_Assembly_Panel
args
- the command-line arguments, which are unused.Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona