|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container java.awt.Window java.awt.Frame javax.swing.JFrame BuildGUI
public class BuildGUI
BuildGUI class is used to build the Flicker GUI. This will create other class instances in the process.
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
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 | |
---|---|
javax.swing.JCheckBox |
allowXformsCheckbox
Allow transforms, so that there is no oImg. |
java.awt.Scrollbar |
angleBar
scroll bar for angle |
javax.swing.JLabel |
angleLabel
GUI label for angle scroll |
java.awt.Scrollbar |
brightnessBar
scroll bar for brightness |
javax.swing.JLabel |
brightnessLabel
GUI label for brightness scroll |
javax.swing.JLabel |
canvasSizeLabel
GUI label for "Canvas size: xxxx" |
(package private) static java.awt.CheckboxMenuItem[] |
chkBoxMenuItemList
[MAX_CHKBOX_CMDS] list of ALL checkboxItem cmds menu items corresponding to names |
(package private) static java.lang.String[] |
chkBoxMenuLabelList
[MAX_CHKBOX_CMDS] list of checkboxItem cmds menu labels |
javax.swing.JCheckBox |
clickableCheckbox
enable clickable images |
javax.swing.JCheckBox |
composeXformCheckbox
xform previous oImg Image |
java.awt.Scrollbar |
contrastBar
scroll bar for contasrt |
javax.swing.JLabel |
contrastLabel
GUI label for contrast scroll |
static int |
DEFAULT_DELAY
0.30 sec default delay if not flickering |
static int |
DEFAULT_FLICKER_DELAY
default flicker delay0.20 sec |
(package private) static boolean[] |
disableXformMenuCmds
[MAX_CMDS] list of [0:nXformMenuCmds-1] disabled Transform menuItems |
java.awt.Menu |
editMenu
"Edit" pull down Menu list |
java.awt.Scrollbar |
eScaleBar
scroll bar for eScale |
javax.swing.JLabel |
eScaleLabel
GUI label for eScale scroll |
(package private) static EventMenu |
evMu
event handler |
java.awt.Menu |
fDemoMenuStub
last fDemo menu tree stub for use if rebuild it |
java.awt.Menu |
fileMenu
"File" pull down Menu list |
javax.swing.JCheckBox |
flickerCheckbox
Toggle flicker on/off |
(package private) Flicker |
flk
Flicker instance |
java.awt.Menu |
fMapMenuStub
last fMap menu tree stub for use if rebuild it |
java.awt.Menu |
fRecentMenuStub
last fRecent menu tree stub for use if rebuild it |
java.awt.Menu |
fUserMenuStub
last fUser menu tree stub for use if rebuild it |
java.awt.Menu |
helpMenu
"Help" pull down Menu list |
java.awt.Menu |
lmsMenu
"Landmark" pull down Menu list |
private static int |
MAX_CHKBOX_CMDS
max number of menu checkbox items allowed |
private static int |
MAX_CMDS
max number of menu items allowed. |
static int |
MAX_DELAY
maximum delay 10000 mSec= 10.0 Sec |
static int |
MAX_FLICKER_DELAY
maximum flicker delay1000 mSec= 1.0 Sec |
int |
maxMsgSize
max text length that can be put into msg1 or msg2 |
(package private) java.awt.MenuBar |
mbar
menu bar |
java.awt.Scrollbar |
measCircleRadiusBar
scroll bar for measCircleRadius |
javax.swing.JLabel |
measCircleRadiusLabel
GUI label for measCircleRadius scroll |
(package private) static java.lang.String[] |
menuActionCmdList
[MAX_CMDS] list of menuItem (short-form) cmds for event handler |
(package private) static java.lang.String[] |
menuActionLabelList
[MAX_CMDS] list of menuItem commands labels |
(package private) static java.awt.MenuItem[] |
menuItemMustSelect
[0:nMImustSelect-1] list of MenuItems that must be selected else they are disabled (grayed out). |
(package private) java.awt.CheckboxMenuItem |
mi_autoMeasProtLookupPopupCB
Auto measure, protein lookup in active server and Web page popup |
(package private) java.awt.CheckboxMenuItem |
mi_dbugCB
View DEBUGGING menu item checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_DispGrayValsCB
View display gray level in image title menu item checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_flickerCB
View menu checkbox item linked with flickerCheckbox |
(package private) java.awt.CheckboxMenuItem |
mi_GangBCImgsCB
View gang brightness/contrast menu item checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_GangScrollImgsCB
View gang scrolling menu item checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_GangZoomImgsCB
View gang scrolling menu item checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_MeasCtrCB
Use measurement counters checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_MultPopupsCB
View multiple browser popups menu item checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_Quant_UseLeukemiaDemoCalibCB
Use demo leukemia gels ND wedge calibration preloads item checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_QuantSpotListModeCB
|
(package private) java.awt.CheckboxMenuItem |
mi_QuantTotDensityCB
Quant menu to compute total integrated density for spot else the mean item checkbox |
java.awt.CheckboxMenuItem |
mi_saveOimagesWhenSaveStateCB
|
(package private) java.awt.CheckboxMenuItem |
mi_showReportPopupCB
View Report Popup item checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_thresholdInsideCB
Quant threshold Inside menu item checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_useGuardImgsCB
|
java.awt.CheckboxMenuItem |
mi_useLogTIFFfilesCB
Use log of TIFF file else scale to 8-bit data |
(package private) java.awt.CheckboxMenuItem |
mi_useNTSCrgbTograyCvtCB
Convert RGB image to grayscale using NTSC transform if needed checkbox. |
(package private) java.awt.CheckboxMenuItem |
mi_usePIRiProClassServerCB
Use PIR iProClass DB (IPROCLASS) access checkbox. |
(package private) java.awt.CheckboxMenuItem |
mi_usePIRiProLinkServerCB
Use PIR uProLink DB (IPROLINK) access checkbox. |
(package private) java.awt.CheckboxMenuItem |
mi_usePIRUniprotServerCB
Use PIR UniProt DB (UNIPROT) access checkbox. |
java.awt.CheckboxMenuItem |
mi_useProteinDBbrowserCB
|
(package private) java.awt.CheckboxMenuItem |
mi_useSwiss2DpageServerCB
Use Swiss-2DPAGE DB (SWISS-2DPAGE) access checkbox. |
(package private) java.awt.CheckboxMenuItem |
mi_ViewAnnSpotIdCB
View measured spot annotation {ann} as "spot.id" menu item checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_ViewAnnSpotNbrCB
View measured spot annotation {ann} as "spot.nbr" menu item checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_ViewBoundaryCB
View boundaries menu item checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_ViewLastMeasSpotAsCircleCB
[FUTURE] View last measured spot location as "circle"{ann} menu item checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_ViewLastMeasSpotAsPlusCB
View last measured spot location as "+"{ann} menu item checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_ViewLmsCB
View landmarks menu item checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_ViewMeasCircleCB
View measurement circles menu item checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_ViewMeasSpotLocAsCircleCB
View measured spot location as "circle"{ann} menu item checkbox. |
(package private) java.awt.CheckboxMenuItem |
mi_ViewMeasSpotLocAsPlusCB
View measured spot location as "+"{ann} menu item checkbox. |
(package private) java.awt.CheckboxMenuItem |
mi_ViewRoiCB
View ROI rectangle menu item checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_ViewTargetCB
View target menu item checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_ViewTrialObjCB
View trial object menu item checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_WinDmpRadixDecCB
Quant menu WinDmp radix decimal mode checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_WinDmpRadixHexCB
Quant menu WinDmp radix hex mode checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_WinDmpRadixOctCB
Quant menu WinDmp radix octal mode checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_WinDmpRadixODCB
Quant menu WinDmp radix optical density mode checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_WinDmpSize10x10CB
Quant menu WinDmp size 10x10 checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_WinDmpSize15x15CB
Quant menu WinDmp size 15x15 checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_WinDmpSize20x20CB
Quant menu WinDmp size 20x20 checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_WinDmpSize25x25CB
Quant menu WinDmp size 25x25 checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_WinDmpSize30x30CB
Quant menu WinDmp size 30x30 checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_WinDmpSize35x35CB
Quant menu WinDmp size 35x35 checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_WinDmpSize40x40CB
Quant menu WinDmp size 40x40 checkbox |
(package private) java.awt.CheckboxMenuItem |
mi_WinDmpSize5x5CB
Quant menu WinDmp size 5x5 checkbox |
static int |
MIN_DELAY
minimum delay 0.10 sec |
static int |
MIN_FLICKER_DELAY
minimum flicker delay0.01 sec |
(package private) static int |
nCBcmds
# of menu CheckBoxMenuItem item cmds [0:nCBcmds-1] |
(package private) static int |
nCmds
# of menu item commands [0:nCmds-1] |
(package private) static int |
nMImustSelect
|
(package private) static int |
nXformMenuCmds
# of Transform menuItems |
PopupDialogQuery |
pdq
generic popup dialog |
javax.swing.JPanel |
pImages
+++++++ Gui stuff +++++++ |
java.awt.Menu |
pluginMenu
"Plugins" pull down Menu list |
ShowReportPopup |
pra
generic popup report |
java.awt.Menu |
quantMenu
"Quantify" pull down Menu list |
java.awt.Component |
selectedComponent
from Mouse Adapters |
(package private) static long |
serialVersionUID
for JFrame |
java.awt.Menu |
sUserPairTreeMnu
Add directories for paired user images tree |
java.awt.Menu |
sUserSingleTreeMnu
Add directories for single user images tree |
javax.swing.JLabel |
textMsgLabel1
GUI text 1 msg line |
javax.swing.JLabel |
textMsgLabel2
GUI text 2 msg line |
static int |
THICKNESS
Thickness of the scrollbar slider control |
static int |
THR_COLINEARITY
threshold for LMS colinearity |
java.awt.Scrollbar |
threshold1Bar
scroll bar for threshold1 |
javax.swing.JLabel |
threshold1Label
GUI label for threshold 1 scroll |
java.awt.Scrollbar |
threshold2Bar
scroll bar for threshold2 |
javax.swing.JLabel |
threshold2Label
GUI label for threshold 2 scroll |
(package private) java.lang.String |
title
title for frame |
static boolean |
userImagesProblemFlag
flag set if the user had too many images in the Images/ subdirectories |
(package private) Util |
util
Util instance |
java.awt.Menu |
viewMenu
"View" pull down Menu list |
java.awt.Menu |
xformMenu
"Transform" pull down Menu list |
(package private) static java.awt.MenuItem[] |
xformMenuCmds
[MAX_CMDS] list of [0:nXformMenuCmds-1] Transform menuItems |
java.awt.Scrollbar |
zoomBar
scroll bar for (AWT display zoom) |
javax.swing.JLabel |
zoomLabel
GUI label for zoom scroll (AWT zoom) |
java.awt.Scrollbar |
zoomMagBar
scroll bar for zoom (de_zoom transform over 1/N to NX zoom (-N to +N)) |
javax.swing.JLabel |
zoomMagLabel
GUI label for zoom scroll de_zoom transform over 1/N to NX zoom (-N to +N)) |
java.awt.Scrollbar |
zScaleBar
scroll bar for zScale |
javax.swing.JLabel |
zScaleLabel
GUI label for zScale scroll |
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 | |
---|---|
BuildGUI(Flicker flk,
java.lang.String title)
BuildGUI() - constructor for Class BuildGUI |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
actionPerformed() - handle action performed state changed events |
private void |
addCheckboxes(javax.swing.JPanel chkboxPanel)
addCheckboxes() - add checkboxes to chkboxPanel |
(package private) void |
addImageParameterStateScrollers(javax.swing.JPanel pScroll)
addImageParameterStateScrollers() - create image parameter state scrollers and put on right of main frame. |
private void |
addImageScrollers(javax.swing.JPanel pFlicker,
javax.swing.JPanel pImages)
addImageScrollers() - add image scrollers: flicker to pFlicker, and image 1 and Image 2 scrollable images to pImages panels in the frame. |
private void |
addMenuTree(java.awt.Frame f,
java.awt.MenuBar mbar)
addMenuTree() - create pull down menus in menu bar |
boolean |
addUserImagesMenuTrees()
addUserImagesMenuTrees() - build both paired and single menu trees |
void |
buildGUI(javax.swing.JFrame f)
buildGUI() - Build the GUI consisting of pannels and image areas |
private void |
createFlkDemoMenuTree(java.awt.Menu smnu)
createFlkDemoMenuTree() - create the FlkDemo menu tree from the FlkDemo database "FlkDemoDB.txt" file |
private void |
createFlkMapMenuTree(java.awt.Menu smnu)
createFlkMapMenuTree() - create the FlkMap menu tree from the FlkMap database "DB/FlkMapDB.txt" file |
boolean |
createFlkRecentMenuTree(java.awt.Menu smnu)
createFlkRecentMenuTree() - create the FlkRecent menu tree from the FlkRecent database "FlkRecentDB.txt" file |
private boolean |
createFlkUserPairsMenuTree(java.awt.Menu smnu)
createFlkUserPairsMenuTree() - create the paired FlkUser menu tree from analyzing the Images/* directories and setup the database of pairs of user directory images |
private boolean |
createFlkUserSingleMenuTree(java.awt.Menu smnu)
createFlkUserSingleMenuTree() - create the single image FlkUser menu tree from analyzing the Images/* directories and setup the database of user directory single images |
void |
itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged() - handle item state changed events. |
private java.awt.CheckboxMenuItem |
makeChkBoxMenuItem(java.awt.Menu pm,
java.lang.String sLabel,
java.lang.String sCmd,
int shortcut,
boolean value)
makeChkBoxMenuItem() - make CheckboxMenuItem entry in popup menu list. |
private java.awt.MenuItem |
makeMenuItem(java.awt.Menu pm,
java.lang.String sLabel,
java.lang.String sCmd,
int shortcut,
boolean mustSelectImgFlag)
makeMenuItem() - make menuItem entry in menu list. |
private java.awt.Menu |
makeSubMenu(java.awt.Menu pm,
java.lang.String sLabel,
java.lang.String sCmd,
int shortcut)
makeSubMenu() - make submenu entry in menu list. |
private java.awt.MenuItem |
makeTransformMenuItem(java.awt.Menu pm,
java.lang.String sLabel,
java.lang.String sCmd,
int shortcut,
boolean mustSelectImgFlag)
makeTransformMenuItem() - make transform menuItem entry in menu list. |
void |
paint(java.awt.Graphics g)
paintComponent() - repaint scroll bars |
void |
setGuiEnable(boolean flag)
setGuiEnable() enable/disable GUI operations |
void |
setMustSelectImageMenuItemsEnable(boolean flag)
setMustSelectImageMenuItemsEnable() - enable/disable GUI menu items that must have an image selected to be enabled |
void |
setTransformsEnable(boolean flag)
setTransformsEnable() enable/disable GUI Transforms menu operations |
void |
stateChanged(javax.swing.event.ChangeEvent changeEvent)
|
void |
syncGuiWithState()
syncGuiWithState() - sync GUI checkboxes and menu checkboxes with the state which may have changed. |
void |
windowActivated(java.awt.event.WindowEvent e)
|
void |
windowClosed(java.awt.event.WindowEvent e)
|
void |
windowClosing(java.awt.event.WindowEvent e)
windowClosing() - close 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, getMinimumSize, getMousePosition, getPreferredSize, 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 long serialVersionUID
Flicker flk
Util util
static EventMenu evMu
java.lang.String title
java.awt.MenuBar mbar
public static final int THICKNESS
public static final int DEFAULT_DELAY
public static final int MIN_DELAY
public static final int MAX_DELAY
public static final int DEFAULT_FLICKER_DELAY
public static final int MIN_FLICKER_DELAY
public static final int MAX_FLICKER_DELAY
public static final int THR_COLINEARITY
private static final int MAX_CMDS
private static final int MAX_CHKBOX_CMDS
static int nCmds
static java.lang.String[] menuActionLabelList
static java.lang.String[] menuActionCmdList
static java.awt.MenuItem[] menuItemMustSelect
static int nMImustSelect
static int nCBcmds
static java.lang.String[] chkBoxMenuLabelList
static java.awt.CheckboxMenuItem[] chkBoxMenuItemList
static int nXformMenuCmds
static java.awt.MenuItem[] xformMenuCmds
static boolean[] disableXformMenuCmds
public static boolean userImagesProblemFlag
public PopupDialogQuery pdq
public ShowReportPopup pra
public javax.swing.JPanel pImages
public java.awt.Component selectedComponent
public java.awt.Menu fileMenu
public java.awt.Menu editMenu
public java.awt.Menu viewMenu
public java.awt.Menu lmsMenu
public java.awt.Menu xformMenu
public java.awt.Menu quantMenu
public java.awt.Menu pluginMenu
public java.awt.Menu helpMenu
public java.awt.Menu fDemoMenuStub
public java.awt.Menu fMapMenuStub
public java.awt.Menu fRecentMenuStub
public java.awt.Menu fUserMenuStub
public java.awt.Menu sUserPairTreeMnu
public java.awt.Menu sUserSingleTreeMnu
java.awt.CheckboxMenuItem mi_flickerCB
java.awt.CheckboxMenuItem mi_ViewLmsCB
java.awt.CheckboxMenuItem mi_ViewTargetCB
java.awt.CheckboxMenuItem mi_ViewTrialObjCB
java.awt.CheckboxMenuItem mi_ViewBoundaryCB
java.awt.CheckboxMenuItem mi_ViewRoiCB
java.awt.CheckboxMenuItem mi_ViewMeasCircleCB
java.awt.CheckboxMenuItem mi_ViewLastMeasSpotAsCircleCB
java.awt.CheckboxMenuItem mi_ViewLastMeasSpotAsPlusCB
java.awt.CheckboxMenuItem mi_ViewMeasSpotLocAsCircleCB
java.awt.CheckboxMenuItem mi_ViewMeasSpotLocAsPlusCB
java.awt.CheckboxMenuItem mi_ViewAnnSpotNbrCB
java.awt.CheckboxMenuItem mi_ViewAnnSpotIdCB
java.awt.CheckboxMenuItem mi_MultPopupsCB
java.awt.CheckboxMenuItem mi_GangScrollImgsCB
java.awt.CheckboxMenuItem mi_GangZoomImgsCB
java.awt.CheckboxMenuItem mi_GangBCImgsCB
java.awt.CheckboxMenuItem mi_useGuardImgsCB
java.awt.CheckboxMenuItem mi_DispGrayValsCB
java.awt.CheckboxMenuItem mi_showReportPopupCB
java.awt.CheckboxMenuItem mi_useNTSCrgbTograyCvtCB
java.awt.CheckboxMenuItem mi_autoMeasProtLookupPopupCB
java.awt.CheckboxMenuItem mi_useSwiss2DpageServerCB
java.awt.CheckboxMenuItem mi_usePIRUniprotServerCB
java.awt.CheckboxMenuItem mi_usePIRiProClassServerCB
java.awt.CheckboxMenuItem mi_usePIRiProLinkServerCB
java.awt.CheckboxMenuItem mi_dbugCB
java.awt.CheckboxMenuItem mi_Quant_UseLeukemiaDemoCalibCB
java.awt.CheckboxMenuItem mi_QuantTotDensityCB
java.awt.CheckboxMenuItem mi_QuantSpotListModeCB
java.awt.CheckboxMenuItem mi_MeasCtrCB
java.awt.CheckboxMenuItem mi_thresholdInsideCB
java.awt.CheckboxMenuItem mi_WinDmpSize5x5CB
java.awt.CheckboxMenuItem mi_WinDmpSize10x10CB
java.awt.CheckboxMenuItem mi_WinDmpSize15x15CB
java.awt.CheckboxMenuItem mi_WinDmpSize20x20CB
java.awt.CheckboxMenuItem mi_WinDmpSize25x25CB
java.awt.CheckboxMenuItem mi_WinDmpSize30x30CB
java.awt.CheckboxMenuItem mi_WinDmpSize35x35CB
java.awt.CheckboxMenuItem mi_WinDmpSize40x40CB
java.awt.CheckboxMenuItem mi_WinDmpRadixDecCB
java.awt.CheckboxMenuItem mi_WinDmpRadixOctCB
java.awt.CheckboxMenuItem mi_WinDmpRadixHexCB
java.awt.CheckboxMenuItem mi_WinDmpRadixODCB
public java.awt.CheckboxMenuItem mi_useLogTIFFfilesCB
public java.awt.CheckboxMenuItem mi_saveOimagesWhenSaveStateCB
public java.awt.CheckboxMenuItem mi_useProteinDBbrowserCB
public javax.swing.JCheckBox flickerCheckbox
public javax.swing.JCheckBox clickableCheckbox
public javax.swing.JCheckBox allowXformsCheckbox
public javax.swing.JCheckBox composeXformCheckbox
public javax.swing.JLabel textMsgLabel1
public javax.swing.JLabel textMsgLabel2
public int maxMsgSize
public javax.swing.JLabel zoomLabel
public javax.swing.JLabel zoomMagLabel
public javax.swing.JLabel angleLabel
public javax.swing.JLabel eScaleLabel
public javax.swing.JLabel zScaleLabel
public javax.swing.JLabel contrastLabel
public javax.swing.JLabel brightnessLabel
public javax.swing.JLabel threshold2Label
public javax.swing.JLabel threshold1Label
public javax.swing.JLabel measCircleRadiusLabel
public javax.swing.JLabel canvasSizeLabel
public java.awt.Scrollbar zoomBar
public java.awt.Scrollbar zoomMagBar
public java.awt.Scrollbar angleBar
public java.awt.Scrollbar eScaleBar
public java.awt.Scrollbar zScaleBar
public java.awt.Scrollbar contrastBar
public java.awt.Scrollbar brightnessBar
public java.awt.Scrollbar threshold2Bar
public java.awt.Scrollbar threshold1Bar
public java.awt.Scrollbar measCircleRadiusBar
Constructor Detail |
---|
public BuildGUI(Flicker flk, java.lang.String title)
Method Detail |
---|
private java.awt.MenuItem makeMenuItem(java.awt.Menu pm, java.lang.String sLabel, java.lang.String sCmd, int shortcut, boolean mustSelectImgFlag)
pm
- is the menu to install itsLabel
- is the visible labelsCmd
- is the opt Cmd name (uses sLabel if null)shortcut
- is the opt short cutmustSelectImgFlag
- to save the menu item in a list that will
be check when an image is selected or deselected for disabling
that menu item.
private java.awt.MenuItem makeTransformMenuItem(java.awt.Menu pm, java.lang.String sLabel, java.lang.String sCmd, int shortcut, boolean mustSelectImgFlag)
pm
- is the menu to install itsLabel
- is the visible labelsCmd
- is the opt Cmd name (uses sLabel if null)shortcut
- is the opt short cutmustSelectImgFlag
- to save the menu item in a list that will
be check when an image is selected or deselected for disabling
that menu item.
private java.awt.Menu makeSubMenu(java.awt.Menu pm, java.lang.String sLabel, java.lang.String sCmd, int shortcut)
pm
- is the menu to install itsLabel
- is the visible labelsCmd
- is the opt Cmd name (uses sLabel if null)shortcut
- is the opt short cutprivate java.awt.CheckboxMenuItem makeChkBoxMenuItem(java.awt.Menu pm, java.lang.String sLabel, java.lang.String sCmd, int shortcut, boolean value)
pm
- is the menu to install itsLabel
- is the visible labelsCmd
- is the opt Cmd name (uses sLabel if null)shortcut
- is the opt short cutvalue
- is the initial value of the checkboxprivate void createFlkMapMenuTree(java.awt.Menu smnu)
smnu
- to attach the treeprivate void createFlkDemoMenuTree(java.awt.Menu smnu)
smnu
- to attach the treeprivate boolean createFlkUserPairsMenuTree(java.awt.Menu smnu)
smnu
- to attach the tree
private boolean createFlkUserSingleMenuTree(java.awt.Menu smnu)
smnu
- to attach the tree
public boolean createFlkRecentMenuTree(java.awt.Menu smnu)
smnu
- to attach the tree
public void syncGuiWithState()
public void setGuiEnable(boolean flag)
public void setMustSelectImageMenuItemsEnable(boolean flag)
flag
- to enable/disble the GUIpublic void setTransformsEnable(boolean flag)
flag
- to enable/disble the GUIpublic void buildGUI(javax.swing.JFrame f)
----------------------------- | Menu buttons - menu bar | ----------------------------- |- NORTH | ----------------------------- | Checkboxes - WEST | ----------------------------- | Scroll bars - EAST | ----------------------------- | Flicker window - CENTER | ----------------------------- | I1 + I2 images - SOUTH | -----------------------------
f
- is the frame to put the GUI inprivate void addMenuTree(java.awt.Frame f, java.awt.MenuBar mbar)
f
- is framembar
- is MenuBarpublic boolean addUserImagesMenuTrees()
void addImageParameterStateScrollers(javax.swing.JPanel pScroll)
private void addCheckboxes(javax.swing.JPanel chkboxPanel)
private void addImageScrollers(javax.swing.JPanel pFlicker, javax.swing.JPanel pImages)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- is action eventpublic void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
e
- is checkbox event Checkbox and menu checkbox commandspublic void windowClosing(java.awt.event.WindowEvent e)
windowClosing
in interface java.awt.event.WindowListener
e
- is window closing eventMAExplorer#quit
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
public void windowOpened(java.awt.event.WindowEvent e)
windowOpened
in interface java.awt.event.WindowListener
public void stateChanged(javax.swing.event.ChangeEvent changeEvent)
public void paint(java.awt.Graphics g)
paint
in class java.awt.Container
g
- is graphics context
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |