All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ij.gui.Line

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

public class Line
extends Roi
Straight line selection


Variable Index

 o x1
 o x2
 o y1
 o y2

Constructor Index

 o Line(int, int, ImagePlus)

Method Index

 o contains(int, int)
 o draw(Graphics)
Draws this line in the image.
 o drawPixels()
 o getLength()
Returns the length of this line.
 o getPixels()
Returns the pixel values along this line.
 o getWidth()
 o grow(int, int)
 o setWidth(int)

Variables

 o x1
 public int x1
 o y1
 public int y1
 o x2
 public int x2
 o y2
 public int y2

Constructors

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

Methods

 o grow
 protected void grow(int xend,
                     int yend)
Overrides:
grow in class Roi
 o draw
 public void draw(Graphics g)
Draws this line in the image.

Overrides:
draw in class Roi
 o getLength
 public double getLength()
Returns the length of this line.

Overrides:
getLength in class Roi
 o getPixels
 public float[] getPixels()
Returns the pixel values along this line.

 o drawPixels
 public void drawPixels()
Overrides:
drawPixels in class Roi
 o contains
 public boolean contains(int x,
                         int y)
Overrides:
contains in class Roi
 o getWidth
 public static int getWidth()
 o setWidth
 public static void setWidth(int w)

All Packages  Class Hierarchy  This Package  Previous  Next  Index