|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
DrawHistogram
class DrawHistogram
The DrawHistogram class is used to draw an image intensity histogram in a popup frame. It is used for both the a) ROI region intensity histogram, and b) the ND step wedge calibraion (grayscale to OD) histogram. It is created on a per image (left or right) basis.
NOTES: ===== - The this.calibHistFlag indicates if it is a calibration or ROI histogram. - The instance lives in iData[12].dwHist and in iData[12].dwCalHist. - The histogram lives in iData.hist[] and is computed by iData.calcHistogramROI() and iData.calcHistogram() - The (Quantify | Region Of Interest | Show ROI histogram (C-H)) creates the histogram and computes the ROI data. i.e., (Quantify | Region of interest (ROI) | Capture measurement by ROI (C-R)) will also update the histogram if it exists. - Popup the calibration histogram from the menu (Quantify | Calibrate | Optical density). - There are different menu buttons in this popup depending on the functionality: either computing window ROI histogram or calibration (ND step wedge) histogram.
The ND step wedge or spot-list grayscale to OD calibration procedure ============================--------------============================ If a cal/{imageFile}.cal file exists when the image is loaded into flicker, it was read in at that time. Then when the Calibrate OD histogram was started, it uses those values in the Calibration Peaks table. Otherwise, the table will be null. NOTE: if you are using one of the four demo Leukemia gels, it will preload the OD values for demonstration purposes. 1. If you are using the step wedge, define a well-define ROI region around the ND step wedge in the image using C-U (ULHC) and C-L (LRHC). Then compute the histogram using C-R. 1.1 If instead, you are using the getPeaksByMeasFlag option, then do NOT import the ROI histogram, but instead get the data from the iData.spotList[] to save in a new histogram and the gray-peaks table as the mean spot values. 2. If there are no OD data in the peaks table, then enter the OD calibration values into the red Optical Density TextFields. [If the calibration was set previously and we read them in from the .cal file, then preset these fields.] Also preset the corresponding grayscale Gray-peak TextField values if you know what the values are. Special hack: If the current gel is not calibrated and the other gel has a calibration step list calib.ndWedgeODvalues[0:maxNDsteps-1] for maxNDsteps>0, then use it to save time typing it in. 3. To force it to analyze the ROI wedge area, click on the "Analyze wedge ROI" button. This recomputes the histogram on the ROI (which may have changed) and the recomputes the calibration curve. 4. This will also update the Calibration Peak Table and generate the extrapolated mapGrayToOD[] calibration. The new histogram will show the Gray-peak values cooresponding to the OD values with red tick marks on the peaks. 4.1 It calls calib.findPeaks() to find the peaks and copies the peaks into the Calibration Peak Table Gray-peak TextFields. 4.2 It calls calib.extrapolateNDwedge() to compute calib.mapGrayToOD[] 4.3 It redraws the histogram plot with a) overlay calibration curve calib.mapGrayToOD[] b) Peaks table of (OD values, peak gray values) 5. You can edit the peak list, by selecting a peak with the mouse and then pressing either throws "Add peak" or "Delete peak" button in which case it redoes steps 4 through 4.3. 6. When you are done editing you can save the calibration by pressing the "Save calibration state" button. This saves the calibration data in the cal/{imageFile}.cal file and copies the calib.mapGrayToOD[] to the iData instance which you can then use for making calibrated measurements. 7. Press "Done" to exit the calibration wizard.This work was produced by Peter Lemkin of the National Cancer Institute, an agency of the United States Government. As a work of the United States Government there is no associated copyright. It is offered as open source software under the Mozilla Public License (version 1.1) subject to the limitations noted in the accompanying LEGAL file. This notice must be included with the code. The Flicker Mozilla and Legal files are available on http://open2dprot.sourceforge.net/Flicker.
ShowHistPopup
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JFrame |
---|
javax.swing.JFrame.AccessibleJFrame |
Nested classes/interfaces inherited from class java.awt.Frame |
---|
java.awt.Frame.AccessibleAWTFrame |
Nested classes/interfaces inherited from class java.awt.Window |
---|
java.awt.Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
(package private) int |
activeBin
active bin idx [0:nHist-1] else -1 |
private java.lang.String |
activeImage
active image name is "left" or "right" |
(package private) static int |
CAL_POPUP_HEIGHT
default frame size height of popup |
(package private) static int |
CAL_POPUP_WIDTH
default frame size width of popup |
private CalibrateOD |
calib
link to working data related CalibrateOD instance |
private CalibrateOD |
calibBKUP
Backup copy of the initial CalibrateOD instance that can be used for restoring the calibration. |
private boolean |
calibChangedFlag
The calibration peak table changed |
private boolean |
calibHistFlag
The histogram is a calibration histogram |
private java.awt.Color |
calibPeakColor
calibration peaks on histogram color |
private int |
cHeight
working canvas height |
private int |
cWidth
working canvas width |
private boolean |
drawIntoImageFlag
set if draw plot to GIF file |
private java.awt.Panel |
editPanel
Array of TextFields used in constructing the editable Peak Calibration Table. |
private static Flicker |
flk
link to global Flicker instance |
private java.lang.String |
fontFamily
Font family |
(package private) java.awt.Dimension |
frameSize
size of frame |
private boolean |
getPeaksByMeasFlag
Get the peaks from the circular mask measurement spot list using the mean circle measurement grayscale values not corrected for background (since we do not know what background is). |
private int[] |
hist
freq hist[0:nHist-1]. |
private java.awt.Color |
histColor
|
private int |
histMode
The histogram mode is either: MODE_CW_ROI_HIST, MODE_CALIB_ND_ROI_HIST, or MODE_CALIB_SPOTLIST_HIST |
private java.awt.Color |
histTopColor
|
private java.lang.String |
horizCaption
horizontal caption |
private ImageData |
iData
link to data related ImageData instance |
private java.lang.String |
imageFile
current image file name |
boolean |
isVisibleFlag
If the Histogram is visible |
private java.awt.Color |
labelColor
|
private java.awt.Font |
largeFont
medium font used for labeling |
private java.awt.Color |
lightWhite
|
(package private) static int |
MAX_GRAY
# gray values in a pixel |
(package private) static int |
MAX_ND_STEPS
default # of peak wedge calibration table steps |
(package private) static int |
MAXBINS
# of histogram into bins |
private java.awt.Font |
mediumFont
medium font used for labeling |
(package private) static int |
MODE_CALIB_ND_ROI_HIST
Draw histogram mode - draw calibration ND wedge histogram based on ND ROI region. |
(package private) static int |
MODE_CALIB_SPOTLIST_HIST
Draw histogram mode - draw calibration histogram based on spot list data. |
(package private) static int |
MODE_CW_ROI_HIST
Draw histogram mode - draw CW ROI histogram |
(package private) static int |
N_PCT_PROLOGUE
default # of initial rows in the peak wedge calibration table |
private java.awt.Color |
odColor
|
private java.lang.String |
oGifFileName
full Gif file path name |
private java.awt.Color |
optBkgrdColor
|
(package private) static int |
PEAK_CAL_TBL_COLS
default # of editPanel cols |
(package private) static int |
PEAK_CAL_TBL_ROWS
default # of editPanel rows |
private java.awt.TextField[][] |
peakCalTblTF
Array of TextFields used in constructing the Peak Calibration Table editPanel. |
private java.awt.Color |
peakNbrColor
peak number color |
private int |
peakNbrFontSize
font size for peak number labels |
(package private) java.lang.String |
r1
extra sample data |
(package private) java.lang.String |
r2
extra sample data |
(package private) java.lang.String |
r3
extra sample data |
(package private) static int |
ROI_POPUP_HEIGHT
default frame size height of popup |
(package private) static int |
ROI_POPUP_WIDTH
default frame size width of popup |
private int[] |
sHist
modified freq sHist[0:nHist-1]. |
private java.awt.Font |
smallFont
small font used for labeling |
private java.awt.Label |
statusLabel
status Label |
private java.awt.Color |
textInputColor
|
private java.lang.String |
title
current canvas title |
private static Util |
util
link to global CalibrateOD instance |
private java.lang.String |
vertCaption
vertical caption |
private static int[] |
xPainted
active hit coordinates |
private static int[] |
yPainted
active y hit coordinates |
Fields inherited from class javax.swing.JFrame |
---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
DrawHistogram(Flicker flk,
java.lang.String title,
java.lang.String horizCaption,
java.lang.String vertCaption,
int histMode)
DrawHistogram() - create a histogram plot for left or right selected image. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
actionPerformed() - Handle Control panel button clicks |
private void |
buildHistGUI()
buildHistGUI() - build the histogram GUI |
void |
close()
close() - close this popup and reset flags if needed [TODO] If they edited the calibration and peak calibration table, and they did not save the calibration (i.e. |
private static void |
drawFilledBox(java.awt.Graphics g,
int xC,
int yC,
int width,
java.awt.Color color)
drawFilledBox() - draw plus sign at the specified color. |
(package private) boolean |
drawGifFile(java.lang.String oGifFileName)
drawGifFile() - draw plot into Gif image file if in stand-alone mode. |
private boolean |
drawHistInCanvas(java.awt.Graphics g)
drawHistInCanvas() - draw histogram of hist[]. |
private static void |
drawPlus(java.awt.Graphics g,
int x,
int y,
java.awt.Color color)
drawPlus() - draw plus sign at the specified color. |
boolean |
genPeaksFromMeasSpotList()
genPeaksFromMeasSpotList() - get the peak list from the circular mask measurement spot list using the mean circle measurement grayscale values. |
java.awt.Dimension |
getMinimumSize()
getMinimumSize() - get the minimum preferred size |
java.awt.Dimension |
getPreferredSize()
getPreferredSize() - getPreferredSize, needed for sizing frame correctly. |
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
mouseDragged() - process mouse event |
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
boolean |
mouseHandler(int x,
int y)
mouseHandler() - search for the active bin if any |
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
mouseReleased() - process mouse event |
void |
paint(java.awt.Graphics g)
paint() - draw the histogram |
private void |
positionHistWindow()
positionHistWindow() - position histogram window on the screen |
private boolean |
reExtrapolateCalibration()
reExtrapolateCalibration() - regenerate the mapGrayToOD[] from the peak table |
boolean |
refreshPeakTable(boolean updateMapFlag)
refreshPeakTable() - refresh the peak table from the TextFields... |
void |
setExtraInfo(java.lang.String r1,
java.lang.String r2,
java.lang.String r3)
setExtraInfo() - set the extra info fields (r1,r2,f3) |
void |
setHorizCaption(java.lang.String horizCaption)
setHorizCaption() - set the horizontal caption |
void |
setStatusMsg(java.lang.String msg)
setStatusMsg() - set the status msg |
void |
setStatusMsg(java.lang.String msg,
java.awt.Color color)
setStatusMsg() - set the status msg |
void |
setTitleHist(java.lang.String title)
setTitleHist() - set the title |
void |
setVertCaption(java.lang.String vertCaption)
setVertCaption() - set the vertical caption |
void |
setVisible(boolean isVisibleFlag,
boolean redoROIhistFlag)
setVisible() - set the histogram as visible or not |
void |
updateHistogramPlot(boolean redoROIhistFlag)
updateHistogramPlot() - set hist state and do repaint to draw it. |
private void |
updatePeakCalTable()
updatePeakCalTable() - update the peak calibration table with new data from the calib od and gray value arrays. |
void |
windowActivated(java.awt.event.WindowEvent e)
|
void |
windowClosed(java.awt.event.WindowEvent e)
|
void |
windowClosing(java.awt.event.WindowEvent e)
windowClosing() - close down the window. |
void |
windowDeactivated(java.awt.event.WindowEvent e)
|
void |
windowDeiconified(java.awt.event.WindowEvent e)
|
void |
windowIconified(java.awt.event.WindowEvent e)
|
void |
windowOpened(java.awt.event.WindowEvent e)
|
Methods inherited from class javax.swing.JFrame |
---|
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
Methods inherited from class java.awt.Frame |
---|
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.awt.Window |
---|
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, toBack, toFront |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
---|
getFont, postEvent |
Field Detail |
---|
static final int MAX_GRAY
static final int MAXBINS
static final int MODE_CW_ROI_HIST
static final int MODE_CALIB_ND_ROI_HIST
static final int MODE_CALIB_SPOTLIST_HIST
static final int ROI_POPUP_WIDTH
static final int ROI_POPUP_HEIGHT
static final int CAL_POPUP_WIDTH
static final int CAL_POPUP_HEIGHT
static final int N_PCT_PROLOGUE
static final int MAX_ND_STEPS
static final int PEAK_CAL_TBL_ROWS
static final int PEAK_CAL_TBL_COLS
private static Flicker flk
private static Util util
private CalibrateOD calib
private CalibrateOD calibBKUP
private ImageData iData
private java.lang.String imageFile
private java.lang.String activeImage
private int histMode
private boolean calibHistFlag
private boolean calibChangedFlag
private boolean getPeaksByMeasFlag
java.awt.Dimension frameSize
private int cWidth
private int cHeight
private java.lang.String oGifFileName
private java.lang.String title
private java.lang.String vertCaption
private java.lang.String horizCaption
java.lang.String r1
java.lang.String r2
java.lang.String r3
int activeBin
private int[] hist
private int[] sHist
private boolean drawIntoImageFlag
private java.awt.Font smallFont
private java.awt.Font mediumFont
private java.awt.Font largeFont
private java.lang.String fontFamily
private int peakNbrFontSize
private java.awt.Color lightWhite
private java.awt.Color optBkgrdColor
private java.awt.Color textInputColor
private java.awt.Color histColor
private java.awt.Color histTopColor
private java.awt.Color odColor
private java.awt.Color calibPeakColor
private java.awt.Color labelColor
private java.awt.Color peakNbrColor
private java.awt.Panel editPanel
private java.awt.TextField[][] peakCalTblTF
private java.awt.Label statusLabel
private static int[] xPainted
private static int[] yPainted
public boolean isVisibleFlag
Constructor Detail |
---|
public DrawHistogram(Flicker flk, java.lang.String title, java.lang.String horizCaption, java.lang.String vertCaption, int histMode)
flk
- is the Flicker instancetitle
- is window titlehorizCaption
- is horizontal captionvertCaption
- is vertical caption (generally frequency)histMode
- is either MODE_CW_ROI_HIST, MODE_CALIB_ND_ROI_HIST,
or MODE_CALIB_SPOTLIST_HISTMethod Detail |
---|
private void buildHistGUI()
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class java.awt.Container
private void positionHistWindow()
public void setStatusMsg(java.lang.String msg)
msg
- is the status window msgpublic void setStatusMsg(java.lang.String msg, java.awt.Color color)
msg
- is the status window msgcolor
- to draw itpublic void setTitleHist(java.lang.String title)
title
- is window titlepublic void setHorizCaption(java.lang.String horizCaption)
horizCaption
- is horizontal captionpublic void setVertCaption(java.lang.String vertCaption)
vertCaption
- is vertical caption (generally frequency)public void setVisible(boolean isVisibleFlag, boolean redoROIhistFlag)
redoROIhistFlag
- will reompute thie iData.hist[]
from the ROI window in the image.boolean drawGifFile(java.lang.String oGifFileName)
oGifFileName
- is the full path GIF output file
public void setExtraInfo(java.lang.String r1, java.lang.String r2, java.lang.String r3)
public java.awt.Dimension getMinimumSize()
getMinimumSize
in class java.awt.Container
private void updatePeakCalTable()
Array of TextFields used in constructing the editable Peak Calibration Table. It is of size [0:PEAK_CAL_TBL_ROWS-1][0:PEAK_CAL_TBL_COLS-1]. holding the N_PCT_PROLOGUE rows plus the MAX_ND_STEPS. ------------------------------------------------------------- col #0 col #1 col #2 col #3 ------------------------------------------------------------- 0 Calibration units ["optical density" / "Grayvalue" / "CPM", etc.] 1 Wedge window [ndcwx1 : ndcwx2, ndcwy1 : ndcwy2] - set by ROI 2 Wedge identifier ["manufacturer and part #"] 3 Step #1 OD [od value] Gray peak [gray value] Step #2 OD [od value] Gray peak [gray value] . . . n Step #n OD [od value] Gray peak [gray value] -------------------------------------------------------------
public boolean refreshPeakTable(boolean updateMapFlag)
updateMapFlag
- to apply the new table to updating mapGrayToOD[].
private boolean reExtrapolateCalibration()
public boolean genPeaksFromMeasSpotList()
public void updateHistogramPlot(boolean redoROIhistFlag)
redoROIhistFlag
- will reompute thie iData.hist[]
from the ROI window in the image.private static final void drawPlus(java.awt.Graphics g, int x, int y, java.awt.Color color)
g
- is graphics contextx
- is center of objecty
- is center of objectcolor
- is color to drawprivate static final void drawFilledBox(java.awt.Graphics g, int xC, int yC, int width, java.awt.Color color)
g
- is graphics contextx
- is center of objecty
- is center of objectwidth
- is width of objectcolor
- is color to drawprivate boolean drawHistInCanvas(java.awt.Graphics g)
g
- is graphics contextpublic void paint(java.awt.Graphics g)
paint
in class java.awt.Container
g
- is graphics contextdrawHistInCanvas(java.awt.Graphics)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- is ActionEvent for buttons in control panelpublic boolean mouseHandler(int x, int y)
x
- mouse positiony
- mouse position
public void close()
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
e
- is mouse pressed eventpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
e
- is mouse pressed eventpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void windowClosing(java.awt.event.WindowEvent e)
windowClosing
in interface java.awt.event.WindowListener
e
- is window closing eventclose()
public void windowOpened(java.awt.event.WindowEvent e)
windowOpened
in interface java.awt.event.WindowListener
public void windowActivated(java.awt.event.WindowEvent e)
windowActivated
in interface java.awt.event.WindowListener
public void windowClosed(java.awt.event.WindowEvent e)
windowClosed
in interface java.awt.event.WindowListener
public void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated
in interface java.awt.event.WindowListener
public void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified
in interface java.awt.event.WindowListener
public void windowIconified(java.awt.event.WindowEvent e)
windowIconified
in interface java.awt.event.WindowListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |