HiRISE

HiRISE.HiPlan.HIPHOP
Class HIPHOP

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.HIPHOP.HIPHOP
All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, ChangeListener

public class HIPHOP
extends JPanel
implements ActionListener, ChangeListener, PropertyChangeListener

A GUI panel containing the HIPHOP controls. This panel can be embedded in a dialog, for example, such as is created by a JOptionPane.

Version:
1.54
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 APPLICATION_GROUP
          The parameter group under which HIPHOP configuration parameters should be found.
static String BLUE_GREEN_CCDS
          The configuration group name for the blue-green CCDs.
static String CONTRAST_RATIO
          The configuration parameter for the initial contrast ratio.
static double DEFAULT_BG_FROST_PEAK_THRESHOLD
          The default value for the frost peak threshold for the blue-green CCDs.
static double DEFAULT_BG_IMAGE_MEAN_THRESHOLD
          The default value for the image mean threshold for the blue-green CCDs.
static double DEFAULT_IR_FROST_PEAK_THRESHOLD
          The default value for the frost peak thresholds for the IR CCDs.
static double DEFAULT_IR_IMAGE_MEAN_THRESHOLD
          The default value for the image mean threshold for the IR CCDs.
static double DEFAULT_RED_FROST_PEAK_THRESHOLD
          The default value for the frost peak thresholds for the red CCDs.
static double DEFAULT_RED_IMAGE_MEAN_THRESHOLD
          The default value for the image mean threshold for the red CCDs.
static String FROST_ALBEDO
          The configuration parameter for the initial frost albedo percentage.
static String FROST_COVER
          The configuration parameter for the initial frost cover percentage.
static String FROST_PEAK_THRESHOLD
          The configuration parameter for the frost peak threshold.
static String ID
          Class identification name with source code version and date.
static String IMAGE_MEAN_THRESHOLD
          The configuration parameter for the image mean threshold.
static double MAXIMUM_INCIDENCE_ANGLE
           
static double MAXIMUM_TOLERABLE_INCIDENCE
           
static String NIR_CCDS
          The configuration group name for the near-IR CCDs.
static String OPTICAL_DEPTH
          The configuration parameter for the initial optical depth.
static String RED_HIGH_CCDS
          The configuration group name for the red CCDs with high binning.
static String RED_LOW_CCDS
          The configuration group name for the red CCDs with low binning.
static String SURFACE_ROUGHNESS
          The configuration parameter for the initial surface roughness.
static String SURFACE_TYPE
          The configuration parameter for the initial surface type.
 
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
HIPHOP(HOGG hogg)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
static int getCcdColorIndex(String ccdName)
           
 Map<String,CCD_Record> getCcdParameters()
          Gets the CCD parameters as set by HIPHOP.
static List<Integer> getDisplayedBins()
          Gets the list of bins to be displayed.
 Map<String,Histogram> getHistograms()
           
 Model.Model_Parameters getModelParameters()
           
 List<String> getParameterReport()
           
 List<String> getReport()
           
 String getWarning()
           
 boolean init()
          Initializes HIPHOP with the current data from the HOGG.
 void propertyChange(PropertyChangeEvent e)
           
 void stateChanged(ChangeEvent e)
           
 
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, 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
 
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

APPLICATION_GROUP

public static final String APPLICATION_GROUP
The parameter group under which HIPHOP configuration parameters should be found.

See Also:
Constant Field Values

FROST_COVER

public static final String FROST_COVER
The configuration parameter for the initial frost cover percentage.

See Also:
Constant Field Values

FROST_ALBEDO

public static final String FROST_ALBEDO
The configuration parameter for the initial frost albedo percentage.

See Also:
Constant Field Values

SURFACE_TYPE

public static final String SURFACE_TYPE
The configuration parameter for the initial surface type.

See Also:
Constant Field Values

CONTRAST_RATIO

public static final String CONTRAST_RATIO
The configuration parameter for the initial contrast ratio.

See Also:
Constant Field Values

OPTICAL_DEPTH

public static final String OPTICAL_DEPTH
The configuration parameter for the initial optical depth.

See Also:
Constant Field Values

SURFACE_ROUGHNESS

public static final String SURFACE_ROUGHNESS
The configuration parameter for the initial surface roughness.

See Also:
Constant Field Values

RED_LOW_CCDS

public static final String RED_LOW_CCDS
The configuration group name for the red CCDs with low binning.

See Also:
Constant Field Values

RED_HIGH_CCDS

public static final String RED_HIGH_CCDS
The configuration group name for the red CCDs with high binning.

See Also:
Constant Field Values

NIR_CCDS

public static final String NIR_CCDS
The configuration group name for the near-IR CCDs.

See Also:
Constant Field Values

BLUE_GREEN_CCDS

public static final String BLUE_GREEN_CCDS
The configuration group name for the blue-green CCDs.

See Also:
Constant Field Values

IMAGE_MEAN_THRESHOLD

public static final String IMAGE_MEAN_THRESHOLD
The configuration parameter for the image mean threshold. This parameter is part of the RED_LOW_CCDS, RED_HIGH_CCDS, NIR_CCDS, and {link #BLUE_GREEN_CCDS}.

See Also:
Constant Field Values

DEFAULT_RED_IMAGE_MEAN_THRESHOLD

public static final double DEFAULT_RED_IMAGE_MEAN_THRESHOLD
The default value for the image mean threshold for the red CCDs.

See Also:
Constant Field Values

DEFAULT_IR_IMAGE_MEAN_THRESHOLD

public static final double DEFAULT_IR_IMAGE_MEAN_THRESHOLD
The default value for the image mean threshold for the IR CCDs.

See Also:
Constant Field Values

DEFAULT_BG_IMAGE_MEAN_THRESHOLD

public static final double DEFAULT_BG_IMAGE_MEAN_THRESHOLD
The default value for the image mean threshold for the blue-green CCDs.

See Also:
Constant Field Values

FROST_PEAK_THRESHOLD

public static final String FROST_PEAK_THRESHOLD
The configuration parameter for the frost peak threshold. This parameter is part of the RED_LOW_CCDS, RED_HIGH_CCDS, NIR_CCDS, and {link #BLUE_GREEN_CCDS}.

See Also:
Constant Field Values

DEFAULT_RED_FROST_PEAK_THRESHOLD

public static final double DEFAULT_RED_FROST_PEAK_THRESHOLD
The default value for the frost peak thresholds for the red CCDs.

See Also:
Constant Field Values

DEFAULT_IR_FROST_PEAK_THRESHOLD

public static final double DEFAULT_IR_FROST_PEAK_THRESHOLD
The default value for the frost peak thresholds for the IR CCDs.

See Also:
Constant Field Values

DEFAULT_BG_FROST_PEAK_THRESHOLD

public static final double DEFAULT_BG_FROST_PEAK_THRESHOLD
The default value for the frost peak threshold for the blue-green CCDs.

See Also:
Constant Field Values

MAXIMUM_INCIDENCE_ANGLE

public static final double MAXIMUM_INCIDENCE_ANGLE
See Also:
Constant Field Values

MAXIMUM_TOLERABLE_INCIDENCE

public static final double MAXIMUM_TOLERABLE_INCIDENCE
See Also:
Constant Field Values
Constructor Detail

HIPHOP

public HIPHOP(HOGG hogg)
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

stateChanged

public void stateChanged(ChangeEvent e)
Specified by:
stateChanged in interface ChangeListener

propertyChange

public void propertyChange(PropertyChangeEvent e)
Specified by:
propertyChange in interface PropertyChangeListener

init

public boolean init()
Initializes HIPHOP with the current data from the HOGG. This method is called prior to HIPHOP's display. If HIPHOP cannot be initialized, an alert is presented to the operator and recorded in the HOGG's status panel.

Returns:
true if HIPHOP was able to be initialized; false otherwise.

getModelParameters

public Model.Model_Parameters getModelParameters()

getCcdParameters

public Map<String,CCD_Record> getCcdParameters()
Gets the CCD parameters as set by HIPHOP. Only TDI, bin, SNR, and image mean are so set; all other parameters are null.

Returns:
the CCD parameters.

getHistograms

public Map<String,Histogram> getHistograms()

getReport

public List<String> getReport()

getWarning

public String getWarning()

getParameterReport

public List<String> getParameterReport()

getDisplayedBins

public static List<Integer> getDisplayedBins()
Gets the list of bins to be displayed. This list is also the bins for which Model performs calculations.

Returns:
a list of HiRISE bin factors.

getCcdColorIndex

public static int getCcdColorIndex(String ccdName)

HiRISE

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