All Packages Class Hierarchy This Package Previous Next Index
Class ij.gui.ImageCanvas
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----ij.gui.ImageCanvas
- public class ImageCanvas
- extends Canvas
- implements MouseListener, MouseMotionListener
-
ImageCanvas(ImagePlus)
-
-
drawImage(Graphics)
-
-
getCursorLoc()
- Returns the current cursor location.
-
getMagnification()
-
-
getSrcRect()
-
-
mouseClicked(MouseEvent)
-
-
mouseDragged(MouseEvent)
-
-
mouseEntered(MouseEvent)
-
-
mouseExited(MouseEvent)
-
-
mouseMoved(MouseEvent)
-
-
mousePressed(MouseEvent)
-
-
mouseReleased(MouseEvent)
-
-
offScreenX(int)
- Converts a screen x-coordinate to an offscreen x-coordinate.
-
offScreenY(int)
- Converts a screen y-coordinate to an offscreen y-coordinate.
-
paint(Graphics)
- Paints the canvas in the default background color.
-
preferredSize()
-
-
print(Graphics)
- Prints this component.
-
screenX(int)
- Converts an offscreen x-coordinate to a screen x-coordinate.
-
screenY(int)
- Converts an offscreen y-coordinate to a screen y-coordinate.
-
setCursor(int, int)
- Sets the cursor based on the current tool and cursor location.
-
setDrawingSize(int, int)
-
-
setMagnification(double)
-
-
update(Graphics)
-
Updates the component.
-
zoomIn(int, int)
- Zooms in by making the window bigger.
ImageCanvas
public ImageCanvas(ImagePlus imp)
setDrawingSize
public void setDrawingSize(int width,
int height)
update
public void update(Graphics g)
- Updates the component.
- Overrides:
- update in class Component
print
public void print(Graphics g)
- Prints this component.
- Overrides:
- print in class Component
paint
public void paint(Graphics g)
- Paints the canvas in the default background color.
- Overrides:
- paint in class Canvas
preferredSize
public Dimension preferredSize()
- Overrides:
- preferredSize in class Component
getCursorLoc
public Point getCursorLoc()
- Returns the current cursor location.
setCursor
public void setCursor(int x,
int y)
- Sets the cursor based on the current tool and cursor location.
offScreenX
public int offScreenX(int x)
- Converts a screen x-coordinate to an offscreen x-coordinate.
offScreenY
public int offScreenY(int y)
- Converts a screen y-coordinate to an offscreen y-coordinate.
screenX
public int screenX(int x)
- Converts an offscreen x-coordinate to a screen x-coordinate.
screenY
public int screenY(int y)
- Converts an offscreen y-coordinate to a screen y-coordinate.
getMagnification
public double getMagnification()
setMagnification
public void setMagnification(double magnification)
getSrcRect
public Rectangle getSrcRect()
zoomIn
public void zoomIn(int x,
int y)
- Zooms in by making the window bigger. If we can't
make it bigger, then make the srcRect smaller.
drawImage
public void drawImage(Graphics g)
mousePressed
public void mousePressed(MouseEvent e)
mouseExited
public void mouseExited(MouseEvent e)
mouseDragged
public void mouseDragged(MouseEvent e)
mouseReleased
public void mouseReleased(MouseEvent e)
mouseMoved
public void mouseMoved(MouseEvent e)
mouseClicked
public void mouseClicked(MouseEvent e)
mouseEntered
public void mouseEntered(MouseEvent e)
All Packages Class Hierarchy This Package Previous Next Index