|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Canvas
ij.gui.ImageCanvas
fr.esrf.tangoatk.widget.util.JImageJ.RenderedImageCanvas
protected class JImageJ.RenderedImageCanvas
An ImageCanvas which can manage AdvancedImagePlus and its multi Roi. This Component will also take care of Graphics translation when necessary.
| 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 | |
|---|---|
protected boolean |
selectionMode
|
| Fields inherited from class ij.gui.ImageCanvas |
|---|
crosshairCursor, defaultCursor, dstHeight, dstWidth, flags, handCursor, ij, imageHeight, imageUpdated, imageWidth, imp, magnification, moveCursor, srcRect, usePointer, xMouse, xMouseStart, xSrcStart, yMouse, yMouseStart, ySrcStart |
| 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 | |
|---|---|
JImageJ.RenderedImageCanvas(ij.ImagePlus imp)
|
|
| Method Summary | |
|---|---|
void |
add(java.awt.PopupMenu popup)
|
protected java.awt.Dimension |
canEnlarge(int newWidth,
int newHeight)
|
void |
computeZoom(double zoom)
|
void |
computeZoom(ij.gui.Roi roi)
|
void |
findHandledRoi(int x,
int y)
Method used to find the Roi which can be moved/resized by mouse, corresponding to given coordinates |
void |
findRoiSelected(int x,
int y,
boolean keepSelection)
Deprecated. |
void |
findSelectedRoi(int x,
int y,
boolean keepSelection)
Method used to find the Roi to select, corresponding to given coordinates |
java.awt.Cursor |
getDefaultCursor()
|
java.awt.Graphics |
getGraphics()
|
protected void |
handlePopupMenu(java.awt.event.MouseEvent e)
|
boolean |
isSelectionMode()
|
boolean |
isShowing()
|
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
int |
offScreenX(int sx)
|
double |
offScreenXD(int sx)
|
int |
offScreenY(int sy)
|
double |
offScreenYD(int sy)
|
protected void |
reAdjustSourceRect(double newMag)
|
void |
setCursor(java.awt.Cursor cursor)
|
void |
setCursor(int sx,
int sy,
int ox,
int oy)
|
void |
setSelectionMode(boolean selectionMode)
|
void |
unzoom()
|
void |
zoomIn(int x,
int y)
|
void |
zoomInNoTranslation(int x,
int y)
|
void |
zoomOut(int x,
int y)
|
void |
zoomOutNoTranslation(int x,
int y)
|
| Methods inherited from class ij.gui.ImageCanvas |
|---|
disablePopupMenu, getCursorLoc, getHigherZoomLevel, getLowerZoomLevel, getMagnification, getModifiers, getPreferredSize, getShowAllROIs, getSrcRect, mouseDragged, mouseEntered, mouseExited, paint, screenX, screenXD, screenY, screenYD, scroll, setDisplayList, setDisplayList, setDrawingColor, setDrawingSize, setImageUpdated, setMagnification, setShowAllROIs, setShowCursorStatus, setupScroll, update |
| Methods inherited from class java.awt.Canvas |
|---|
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy |
| Methods inherited from class java.awt.Component |
|---|
action, 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, 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, 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, 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 |
|---|
protected boolean selectionMode
| Constructor Detail |
|---|
public JImageJ.RenderedImageCanvas(ij.ImagePlus imp)
| Method Detail |
|---|
public void setCursor(java.awt.Cursor cursor)
setCursor in class java.awt.Component
public void setCursor(int sx,
int sy,
int ox,
int oy)
setCursor in class ij.gui.ImageCanvaspublic java.awt.Cursor getDefaultCursor()
public java.awt.Graphics getGraphics()
getGraphics in class java.awt.Componentpublic boolean isShowing()
isShowing in class java.awt.Componentpublic void add(java.awt.PopupMenu popup)
add in class java.awt.Componentprotected void handlePopupMenu(java.awt.event.MouseEvent e)
handlePopupMenu in class ij.gui.ImageCanvaspublic int offScreenX(int sx)
offScreenX in class ij.gui.ImageCanvaspublic double offScreenXD(int sx)
offScreenXD in class ij.gui.ImageCanvaspublic int offScreenY(int sy)
offScreenY in class ij.gui.ImageCanvaspublic double offScreenYD(int sy)
offScreenYD in class ij.gui.ImageCanvas
public void findSelectedRoi(int x,
int y,
boolean keepSelection)
x - X-coordinatey - Y-coordinatekeepSelection - boolean to know whether to keep previous selected Roi
selected
@Deprecated
public void findRoiSelected(int x,
int y,
boolean keepSelection)
public void findHandledRoi(int x,
int y)
x - X-coordinatey - Y-coordinatepublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenermouseClicked in class ij.gui.ImageCanvaspublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenermousePressed in class ij.gui.ImageCanvaspublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenermouseReleased in class ij.gui.ImageCanvaspublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenermouseMoved in class ij.gui.ImageCanvaspublic boolean isSelectionMode()
public void setSelectionMode(boolean selectionMode)
selectionMode - the selectionMode to set
public void zoomInNoTranslation(int x,
int y)
public void zoomOutNoTranslation(int x,
int y)
public void zoomIn(int x,
int y)
zoomIn in class ij.gui.ImageCanvas
public void zoomOut(int x,
int y)
zoomOut in class ij.gui.ImageCanvaspublic void unzoom()
unzoom in class ij.gui.ImageCanvaspublic void computeZoom(double zoom)
public void computeZoom(ij.gui.Roi roi)
protected void reAdjustSourceRect(double newMag)
protected java.awt.Dimension canEnlarge(int newWidth,
int newHeight)
canEnlarge in class ij.gui.ImageCanvas
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||