public class MultiDThreePanesCanvas
extends ij.gui.ImageCanvas
Modifier and Type | Method and Description |
---|---|
void |
disableEvents(boolean disable)
Sets whether mouse and key events should be waived back to IJ.
|
java.awt.Color |
getAnnotationsColor() |
org.scijava.vecmath.Point2d |
getCursorPos() |
java.awt.Graphics2D |
getGraphics2D(java.awt.Graphics g) |
boolean |
isEventsDisabled() |
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 java.lang.Object |
newThreePanesCanvas(ij.ImagePlus imagePlus,
PaneOwner owner,
int plane) |
void |
restoreDefaultCursor() |
void |
setAnnotationsColor(java.awt.Color color) |
void |
setCanvasLabel(java.lang.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(java.lang.String cursorText)
Sets the string to be appended to the current cursor.
|
void |
setDrawCrosshairs(boolean drawCrosshairs) |
void |
setPaneOwner(PaneOwner owner) |
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) |
cursorOverImage, disablePopupMenu, fitToWindow, getCursorLoc, getCustomRoi, getDisplayList, getHigherZoomLevel, getImage, getLowerZoomLevel, getMagnification, getModifiers, getOverlay, getPaintPending, getPreferredSize, getScaleToFit, getShowAllColor, getShowAllList, getShowAllROIs, getSliceNumber, getSrcRect, hideZoomIndicator, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, offScreenX, offScreenX2, offScreenXD, offScreenY, offScreenY2, offScreenYD, paint, resetDoubleBuffer, roiManagerSelect, screenX, screenXD, screenY, screenYD, setCursor, setCursor, setCustomRoi, setDisplayList, setDisplayList, setDisplayList, setDrawingColor, setDrawingSize, setImageUpdated, setMagnification, setOverlay, setPaintPending, setScaleToFit, setShowAllColor, setShowAllList, setShowAllROIs, setShowCursorStatus, setSize, setSourceRect, 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, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, 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, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, 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
public static java.lang.Object newThreePanesCanvas(ij.ImagePlus imagePlus, PaneOwner owner, int plane)
public void setPaneOwner(PaneOwner owner)
public org.scijava.vecmath.Point2d getCursorPos()
public java.awt.Graphics2D getGraphics2D(java.awt.Graphics g)
public void zoomIn(int sx, int sy)
zoomIn
in class ij.gui.ImageCanvas
public void zoomOut(int sx, int sy)
zoomOut
in class ij.gui.ImageCanvas
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 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(java.lang.String label)
label
- the string to be displayedpublic void setCursorText(java.lang.String cursorText)
cursorText
- the string to be displayed around the cursorpublic void setAnnotationsColor(java.awt.Color color)
public java.awt.Color getAnnotationsColor()
public boolean isEventsDisabled()
public void disableEvents(boolean disable)
disable
- If true, SNT will not be notified of mouse/keyboard eventspublic void setDrawCrosshairs(boolean drawCrosshairs)