|
|||||||||
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
ij.gui.PlotCanvas
public class PlotCanvas
This subclass of ImageCanvas has special provisions for plots: - Zooming: sets the plot range - Scrolling: moves data area This behavior can be suppressed if
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.Canvas |
---|
Canvas.AccessibleAWTCanvas |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class ij.gui.ImageCanvas |
---|
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 |
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 | |
---|---|
PlotCanvas(ImagePlus imp)
Creates a new PlotCanvas |
Method Summary | |
---|---|
void |
fitToWindow()
Resizes the plot (unless frozen) to fit the window |
Plot |
getPlot()
Returns the Plot displayed in this canvas |
boolean |
isFrozen()
Whether the plot is frozen, i.e. |
void |
mouseExited(MouseEvent e)
overrides ImageCanvas.mouseExited; removes 'range' arrows |
void |
mousePressed(MouseEvent e)
overrides ImageCanvas.mousePressed: no further processing of clicks on 'range' arrows |
void |
mouseReleased(MouseEvent e)
Overrides ImageCanvas.mouseReleased, handles clicks on 'range' arrows |
protected void |
scroll(int sx,
int sy)
overrides ImageCanvas.scroll; if plot is not frozen, scrolling modifies the plot data range |
void |
setMagnification(double magnification)
The image of a PlotCanvas is always shown at 100% magnification unless the plot is frozen |
void |
setPlot(Plot plot)
Tells the PlotCanvas which plot to use for zooming etc. |
void |
setSourceRect(Rectangle r)
Scrolling a PlotCanvas is updating the plot, not viewing part of the plot, unless the plot is frozen |
protected void |
setupScroll(int ox,
int oy)
overrides ImageCanvas.setupScroll; if plot is not frozen, scrolling modifies the plot data range |
void |
unzoom()
Implements the Image/Zoom/Original Scale command. |
void |
zoom(String arg)
Zoom operations that are handled by ij.plugin.Zoom |
void |
zoom100Percent()
Implements the Image/Zoom/View 100% command: Sets the original frame size as specified in Edit/Options/Plots (unless the plot is frozen) |
void |
zoomIn(int sx,
int sy)
Zooms in by modifying the plot range; sx and sy are screen coordinates |
void |
zoomOut(int sx,
int sy)
Zooms out by modifying the plot range; sx and sy are screen coordinates |
Methods inherited from class java.awt.Canvas |
---|
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PlotCanvas(ImagePlus imp)
Method Detail |
---|
public void setPlot(Plot plot)
public Plot getPlot()
public boolean isFrozen()
public void zoom(String arg)
public void zoomIn(int sx, int sy)
zoomIn
in class ImageCanvas
public void zoomOut(int sx, int sy)
zoomOut
in class ImageCanvas
public void unzoom()
unzoom
in class ImageCanvas
public void zoom100Percent()
zoom100Percent
in class ImageCanvas
public void fitToWindow()
fitToWindow
in class ImageCanvas
public void setMagnification(double magnification)
setMagnification
in class ImageCanvas
public void setSourceRect(Rectangle r)
setSourceRect
in class ImageCanvas
protected void setupScroll(int ox, int oy)
setupScroll
in class ImageCanvas
protected void scroll(int sx, int sy)
scroll
in class ImageCanvas
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
mouseExited
in class ImageCanvas
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
mousePressed
in class ImageCanvas
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
mouseReleased
in class ImageCanvas
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |