|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectij.gui.AbstractRoi
ij.gui.AttributeRoi
ij.gui.Roi
ij.gui.OvalRoi
public class OvalRoi
Oval region of interest
Field Summary |
---|
Fields inherited from class ij.gui.Roi |
---|
onePixelWide, previousRoi, roundRect |
Fields inherited from interface ij.gui.RoiConstance |
---|
ADD_TO_ROI, ANGLE, COMPOSITE, CONSTRUCTING, DRAW_HANDLE, DUPLICATE_HANDLE, EVT_HANDLE_SIZE, FILL_HANDLE, FREELINE, FREEROI, HANDLE_SIZE, LINE, MAG_HANDLE, MOVING, MOVING_HANDLE, MOVING_ROUNDRECT_HANDLE, NO_MODS, NORMAL, NOT_PASTING, OVAL, POINT, POLYGON, POLYLINE, RECTANGLE, RESIZING, SUBTRACT_FROM_ROI, TRACED_ROI, UNDO_HANDLE |
Constructor Summary | |
---|---|
OvalRoi(double x,
double y,
double width,
double height)
Creates a new OvalRoi. |
|
OvalRoi(int x,
int y,
ImagePlus imp)
Starts the process of creating a user-defined OvalRoi. |
|
OvalRoi(int x,
int y,
int width,
int height)
Creates a new OvalRoi. |
|
OvalRoi(int x,
int y,
int width,
int height,
ImagePlus imp)
Deprecated. |
Method Summary | |
---|---|
boolean |
contains(int ox,
int oy)
Tests if the specified point is inside the boundary of this OvalRoi. |
void |
draw(java.awt.Graphics g)
|
void |
drawPixels(ImageProcessor ip)
Draws an outline of this OvalRoi on the image. |
static java.awt.Color |
getColor()
Returns the default (global) color used for drawing ROI outlines. |
static java.awt.Color |
getDefaultFillColor()
|
java.awt.Color |
getFillColor()
Returns the color used to fill this ROI, or null if it is not filled. |
double |
getLength()
Returns the perimeter length. |
ImageProcessor |
getMask()
Always returns null for rectangular Roi's |
java.awt.Polygon |
getPolygon()
Returns this OvalRoi as a polygon. |
java.awt.Color |
getStrokeColor()
Returns the the color used to draw the ROI outline or null if the default color is being used. |
int |
isHandle(int sx,
int sy)
Returns a handle number if the specified screen coordinates are inside or near a handle, otherwise returns -1. |
static void |
setColor(java.awt.Color c)
Sets the default (global) color used for ROI outlines. |
static void |
setDefaultFillColor(java.awt.Color color)
|
void |
setFillColor(java.awt.Color color)
Sets the color used to fill ROIs when they are in an overlay. |
void |
setStrokeColor(java.awt.Color c)
Sets the color used by this ROI to draw its outline. |
Methods inherited from class ij.gui.AttributeRoi |
---|
copyAttributes, getAngle, getConvexHull, getCPosition, getFeretsDiameter, getFeretValues, getImage, getImageID, getName, getPosition, getStroke, getStrokeWidth, getTPosition, getType, getZPosition, setName, setPosition, setPosition, setStroke, setStrokeWidth, setStrokeWidth |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OvalRoi(int x, int y, int width, int height)
public OvalRoi(double x, double y, double width, double height)
public OvalRoi(int x, int y, ImagePlus imp)
public OvalRoi(int x, int y, int width, int height, ImagePlus imp)
Method Detail |
---|
public void draw(java.awt.Graphics g)
draw
in interface RoiBeans
draw
in class Roi
public void drawPixels(ImageProcessor ip)
drawPixels
in interface RoiBeans
drawPixels
in class Roi
ImageProcessor.setColor(java.awt.Color)
,
ImageProcessor.setLineWidth(int)
public java.awt.Polygon getPolygon()
getPolygon
in interface RoiBeans
getPolygon
in class Roi
ImageProcessor.setRoi(java.awt.Rectangle)
,
ImageProcessor.drawPolygon(java.awt.Polygon)
,
ImageProcessor.fillPolygon(java.awt.Polygon)
public boolean contains(int ox, int oy)
contains
in interface RoiBeans
contains
in class Roi
public int isHandle(int sx, int sy)
isHandle
in interface RoiBeans
isHandle
in class Roi
public ImageProcessor getMask()
Roi
getMask
in interface RoiBeans
getMask
in class Roi
public double getLength()
getLength
in interface RoiBeans
getLength
in class Roi
public static void setColor(java.awt.Color c)
getColor()
,
setStrokeColor(Color)
public static java.awt.Color getColor()
setColor(Color)
,
getStrokeColor()
public void setStrokeColor(java.awt.Color c)
setStrokeColor
in interface RoiBeans
setStrokeColor
in class AttributeRoi
getStrokeColor()
,
#setStrokeWidth(int)
,
ImagePlus.setOverlay(ij.gui.Overlay)
public java.awt.Color getStrokeColor()
getStrokeColor
in interface RoiBeans
getStrokeColor
in class AttributeRoi
setStrokeColor(Color)
public void setFillColor(java.awt.Color color)
setFillColor
in interface RoiBeans
setFillColor
in class AttributeRoi
ImagePlus.setOverlay(ij.gui.Overlay)
public java.awt.Color getFillColor()
getFillColor
in interface RoiBeans
getFillColor
in class AttributeRoi
getStrokeColor()
public static void setDefaultFillColor(java.awt.Color color)
public static java.awt.Color getDefaultFillColor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |