protected class JImageJ.RenderedImageCanvas
extends ij.gui.ImageCanvas
Modifier and Type | Field and Description |
---|---|
protected boolean |
selectionMode |
crosshairCursor, defaultCursor, dstHeight, dstWidth, flags, handCursor, ij, imageHeight, imageUpdated, imageWidth, imp, magnification, moveCursor, srcRect, usePointer, xMouse, xMouseStart, xSrcStart, yMouse, yMouseStart, ySrcStart
Constructor and Description |
---|
JImageJ.RenderedImageCanvas(ij.ImagePlus imp) |
Modifier and Type | Method and Description |
---|---|
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) |
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
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy
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, getBaseline, getBaselineResizeBehavior, 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, revalidate, 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
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.ImageCanvas
public java.awt.Cursor getDefaultCursor()
public java.awt.Graphics getGraphics()
getGraphics
in class java.awt.Component
public boolean isShowing()
isShowing
in class java.awt.Component
public void add(java.awt.PopupMenu popup)
add
in class java.awt.Component
protected void handlePopupMenu(java.awt.event.MouseEvent e)
handlePopupMenu
in class ij.gui.ImageCanvas
public int offScreenX(int sx)
offScreenX
in class ij.gui.ImageCanvas
public double offScreenXD(int sx)
offScreenXD
in class ij.gui.ImageCanvas
public int offScreenY(int sy)
offScreenY
in class ij.gui.ImageCanvas
public 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.MouseListener
mouseClicked
in class ij.gui.ImageCanvas
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class ij.gui.ImageCanvas
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class ij.gui.ImageCanvas
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
mouseMoved
in class ij.gui.ImageCanvas
public boolean isSelectionMode()
public void setSelectionMode(boolean selectionMode)
selectionMode
- the selectionMode to setpublic 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.ImageCanvas
public void unzoom()
unzoom
in class ij.gui.ImageCanvas
public 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