| 
|||||||||
| 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
CmpSpots.CmpShowImage
public class CmpShowImage
Class CmpShowImage.java class implements a popup GUI to show images used in the 2D spot pairing program.
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 Open2Dprot Mozilla and Legal files are available on http://Open2Dprot.sourceforge.net/.
| 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 | |
|---|---|
 java.awt.Checkbox | 
addLandmarksCB
the "Add landmarks" checkbox  | 
private  java.awt.Adjustable | 
aH
 | 
 boolean | 
alreadyViewedFlag
flag for closing and reopening popup  | 
private  java.awt.Adjustable | 
aV
 | 
 java.lang.String | 
baseImageFile
base name of the image for use in the title  | 
 boolean | 
changeGuiFlag
flag to indicating that the GUI may have changed and that it should be rebuilt.  | 
 java.awt.Panel | 
controlPanel
Control panel for the main frame  | 
 CmpSpots | 
cs
instance of the main class  | 
 int | 
currentPix
current displayed img index  | 
 java.lang.String | 
dataUnits
Data type as fct of histogram data type  | 
 java.lang.String | 
dispName
Name of image to display after spot pairing  | 
 char[] | 
dispPixC
Picture buffer char[] of image to display after spot pairing.  | 
 java.awt.Choice | 
dispPixChoice
Selector for image to display after spot pairing  | 
 java.lang.String | 
dispPixFile
File of image to display after spot pairing.  | 
static int | 
DIST_THR
Distance threshold in pixels from mouse (x,y) to spot centroid to find spot  | 
 boolean | 
drawHorizSliceFlag
menu CB item to display horizontal slice  | 
 boolean | 
drawVertSliceFlag
menu CB item to display vertical slice  | 
 java.awt.Menu | 
fileMenu
"File" pull down Menu list  | 
 boolean | 
filterByAPlabelFlag
menu CB item to filter spots by AP label  | 
 boolean | 
filterByCurLMSFlag
set from "Filter by LMS" checkbox  | 
 java.awt.Checkbox | 
filterbyLMSCB
the "Filter by LMS" Checkbox  | 
 boolean | 
filterByPPlabelFlag
menu CB item to filter spots by PP label  | 
 boolean | 
filterBySPlabelFlag
menu CB item to filter spots by SP label  | 
 boolean | 
filterByUSlabelFlag
menu CB item to filter spots by US label  | 
 boolean | 
filterGEQactiveBinFlag
menu CB item to test spots for GEQ activeBin value, else LEQ activeBin value fromt the selected histogram bin for the histogram histType spot data.  | 
 java.awt.Menu | 
filterMenu
"Filter" pull down Menu list  | 
 java.lang.String | 
fontFamily
 | 
 boolean | 
hasHistGUIflag
flag to indicate that the GUI contains the Histogram sub-GUI  | 
 DrawHistogram | 
hCanvas
Histogram Canvas to hold the image  | 
 int[] | 
hist
full input unscaled histogram data [0:nHist-1]  | 
static int | 
HIST_DL_DIST
types of histogram data allowed  | 
static int | 
HIST_DP_DIST
types of histogram data allowed  | 
static int | 
HIST_HEIGHT
Height of the histogram  | 
static int | 
HIST_LMS_SIZE
types of histogram data allowed  | 
static int | 
HIST_NONE
types of histogram data allowed  | 
static int | 
HIST_PAIRING_LABELS
types of histogram data allowed  | 
static int | 
HIST_WIDTH
Width of the histogram  | 
 java.awt.Choice | 
histChoice
"Histogram" Choice list  | 
 java.awt.Menu | 
histMenu
"Histogram" pull down Menu list  | 
static java.lang.String[] | 
histNames
list of histogram data types  | 
 int | 
histType
type of data to use with the histogram  | 
 java.awt.Font | 
hugeFont
 | 
 java.awt.Font | 
humongousFont
 | 
 boolean | 
isVisibleFlag
Set true if window is visible  | 
 java.awt.Font | 
largeFont
 | 
 boolean | 
logReportFlag
set from "Log report" checkbox menu item  | 
 float | 
maxDataValue
Maximum value expected for current hist[] data  | 
(package private)  java.awt.MenuBar | 
mbar
menu bar for the frame  | 
 java.awt.Font | 
mediumFont
 | 
 java.awt.Font | 
microFont
 | 
 float | 
minDataValue
Minimum value expected for current hist[] data  | 
 MenuSupport | 
ms
Menu support functions using Hashtables to tack what is active  | 
private  java.awt.TextArea | 
msgTextArea
Text area GUI for message rporting  | 
(package private) static int | 
NCOLS
 | 
 int | 
nHist
size of input unscaled histogram[] data  | 
private  boolean | 
notDoneFlag
Set to kill the run loop  | 
 int | 
nPixels
The pixWidth*pixHeight  | 
 int | 
nPixList
The size of the lists in case list contents is less than size  | 
(package private) static int | 
NROWS
size of the text area in characters  | 
 int | 
nSampleDisp
Sample to display after spot pairing.  | 
 int | 
nsampleSelected
Compute the selected sample (either RSAMPLE or SAMPLE).  | 
 java.lang.String | 
oGifFileName
Full path of image to "Save image" in  | 
 java.awt.Image | 
pImg
Image to display  | 
 char[][] | 
pixClist
List of display pix names associated char[] images  | 
 java.lang.String[] | 
pixFileList
 | 
 int | 
pixHeight
The width of the current image  | 
 int[] | 
pixHeightSize
List of pix widths[] associated with images  | 
 java.lang.String[] | 
pixMenuList
list of display picture menu commands for choices  | 
 java.lang.String[] | 
pixNameList
list of display picture names for choices  | 
 int | 
pixWidth
The width of the current image  | 
 int[] | 
pixWidthSize
List of pix widths[] associated with images  | 
 boolean | 
reportAllSpotPairsForSelectedSpotFlag
set from "Report all spot pairs for selected spot" menu checkbox  | 
 java.lang.Thread | 
runT
reposition scroller thread  | 
static int | 
SCR_HEIGHT
Height of the histogram  | 
static int | 
SCR_WIDTH
Width of the histogram  | 
(package private) static long | 
serialVersionUID
frame id  | 
 boolean | 
showCWflag
 | 
 boolean | 
showDbugCWflag
 | 
 boolean | 
showNDCWflag
 | 
 boolean | 
showPixdumpCWflag
 | 
private  CmpSpotsScrollableImagePanel | 
siCanvas
ScrollableImage to hold the image and scrollers  | 
 java.awt.Font | 
smallFont
 | 
private  java.awt.ScrollPane | 
sp
Scroll pane to hold the image  | 
private  int | 
textAreaFontSize
font size  | 
private  java.lang.String | 
textFontFamily
font family for message window  | 
 boolean | 
useAddCwRdbugFlag
set from "Add -cwRdbug ROI overlay" Menu CB  | 
 boolean | 
useAddCwSdbugFlag
set from "Add -cwSdbug ROI overlay" Menu CB  | 
 java.awt.Checkbox | 
useAddLabelsCB
the "Add labels" checkbox  | 
 boolean | 
useAddLabelsFlag
set from "Add label" checkbox  | 
 boolean | 
useAddLandmarksFlag
set from "Add Landmarks" Menu CB  | 
 boolean | 
useAddLMradiiFlag
set from "Add LM radii" Menu CB  | 
 java.awt.Checkbox | 
useAddVectorCB
the "Add vector" checkbox  | 
 boolean | 
useAddVectorFlag
set from "Add vector" checkbox  | 
 java.awt.Checkbox | 
useDragCB
the "Use drag" checkbox  | 
 boolean | 
useDragFlag
set from "Use drag" checkbox  | 
 boolean | 
useFilterByBinFlag
menu CB item to filter spots by testing if the histogram active bin is selected and histogram spot feature meets the active bin test  | 
 boolean | 
useHistGUIflag
flag to use simple ImageViewer w/o histogram or full GUI with the histogram  | 
 boolean | 
useSaveImageFlag
set from "Save image" Command  | 
 int | 
VIEW_HEIGHT
Height of the frame with and without histogram  | 
 int | 
VIEW_WIDTH_NO_HIST
Width of the frame without histogram  | 
 int | 
VIEW_WIDTH_WITH_HIST
Width of the frame with histogram  | 
 int | 
viewHeight
 | 
 java.awt.Menu | 
viewMenu
"View" pull down Menu list  | 
 int | 
viewWidth
 | 
 int[] | 
xImg
array for x img coords  | 
 int[] | 
yImg
array for y img coords  | 
 java.awt.Choice | 
zoomChoice
zoom Choice list  | 
 int | 
zoomFactor
zoomFactor  | 
| 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 | |
|---|---|
CmpShowImage(CmpSpots cs,
             boolean useHistGUIflag,
             java.lang.String baseImageFile)
CmpShowImage() - Constructor  | 
|
| Method Summary | |
|---|---|
 void | 
actionPerformed(java.awt.event.ActionEvent e)
actionPerformed() - Handle button clicks  | 
 void | 
addHistogramGUI()
addHistogramGUI() - Add the histogram GUI to the ImageViewer GUI  | 
private  void | 
addMenuTree(java.awt.Frame f,
            java.awt.MenuBar mbar)
addMenuTree() - create pull down menus in menu bar  | 
 void | 
adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
adjustmentValueChanged() - handle ImageScroller scroll events.  | 
 boolean | 
buildImageGUI()
buildImageGUI() - Build the ImageViewer GUI  | 
 boolean | 
calcHistogram()
calcHistogram() - compute histogram from image data.  | 
 boolean | 
calDbSpotDataMaxMinValues()
calDbSpotDataMaxMinValues() - calc maxDataValue and minDataValue from the spotList[] data that is inside of the ROI if used.  | 
 void | 
close()
close() - close this popup and reset flags  | 
 java.awt.Dimension | 
getPreferredSize()
getPreferredSize() - getPreferredSize, needed for sizing frame and ScrollPane correctly.  | 
private  boolean | 
initImageGUI(java.lang.String dName)
initImageGUI() - init the image gui  | 
 void | 
itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged() - handle item state changed events NOTE: need to implement radio groups here since AWT only implements radio groups for Checkboxes, and CheckboxMenuItems.  | 
 void | 
paintComponent(java.awt.Graphics g)
paintComponent() - repaint scrollable canvas in region defined by scroll bars  | 
 void | 
positionImageWindow()
positionImageWindow() - position image window on the screen  | 
 void | 
removeHistogramGUI()
removeHistogramGUI() - Remove the histogram GUI from ImageViewer GUI  | 
 void | 
run()
run() - Wait for repaint to be finished after zoom so we can position scrollers in same position a.  | 
 boolean | 
setHistDataGUI(int histDataType)
setHistDataGUI() - set checkbox radio button and choice selected for histogram data type  | 
 void | 
setImageGUI(java.lang.String imgName)
setImageGUI() - set checkbox radio button and choice selected for image to be displayed  | 
 boolean | 
setPixDatabase(java.lang.String[] pixNameList,
               java.lang.String[] pixMenuList,
               java.lang.String[] pixFileList,
               char[][] pixClist,
               int nPixList,
               java.lang.String defaultPixName,
               int[] pixWidthSize,
               int[] pixHeightSize,
               boolean useHistGUIflag)
setPixDatabase() - setup the list of predefined images available to the ImageViewer.  | 
 boolean | 
showImageGUI(java.lang.String dName)
showImageGUI() - show the Image Viewer GUI window  | 
 void | 
showImgMsg(java.lang.String msg)
showImgMsg() - display the msg in text area window  | 
 void | 
start()
start() - start new thread  | 
 void | 
stop()
stop() - stop or suspend thread  | 
 void | 
windowActivated(java.awt.event.WindowEvent e)
 | 
 void | 
windowClosed(java.awt.event.WindowEvent e)
 | 
 void | 
windowClosing(java.awt.event.WindowEvent e)
windowClosing() - closing down the window, get rid of the frame.  | 
 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, getMinimumSize, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, 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 long serialVersionUID
public CmpSpots cs
public boolean useHistGUIflag
public java.lang.String baseImageFile
public boolean changeGuiFlag
public boolean hasHistGUIflag
public final int VIEW_WIDTH_NO_HIST
public final int VIEW_WIDTH_WITH_HIST
public final int VIEW_HEIGHT
public static final int SCR_WIDTH
public static final int SCR_HEIGHT
public static final int HIST_WIDTH
public static final int HIST_HEIGHT
static final int NROWS
static final int NCOLS
public static final int DIST_THR
java.awt.MenuBar mbar
public java.awt.Menu fileMenu
public java.awt.Menu viewMenu
public java.awt.Menu filterMenu
public java.awt.Menu histMenu
public java.awt.Choice zoomChoice
public int zoomFactor
public int[] xImg
public int[] yImg
public java.awt.Choice histChoice
public java.awt.Panel controlPanel
public MenuSupport ms
private java.awt.ScrollPane sp
private java.awt.Adjustable aH
private java.awt.Adjustable aV
private CmpSpotsScrollableImagePanel siCanvas
private java.awt.TextArea msgTextArea
private int textAreaFontSize
private java.lang.String textFontFamily
public java.lang.String fontFamily
public java.awt.Font microFont
public java.awt.Font smallFont
public java.awt.Font mediumFont
public java.awt.Font largeFont
public java.awt.Font hugeFont
public java.awt.Font humongousFont
public java.awt.Choice dispPixChoice
public java.lang.String dispName
public char[] dispPixC
public java.lang.String dispPixFile
public int nSampleDisp
public int nsampleSelected
public java.lang.String[] pixNameList
public java.lang.String[] pixMenuList
public java.lang.String[] pixFileList
public char[][] pixClist
public int nPixList
public int currentPix
public int[] pixWidthSize
public int[] pixHeightSize
public int pixWidth
public int pixHeight
public int nPixels
public java.lang.String oGifFileName
public java.awt.Checkbox filterbyLMSCB
public boolean filterByCurLMSFlag
public boolean isVisibleFlag
public boolean drawHorizSliceFlag
public boolean drawVertSliceFlag
public boolean filterGEQactiveBinFlag
public boolean filterBySPlabelFlag
public boolean filterByPPlabelFlag
public boolean filterByAPlabelFlag
public boolean filterByUSlabelFlag
public boolean useFilterByBinFlag
public java.awt.Checkbox useDragCB
public boolean useDragFlag
public boolean reportAllSpotPairsForSelectedSpotFlag
public java.awt.Checkbox useAddVectorCB
public boolean useAddVectorFlag
public java.awt.Checkbox useAddLabelsCB
public boolean useAddLabelsFlag
public java.awt.Checkbox addLandmarksCB
public boolean useAddLandmarksFlag
public boolean useAddLMradiiFlag
public boolean useAddCwRdbugFlag
public boolean useAddCwSdbugFlag
public boolean useSaveImageFlag
public boolean logReportFlag
public int viewWidth
public int viewHeight
public java.awt.Image pImg
public boolean showCWflag
public boolean showNDCWflag
public boolean showDbugCWflag
public boolean showPixdumpCWflag
public boolean alreadyViewedFlag
public DrawHistogram hCanvas
public int[] hist
public int nHist
public int histType
public static final int HIST_NONE
public static final int HIST_DP_DIST
public static final int HIST_DL_DIST
public static final int HIST_PAIRING_LABELS
public static final int HIST_LMS_SIZE
public static final java.lang.String[] histNames
public java.lang.String dataUnits
public float minDataValue
public float maxDataValue
public java.lang.Thread runT
private boolean notDoneFlag
| Constructor Detail | 
|---|
public CmpShowImage(CmpSpots cs,
                    boolean useHistGUIflag,
                    java.lang.String baseImageFile)
cs - is an instance of the main classuseHistGUIflag - to bring up the histogram GUI as well.baseImageFile - is the base name of the image| Method Detail | 
|---|
public java.awt.Dimension getPreferredSize()
getPreferredSize in class java.awt.Container
public boolean setPixDatabase(java.lang.String[] pixNameList,
                              java.lang.String[] pixMenuList,
                              java.lang.String[] pixFileList,
                              char[][] pixClist,
                              int nPixList,
                              java.lang.String defaultPixName,
                              int[] pixWidthSize,
                              int[] pixHeightSize,
                              boolean useHistGUIflag)
Image names BY CONVENTION: all Rsamples are even (i.e, 0, 2, 4) all Samples are odd (i.e., 1, 3, 5)
pixNameList - is the list of display picture names for choices/menuspixMenuList - is the list of display picture menu cmdspixFileList - is list of associated file names if anypixClist - is list of the associate char[] imagesnPixList - is size of the lists in case list contents is 
        less than sizedefaultPixName - is the default pix namepixWidthSize - is widths of all imagespixHeightSize - is heights of all imagesuseHistGUIflag - to bring up the histogram GUI as well.
private boolean initImageGUI(java.lang.String dName)
dName - is the image to display
public boolean showImageGUI(java.lang.String dName)
public void addHistogramGUI()
public void removeHistogramGUI()
public boolean buildImageGUI()
private void addMenuTree(java.awt.Frame f,
                         java.awt.MenuBar mbar)
f - is framembar - is MenuBarpublic void showImgMsg(java.lang.String msg)
msg - to displaypublic void positionImageWindow()
public void close()
public void windowClosing(java.awt.event.WindowEvent e)
windowClosing in interface java.awt.event.WindowListenere - is window closing eventclose()public void windowOpened(java.awt.event.WindowEvent e)
windowOpened in interface java.awt.event.WindowListenerpublic void windowActivated(java.awt.event.WindowEvent e)
windowActivated in interface java.awt.event.WindowListenerpublic void windowClosed(java.awt.event.WindowEvent e)
windowClosed in interface java.awt.event.WindowListenerpublic void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated in interface java.awt.event.WindowListenerpublic void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified in interface java.awt.event.WindowListenerpublic void windowIconified(java.awt.event.WindowEvent e)
windowIconified in interface java.awt.event.WindowListenerpublic void paintComponent(java.awt.Graphics g)
g - is graphics contextpublic boolean calDbSpotDataMaxMinValues()
public boolean calcHistogram()
public void setImageGUI(java.lang.String imgName)
imgName - is the name namepublic boolean setHistDataGUI(int histDataType)
r - is the radix codepublic void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
e - is adjustment event for scroll barspublic void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged in interface java.awt.event.ItemListenere - is ItemEventpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenere - is action evetpublic void start()
public void run()
run in interface java.lang.Runnablepublic void stop()
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||