All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ij.gui.PolygonRoi

java.lang.Object
   |
   +----ij.gui.Roi
           |
           +----ij.gui.PolygonRoi

public class PolygonRoi
extends Roi
Polygon region of interest or polyline of interest


Variable Index

 o g
 o nPoints
 o xp
 o xp2
 o yp
 o yp2

Constructor Index

 o PolygonRoi(int, int, ImagePlus)

Method Index

 o contains(int, int)
 o draw(Graphics)
 o drawPixels()
 o getAngle()
Returns the angle in degrees between the first two segments of this polyline.
 o getLength()
Returns the perimeter (for ROIs) or length (for lines).
 o getMask()
 o grow(int, int)

Variables

 o xp
 protected int xp[]
 o yp
 protected int yp[]
 o xp2
 protected int xp2[]
 o yp2
 protected int yp2[]
 o nPoints
 protected int nPoints
 o g
 protected Graphics g

Constructors

 o PolygonRoi
 public PolygonRoi(int ox,
                   int oy,
                   ImagePlus imp)

Methods

 o draw
 public void draw(Graphics g)
Overrides:
draw in class Roi
 o drawPixels
 public void drawPixels()
Overrides:
drawPixels in class Roi
 o grow
 protected void grow(int x,
                     int y)
Overrides:
grow in class Roi
 o contains
 public boolean contains(int x,
                         int y)
Overrides:
contains in class Roi
 o getMask
 public int[] getMask()
Overrides:
getMask in class Roi
 o getLength
 public double getLength()
Returns the perimeter (for ROIs) or length (for lines).

Overrides:
getLength in class Roi
 o getAngle
 public double getAngle()
Returns the angle in degrees between the first two segments of this polyline.


All Packages  Class Hierarchy  This Package  Previous  Next  Index