Class Focal_Plane_Assembly_Panel

  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by HiRISE.HiPlan.HOGG.Focal_Plane_Assembly_Panel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class Focal_Plane_Assembly_Panel
extends JPanel

A graphical representation of the HiRISE focal plane assembly that includes controls for activating the instrument's detectors and stimulator lamps.

The detector control buttons (Instrument_Toggle_Buttons) 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.

Christian Schaller - UA/PIRL
See Also:
Serialized Form

Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JPanel
Nested classes/interfaces inherited from class javax.swing.JComponent
Nested classes/interfaces inherited from class java.awt.Container
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Field Summary
static String ID
          Class identification name with source code version and date.
          Short names for the stimulator lamps.
Fields inherited from class javax.swing.JComponent
Fields inherited from class java.awt.Component
Fields inherited from interface java.awt.image.ImageObserver
Constructor Summary
          Creates a new instrument panel.
Method Summary
 Instrument_Toggle_Button getCcdButton(int cpmm)
 Instrument_Toggle_Button getCcdButton(String ccd)
 List<Instrument_Toggle_Button> getCcdButtons()
          Returns a list of the detector control buttons.
 Instrument_Toggle_Button getStimButton(int stim)
 List<Instrument_Toggle_Button> getStimButtons()
          Returns a list of the stimulator lamp control buttons.
static void main(String[] args)
          Invokes a standalone test stub of the focal plane assembly panel in its own thread.
protected  void paintComponent(Graphics g)
          Draws the Focal_Plane_Assembly_Panel.
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
Methods inherited from class javax.swing.JComponent
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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, 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
Methods inherited from class java.awt.Container
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, transferFocusBackward, transferFocusDownCycle, validate, validateTree
Methods inherited from class java.awt.Component
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, hide, 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, transferFocusUpCycle
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail


public static final String ID
Class identification name with source code version and date.

See Also:
Constant Field Values


public static final String[] STIM_LAMP_ABBREVIATIONS
Short names for the stimulator lamps. These are indexed just like the stimulator lamp names in the Instrument class.

See Also:
Constructor Detail


public Focal_Plane_Assembly_Panel()
Creates a new instrument 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.

See Also:
Method Detail


public List<Instrument_Toggle_Button> getCcdButtons()
Returns a list of the detector control buttons. The buttons are indexed by CPMM ("CCD Processing/Memory Module") number. WARNING: Although the CCD name includes a number, it is not necessarily the same as the CPMM number. The Instrument class provides a string array that maps CPMM number to CCD name.

a list of the CCD Instrument_Toggle_Buttons.


public Instrument_Toggle_Button getCcdButton(String ccd)


public Instrument_Toggle_Button getCcdButton(int cpmm)


public List<Instrument_Toggle_Button> getStimButtons()
Returns a list of the stimulator lamp control buttons. The buttons are indexed in the same order as the corresponding stimulator lamp names in the Instrument class.

a list of the stimulator lamp Instrument_Toggle_Buttons.


public Instrument_Toggle_Button getStimButton(int stim)


protected void paintComponent(Graphics g)
Draws the Focal_Plane_Assembly_Panel.

paintComponent in class JComponent
g - the Graphics object to protect.
See Also:


public static void main(String[] args)
Invokes a standalone test stub of the focal plane assembly panel in its own thread.



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