ij.gui
Class ImageRoi

java.lang.Object
  extended by ij.gui.Roi
      extended by ij.gui.ImageRoi
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class ImageRoi
extends Roi

An ImageRoi is an Roi that displays an image as an overlay.

See Also:
ImagePlus.setOverlay(ij.gui.Overlay), Serialized Form

Field Summary
 
Fields inherited from class ij.gui.Roi
ANGLE, asp_bk, aspect, cachedMask, center, clipboard, clipHeight, clipWidth, clipX, clipY, COMPOSITE, constrain, CONSTRUCTING, defaultFillColor, fillColor, FREELINE, FREEROI, HANDLE_SIZE, handleColor, ic, imp, instanceColor, LINE, lineWidth, mag, MOVING, MOVING_HANDLE, name, nonScalable, NORMAL, NOT_PASTING, oldHeight, oldWidth, oldX, oldY, onePixelWide, OVAL, overlay, pasteMode, POINT, POLYGON, POLYLINE, previousRoi, RECTANGLE, RESIZING, ROIColor, stroke, strokeColor, TRACED_ROI, type, updateFullWindow, wideLine, xMax, yMax
 
Constructor Summary
ImageRoi(int x, int y, java.awt.image.BufferedImage bi)
          Creates a new ImageRoi from a BufferedImage.
ImageRoi(int x, int y, ImageProcessor ip)
          Creates a new ImageRoi from a ImageProcessor.
 
Method Summary
 void draw(java.awt.Graphics g)
           
 double getOpacity()
          Returns the current opacity.
 void setComposite(java.awt.Composite composite)
          Sets the composite mode.
 void setOpacity(double opacity)
          Sets the composite mode using the specified opacity (alpha), in the range 0.0-1.0, where 0.0 is fully transparent and 1.0 is fully opaque.
 
Methods inherited from class ij.gui.Roi
abortPaste, clipRectMargin, clone, contains, copyAttributes, drawOverlay, drawPixels, drawPixels, endPaste, equals, getAngle, getBoundingRect, getBounds, getColor, getConvexHull, getCurrentPasteMode, getDefaultFillColor, getFeretsDiameter, getFeretValues, getFillColor, getFloatPolygon, getImageID, getLength, getMask, getName, getPasteMode, getPolygon, getRoundRectArcSize, getScaledStroke, getState, getStroke, getStrokeColor, getStrokeWidth, getType, getTypeAsString, grow, handleMouseDown, handleMouseDrag, handleMouseUp, isArea, isDrawingTool, isHandle, isLine, isVisible, mouseDownInHandle, moveHandle, nudge, nudgeCorner, setColor, setDefaultFillColor, setFillColor, setImage, setInstanceColor, setLineWidth, setLocation, setName, setNonScalable, setPasteMode, setRoundRectArcSize, setStroke, setStrokeColor, setStrokeWidth, showStatus, startPaste, toString, update, updateClipRect, updateWideLine
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImageRoi

public ImageRoi(int x,
                int y,
                java.awt.image.BufferedImage bi)
Creates a new ImageRoi from a BufferedImage.


ImageRoi

public ImageRoi(int x,
                int y,
                ImageProcessor ip)
Creates a new ImageRoi from a ImageProcessor.

Method Detail

draw

public void draw(java.awt.Graphics g)
Overrides:
draw in class Roi

setComposite

public void setComposite(java.awt.Composite composite)
Sets the composite mode.


setOpacity

public void setOpacity(double opacity)
Sets the composite mode using the specified opacity (alpha), in the range 0.0-1.0, where 0.0 is fully transparent and 1.0 is fully opaque.


getOpacity

public double getOpacity()
Returns the current opacity.