ij.gui
Class OvalRoi

java.lang.Object
  extended by ij.gui.Roi
      extended by ij.gui.OvalRoi
All Implemented Interfaces:
java.lang.Cloneable

public class OvalRoi
extends Roi

Oval region of interest


Field Summary
 
Fields inherited from class ij.gui.Roi
clipboard, clipHeight, clipWidth, clipX, clipY, constrain, CONSTRUCTING, FREELINE, FREEROI, HANDLE_SIZE, ic, imp, LINE, MOVING, NORMAL, oldHeight, oldWidth, oldX, oldY, OVAL, pasteMode, POLYGON, POLYLINE, previousRoi, RECTANGLE, RESIZING, ROIColor, TRACED_ROI, type, updateFullWindow, xMax, yMax
 
Constructor Summary
OvalRoi(int x, int y, ImagePlus imp)
           
OvalRoi(int x, int y, int width, int height, ImagePlus imp)
           
 
Method Summary
 boolean contains(int x, int y)
           
 void draw(java.awt.Graphics g)
           
 void drawPixels()
           
 double getLength()
          Returns the perimeter length.
 int[] getMask()
           
 
Methods inherited from class ij.gui.Roi
abortPaste, clone, endPaste, getAngle, getBoundingRect, getColor, getState, getType, grow, handleMouseDown, handleMouseDrag, handleMouseUp, nudge, nudgeCorner, setColor, setImage, setLocation, setPasteMode, showStatus, toString, updateClipRect
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OvalRoi

public OvalRoi(int x,
               int y,
               int width,
               int height,
               ImagePlus imp)

OvalRoi

public OvalRoi(int x,
               int y,
               ImagePlus imp)
Method Detail

draw

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

drawPixels

public void drawPixels()
Overrides:
drawPixels in class Roi

contains

public boolean contains(int x,
                        int y)
Overrides:
contains in class Roi

getMask

public int[] getMask()
Overrides:
getMask in class Roi

getLength

public double getLength()
Returns the perimeter length.

Overrides:
getLength in class Roi