public class MultiDThreePanesCanvas extends ImageCanvas
Canvas.AccessibleAWTCanvas
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected boolean |
cursorLocked |
protected PaneOwner |
owner |
protected int |
plane |
protected boolean |
waitingForRoiDrawing |
crosshairCursor, defaultCursor, dstHeight, dstWidth, flags, handCursor, ij, imageHeight, imageUpdated, imageWidth, imp, lastZoomSX, lastZoomSY, magnification, MAX_MOUSEMOVE_ZOOM, moveCursor, srcRect, usePointer, xMouse, xMouseStart, xSrcStart, yMouse, yMouseStart, ySrcStart, zoomTargetOX, zoomTargetOY
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Modifier | Constructor and Description |
---|---|
protected |
MultiDThreePanesCanvas(ij.ImagePlus imagePlus,
int plane) |
protected |
MultiDThreePanesCanvas(ij.ImagePlus imagePlus,
PaneOwner owner,
int plane) |
Modifier and Type | Method and Description |
---|---|
void |
disableEvents(boolean disable)
Sets whether mouse and key events should be waived back to IJ.
|
protected void |
drawCrosshairs(Graphics2D g,
double x_on_screen,
double y_on_screen) |
protected void |
drawOverlay(Graphics2D g) |
Color |
getAnnotationsColor() |
PointInCanvas |
getCursorPos() |
Graphics2D |
getGraphics2D(Graphics g) |
BoundingBox |
getViewPort() |
boolean |
isEventsDisabled() |
void |
mouseDragged(MouseEvent e) |
int |
myOffScreenX(int sx)
Converts a screen x-coordinate to an offscreen (image) x-coordinate.
|
double |
myOffScreenXD(int sx)
Converts a screen x-coordinate to a floating-point offscreen (image)
x-coordinate.
|
int |
myOffScreenY(int sy)
Converts a screen y-coordinate to an offscreen (image) y-coordinate.
|
double |
myOffScreenYD(int sy)
Converts a screen y-coordinate to a floating-point offscreen (image)
y-coordinate.
|
int |
myScreenX(int ox)
Converts an offscreen (image) x-coordinate to a screen x-coordinate.
|
int |
myScreenXD(double ox)
Converts a floating-point offscreen (image) x-coordinate to a screen
x-coordinate.
|
double |
myScreenXDprecise(double ox)
Converts an offscreen (image) x-coordinate to a screen x-coordinate with
floating-point precision.
|
int |
myScreenY(int oy)
Converts an offscreen (image) y-coordinate to a screen y-coordinate.
|
int |
myScreenYD(double oy)
Converts a floating-point offscreen (image) x-coordinate to a screen
x-coordinate.
|
double |
myScreenYDprecise(double oy)
Converts an offscreen (image) y-coordinate to a screen y-coordinate with
floating-point precision.
|
static Object |
newThreePanesCanvas(ij.ImagePlus imagePlus,
PaneOwner owner,
int plane) |
void |
restoreDefaultCursor() |
void |
scrollTo(int newOffscreenX,
int newOffscreenY) |
void |
setAnnotationsColor(Color color) |
void |
setCanvasLabel(String label)
Sets the string to be rendered on canvas' upper left corner.
|
void |
setCrosshairs(double x,
double y,
double z,
boolean display)
Deprecated.
|
void |
setCursorText(String cursorText)
Sets the string to be appended to the current cursor.
|
void |
setDrawCrosshairs(boolean drawCrosshairs) |
protected void |
setLockCursor(boolean lock) |
void |
setPaneOwner(PaneOwner owner) |
protected void |
setZoom(double zoomFactor) |
protected void |
triggerZoomEvent(boolean in,
int off_screen_x,
int off_screen_y) |
void |
updateCursor(double x,
double y,
double z) |
void |
updatePosition(double x,
double y,
double z) |
void |
zoomIn(int sx,
int sy) |
void |
zoomOut(int sx,
int sy) |
canEnlarge, cursorOverImage, disablePopupMenu, fitToWindow, getCursorLoc, getCustomRoi, getDisplayList, getHigherZoomLevel, getImage, getLowerZoomLevel, getMagnification, getModifiers, getOverlay, getPaintPending, getPreferredSize, getScaleToFit, getShowAllColor, getShowAllList, getShowAllROIs, getSliceNumber, getSrcRect, handlePopupMenu, handleRoiMouseDown, hideZoomIndicator, mouseClicked, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, offScreenX, offScreenX2, offScreenXD, offScreenY, offScreenY2, offScreenYD, paint, repaintOverlay, resetDoubleBuffer, roiManagerSelect, screenX, screenXD, screenY, screenYD, scroll, setCursor, setCursor, setCustomRoi, setDisplayList, setDisplayList, setDisplayList, setDrawingColor, setDrawingSize, setImageUpdated, setMagnification, setOverlay, setPaintPending, setScaleToFit, setShowAllColor, setShowAllList, setShowAllROIs, setShowCursorStatus, setSize, setSourceRect, setupScroll, unzoom, update, zoom100Percent
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy
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, getBaseline, getBaselineResizeBehavior, 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, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
protected PaneOwner owner
protected int plane
protected boolean waitingForRoiDrawing
protected boolean cursorLocked
protected MultiDThreePanesCanvas(ij.ImagePlus imagePlus, PaneOwner owner, int plane)
protected MultiDThreePanesCanvas(ij.ImagePlus imagePlus, int plane)
public static Object newThreePanesCanvas(ij.ImagePlus imagePlus, PaneOwner owner, int plane)
public void setPaneOwner(PaneOwner owner)
protected void setZoom(double zoomFactor)
protected void drawOverlay(Graphics2D g)
public PointInCanvas getCursorPos()
public Graphics2D getGraphics2D(Graphics g)
protected void triggerZoomEvent(boolean in, int off_screen_x, int off_screen_y)
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
mouseDragged
in class ImageCanvas
public void zoomIn(int sx, int sy)
zoomIn
in class ImageCanvas
public void zoomOut(int sx, int sy)
zoomOut
in class ImageCanvas
protected void drawCrosshairs(Graphics2D g, double x_on_screen, double y_on_screen)
public void updatePosition(double x, double y, double z)
@Deprecated public void setCrosshairs(double x, double y, double z, boolean display)
public void updateCursor(double x, double y, double z)
public void scrollTo(int newOffscreenX, int newOffscreenY)
public int myOffScreenX(int sx)
sx
- the screen x coordinatepublic int myOffScreenY(int sy)
sy
- the screen y coordinatepublic double myOffScreenXD(int sx)
sx
- the screen x coordinatepublic double myOffScreenYD(int sy)
sy
- the screen y coordinatepublic int myScreenX(int ox)
ox
- the image x coordinatepublic int myScreenY(int oy)
oy
- the image y coordinatepublic int myScreenXD(double ox)
ox
- the image x coordinatepublic double myScreenXDprecise(double ox)
ox
- the image x coordinatepublic int myScreenYD(double oy)
oy
- the image x coordinatepublic double myScreenYDprecise(double oy)
oy
- the image y coordinatepublic void restoreDefaultCursor()
public void setCanvasLabel(String label)
label
- the string to be displayedpublic void setCursorText(String cursorText)
cursorText
- the string to be displayed around the cursorpublic void setAnnotationsColor(Color color)
public Color getAnnotationsColor()
public BoundingBox getViewPort()
public boolean isEventsDisabled()
public void disableEvents(boolean disable)
disable
- If true, SNT will not be notified of mouse/keyboard eventsprotected void setLockCursor(boolean lock)
public void setDrawCrosshairs(boolean drawCrosshairs)
Copyright © 2015–2021 Fiji. All rights reserved.