HiRISE

HiRISE.HiPlan.HOGG
Class Focal_Plane_Assembly_Panel

java.lang.Object
  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.

Version:
1.13
Author:
Christian Schaller - UA/PIRL
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
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.
static String[] STIM_LAMP_ABBREVIATIONS
          Short names for the stimulator lamps.
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
Focal_Plane_Assembly_Panel()
          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

ID

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

See Also:
Constant Field Values

STIM_LAMP_ABBREVIATIONS

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:
Instrument.STIMULATOR_LED_NAMES
Constructor Detail

Focal_Plane_Assembly_Panel

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:
Flight_Settings
Method Detail

getCcdButtons

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.

Returns:
a list of the CCD Instrument_Toggle_Buttons.

getCcdButton

public Instrument_Toggle_Button getCcdButton(String ccd)

getCcdButton

public Instrument_Toggle_Button getCcdButton(int cpmm)

getStimButtons

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.

Returns:
a list of the stimulator lamp Instrument_Toggle_Buttons.

getStimButton

public Instrument_Toggle_Button getStimButton(int stim)

paintComponent

protected void paintComponent(Graphics g)
Draws the Focal_Plane_Assembly_Panel.

Overrides:
paintComponent in class JComponent
Parameters:
g - the Graphics object to protect.
See Also:
JComponent.paintComponent(java.awt.Graphics)

main

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

Usage

Focal_Plane_Assembly_Panel

Parameters:
args - the command-line arguments, which are unused.

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona