|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Canvas
Accession.AccROIwizardPopup.ScrollableImageCanvas
class AccROIwizardPopup.ScrollableImageCanvas
ScrollableImageCanvas class supports a scrollable canvas
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.Canvas |
|---|
java.awt.Canvas.AccessibleAWTCanvas |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
boolean |
altMod
ALT/Mouse |
java.awt.Color |
colorCALCW
Overlay color for Calibration Wedge ROI |
java.awt.Color |
colorCW
Overlay color for CW ROI |
java.awt.Color |
colorROI
Overlay color for working ROI |
java.awt.Color |
colorSPOT_LIST
Overlay color for spot list |
private Accession |
cs
instance of the main class |
private AccROIwizardPopup |
csi
|
boolean |
ctrlMod
CTRL/Mouse |
boolean |
ctrlShiftMod
CTRL-SHIFT/Mouse |
int |
curLMS
current landmark set of current spot. |
java.awt.Color |
cursorColor
Overlay color for cursor |
DbSample |
dbS
Sample instance structure |
java.lang.String |
fontFamily
|
java.awt.Font |
largeFont
|
java.awt.Font |
mediumFont
|
int |
preferredHeight
preferred size of canvas |
int |
preferredWidth
preferred size of canvas |
(package private) static long |
serialVersionUID
frame id |
boolean |
shiftMod
SHIFT/Mouse |
java.awt.Font |
smallFont
|
private int |
xBase
+ base address of ULHC of clipped image in image canvas used in last paint |
int |
xImg
image address (x,y)+(xBase,yBase) |
private int |
yBase
|
int |
yImg
image address (x,y)+(xBase,yBase) |
| 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 | |
|---|---|
AccROIwizardPopup.ScrollableImageCanvas(AccROIwizardPopup csi,
java.awt.Image img)
ScrollableImageCanvas() - constructor. |
|
| Method Summary | |
|---|---|
private void |
drawROIrectangle(java.awt.Graphics g,
int x1,
int x2,
int y1,
int y2,
java.awt.Color color)
drawROIrectangle() - draw a Region Of Interest rectangle if legal |
private void |
drawROItic(java.awt.Graphics g,
int x1,
int y1,
int x2,
int y2,
java.awt.Color color)
drawROItic() - draw a Region Of Interest rectangle if legal |
java.awt.Dimension |
getPreferredSize()
getPreferredSize() - getPreferredSize, must be implemented for ScrollPane to be displayed correctly. |
void |
keyPressed(java.awt.event.KeyEvent e)
keyPressed() - handle key down events |
void |
keyReleased(java.awt.event.KeyEvent e)
|
void |
keyTyped(java.awt.event.KeyEvent e)
|
(package private) void |
mapRelXYtoImage(java.awt.event.MouseEvent e)
mapRelXYtoImage() - map (x,y)Mouse in current canvas to (xImg,yImg) as well as updating the parent.(xImg,yImg) values. |
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
mouseDragged() - display data |
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
mouseMoved() - display data |
void |
mousePressed(java.awt.event.MouseEvent e)
mousePressed() - display data |
void |
mouseReleased(java.awt.event.MouseEvent e)
mouseReleased() - display data |
void |
paint(java.awt.Graphics g)
paint() - repaint scrollable canvas in region defined by scroll bars |
(package private) java.lang.String |
showImageMousePositions(java.awt.event.MouseEvent e,
java.lang.String msgs)
showImageMousePositions() - show the image mouse positions Only report if debugging... |
void |
update(java.awt.Graphics g)
update() - update without background the scrollable canvas |
| Methods inherited from class java.awt.Canvas |
|---|
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
static final long serialVersionUID
private AccROIwizardPopup csi
private Accession cs
public DbSample dbS
public boolean ctrlMod
public boolean shiftMod
public boolean ctrlShiftMod
public boolean altMod
public java.lang.String fontFamily
public java.awt.Font smallFont
public java.awt.Font mediumFont
public java.awt.Font largeFont
private int xBase
private int yBase
public int xImg
public int yImg
public int curLMS
public int preferredWidth
public int preferredHeight
public java.awt.Color cursorColor
public java.awt.Color colorROI
public java.awt.Color colorCW
public java.awt.Color colorCALCW
public java.awt.Color colorSPOT_LIST
| Constructor Detail |
|---|
AccROIwizardPopup.ScrollableImageCanvas(AccROIwizardPopup csi,
java.awt.Image img)
csi - is the image scroller associated with the imageimg - is the image to create| Method Detail |
|---|
public java.awt.Dimension getPreferredSize()
getPreferredSize in class java.awt.Component
final java.lang.String showImageMousePositions(java.awt.event.MouseEvent e,
java.lang.String msgs)
e - is mouse eventmsgs - is message to displayx - is image object positiony - is image object positionpublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenere - is KeyEventpublic void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListenerpublic void keyTyped(java.awt.event.KeyEvent e)
keyTyped in interface java.awt.event.KeyListenerfinal void mapRelXYtoImage(java.awt.event.MouseEvent e)
e - is mouse eventx - is image cursory - is image cursorpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenere - is MouseEventpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenere - is MouseEventpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenere - is MouseEventpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenere - is MouseEventpublic void update(java.awt.Graphics g)
update in class java.awt.Canvasg - is graphics context
private void drawROItic(java.awt.Graphics g,
int x1,
int y1,
int x2,
int y2,
java.awt.Color color)
g - is graphics contextx1 - is ULHCy1 - is ULHCx2 - is LRHCx2 - is LRHCcolor - to use,
private void drawROIrectangle(java.awt.Graphics g,
int x1,
int x2,
int y1,
int y2,
java.awt.Color color)
g - is graphics contextx1 - is ULHCy1 - is ULHCx2 - is LRHCx2 - is LRHCcolor - to use,public void paint(java.awt.Graphics g)
paint in class java.awt.Canvasg - is graphics context
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||