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
-
x1
-
-
x2
-
-
y1
-
-
y2
-
-
Line(int, int, ImagePlus)
-
-
contains(int, int)
-
-
draw(Graphics)
- Draws this line in the image.
-
drawPixels()
-
-
getLength()
- Returns the length of this line.
-
getPixels()
- Returns the pixel values along this line.
-
getWidth()
-
-
grow(int, int)
-
-
setWidth(int)
-
x1
public int x1
y1
public int y1
x2
public int x2
y2
public int y2
Line
public Line(int ox,
int oy,
ImagePlus imp)
grow
protected void grow(int xend,
int yend)
- Overrides:
- grow in class Roi
draw
public void draw(Graphics g)
- Draws this line in the image.
- Overrides:
- draw in class Roi
getLength
public double getLength()
- Returns the length of this line.
- Overrides:
- getLength in class Roi
getPixels
public float[] getPixels()
- Returns the pixel values along this line.
drawPixels
public void drawPixels()
- Overrides:
- drawPixels in class Roi
contains
public boolean contains(int x,
int y)
- Overrides:
- contains in class Roi
getWidth
public static int getWidth()
setWidth
public static void setWidth(int w)
All Packages Class Hierarchy This Package Previous Next Index