HiRISE

HiRISE.HiPlan.HIPHOP
Class CCD_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.HIPHOP.CCD_Panel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ListSelectionListener

public class CCD_Panel
extends JPanel
implements ListSelectionListener

A GUI panel controls for setting the TDI and bin for a particular CCD or set of CCDs.

WARNING: This API is under development and is not stable.

Version:
1.29
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 DEFAULT_CCD_NAME
          The default CCD name.
static double DEFAULT_FROST_PEAK_THRESHOLD
          The default value for the frost peak threshold.
static Paint DEFAULT_HISTOGRAM_PAINT
          The default histogram paint.
static double DEFAULT_IMAGE_MEAN_THRESHOLD
          The default value for the image mean threshold.
static String ID
          Class identification name with source code version and date.
 
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
CCD_Panel(String ccdName)
           
CCD_Panel(String ccdName, List<Integer> displayedBins)
           
CCD_Panel(String ccdName, List<Integer> displayedBins, Paint histogramPaint)
           
 
Method Summary
 void addChangeListener(ChangeListener changeListener)
           
protected  void fireStateChanged()
           
 int getBin()
           
 String getCcdName()
          Gets the name of the CCD that this panel models.
 ChangeListener[] getChangeListeners()
           
 double getCombinedMean()
           
 CCD_Data getData()
           
 CCD_Data.Data_Plane getDataPlane()
           
 double getdn()
           
 double getDnNoise()
           
 double getElectronCount()
           
 double getFrostMean()
           
 double getFrostPeakThreshold()
           
 Paint getHistogramPaint()
          Gets the current paint for the CCD histogram.
 double getImageMeanThreshold()
           
 int getInitialBin()
           
 int getInitialTdi()
           
 double getOffset()
           
 double getSaturation()
          Gets the saturation percentage of the predicted distribution.
 double getSnr()
           
 double getSurfaceMean()
           
 int getTdi()
           
 void removeChangeListener(ChangeListener changeListener)
           
 void setBin(int bin)
           
 void setCdName(String ccdName)
          Sets the name of the CCD that this panel models.
 void setData(CCD_Data data)
           
 void setDataPlane(CCD_Data.Data_Plane dataPlane)
          Sets the data plane displayed in the data table.
 void setEnabled(boolean enabled)
           
 void setFrostPeakThreshold(double frostPeakThreshold)
           
 void setHistogram(Model model)
           
 void setHistogramPaint(Paint histogramPaint)
          Sets the paint for the CCD histogram.
 void setImageMeanThreshold(double imageMeanThreshold)
           
 void setTdi(int tdi)
           
 void setTdiBin(int tdi, int bin)
           
 void updateTable(Model model)
           
 void useLogAxis(boolean useLogAxis)
           
 void valueChanged(ListSelectionEvent 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, 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

DEFAULT_IMAGE_MEAN_THRESHOLD

public static final double DEFAULT_IMAGE_MEAN_THRESHOLD
The default value for the image mean threshold.

See Also:
Constant Field Values

DEFAULT_FROST_PEAK_THRESHOLD

public static final double DEFAULT_FROST_PEAK_THRESHOLD
The default value for the frost peak threshold.

See Also:
Constant Field Values

DEFAULT_HISTOGRAM_PAINT

public static final Paint DEFAULT_HISTOGRAM_PAINT
The default histogram paint. The default is to paint the histogram using the color blue.


DEFAULT_CCD_NAME

public static final String DEFAULT_CCD_NAME
The default CCD name.

See Also:
Constant Field Values
Constructor Detail

CCD_Panel

public CCD_Panel(String ccdName,
                 List<Integer> displayedBins,
                 Paint histogramPaint)

CCD_Panel

public CCD_Panel(String ccdName,
                 List<Integer> displayedBins)

CCD_Panel

public CCD_Panel(String ccdName)
Method Detail

getCcdName

public String getCcdName()
Gets the name of the CCD that this panel models.

Returns:
the CCD name.

setCdName

public void setCdName(String ccdName)
Sets the name of the CCD that this panel models. No effort is made to check that this name is a valid CCD name.

Parameters:
ccdName - the new CCD name.

getHistogramPaint

public Paint getHistogramPaint()
Gets the current paint for the CCD histogram.

Returns:
the current histogram paint.

setHistogramPaint

public void setHistogramPaint(Paint histogramPaint)
Sets the paint for the CCD histogram. If histogramPaint is null, DEFAULT_HISTOGRAM_PAINT will be used instead.

Parameters:
histogramPaint - the new paint; may be null.

getData

public CCD_Data getData()

setData

public void setData(CCD_Data data)

getDataPlane

public CCD_Data.Data_Plane getDataPlane()

setDataPlane

public void setDataPlane(CCD_Data.Data_Plane dataPlane)
Sets the data plane displayed in the data table.

Parameters:
dataPlane - the new data plane.
See Also:
TDI_Bin_Table_Model.setDataPlane(CCD_Data.Data_Plane)

setHistogram

public void setHistogram(Model model)

getImageMeanThreshold

public double getImageMeanThreshold()

setImageMeanThreshold

public void setImageMeanThreshold(double imageMeanThreshold)

getFrostPeakThreshold

public double getFrostPeakThreshold()

setFrostPeakThreshold

public void setFrostPeakThreshold(double frostPeakThreshold)

getInitialBin

public int getInitialBin()

getInitialTdi

public int getInitialTdi()

getTdi

public int getTdi()

setTdi

public void setTdi(int tdi)

getBin

public int getBin()

setBin

public void setBin(int bin)

setTdiBin

public void setTdiBin(int tdi,
                      int bin)

getSurfaceMean

public double getSurfaceMean()

getFrostMean

public double getFrostMean()

getCombinedMean

public double getCombinedMean()

getSaturation

public double getSaturation()
Gets the saturation percentage of the predicted distribution. Note that this value is the percentage, not the decimal fraction.

Returns:
the saturation percentage.

getSnr

public double getSnr()

getdn

public double getdn()

getElectronCount

public double getElectronCount()

getOffset

public double getOffset()

getDnNoise

public double getDnNoise()

addChangeListener

public void addChangeListener(ChangeListener changeListener)

removeChangeListener

public void removeChangeListener(ChangeListener changeListener)

getChangeListeners

public ChangeListener[] getChangeListeners()

fireStateChanged

protected void fireStateChanged()

valueChanged

public void valueChanged(ListSelectionEvent e)
Specified by:
valueChanged in interface ListSelectionListener

updateTable

public void updateTable(Model model)

useLogAxis

public void useLogAxis(boolean useLogAxis)

setEnabled

public void setEnabled(boolean enabled)
Overrides:
setEnabled in class JComponent

HiRISE

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