Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
Line Class Reference
Inheritance diagram for Line:
Roi

Public Member Functions

 Line (int ox1, int oy1, int ox2, int oy2)
 
 Line (int ox, int oy, ImagePlus imp)
 
 Line (int ox1, int oy1, int ox2, int oy2, ImagePlus imp)
 
void draw (Graphics g)
 
double getLength ()
 
double getRawLength ()
 
double[] getPixels ()
 
void drawPixels ()
 
boolean contains (int x, int y)
 
int isHandle (int sx, int sy)
 
void nudgeCorner (int key)
 
- Public Member Functions inherited from Roi
 Roi (int x, int y, int width, int height)
 
 Roi (int x, int y, ImagePlus imp)
 
 Roi (int x, int y, int width, int height, ImagePlus imp)
 
void setLocation (int x, int y)
 
void setImage (ImagePlus imp)
 
int getType ()
 
int getState ()
 
double getLength ()
 
double getFeretsDiameter ()
 
Rectangle getBounds ()
 
Rectangle getBoundingRect ()
 
Polygon getPolygon ()
 
synchronized Object clone ()
 
void nudge (int key)
 
void nudgeCorner (int key)
 
void draw (Graphics g)
 
void drawPixels ()
 
boolean contains (int x, int y)
 
int isHandle (int sx, int sy)
 
void modifyRoi ()
 
ImageProcessor getMask ()
 
void endPaste ()
 
void abortPaste ()
 
double getAngle (int x1, int y1, int x2, int y2)
 
String getName ()
 
void setName (String name)
 
int getPasteMode ()
 
boolean isArea ()
 
String getTypeAsString ()
 
String toString ()
 

Static Public Member Functions

static int getWidth ()
 
static void setWidth (int w)
 
- Static Public Member Functions inherited from Roi
static Color getColor ()
 
static void setColor (Color c)
 
static void setPasteMode (int transferMode)
 
static int getCurrentPasteMode ()
 

Data Fields

int x1
 

Protected Member Functions

void grow (int xend, int yend)
 
void moveHandle (int ox, int oy)
 
void mouseDownInHandle (int handle, int sx, int sy)
 
- Protected Member Functions inherited from Roi
void grow (int xNew, int yNew)
 
void moveHandle (int ox, int oy)
 
void updateClipRect ()
 
void handleMouseDrag (int sx, int sy, int flags)
 
void mouseDownInHandle (int handle, int sx, int sy)
 
void handleMouseDown (int sx, int sy)
 
void handleMouseUp (int screenX, int screenY)
 
void showStatus ()
 

Additional Inherited Members

- Static Public Attributes inherited from Roi
static final int CONSTRUCTING =0
 
static final int RECTANGLE =0
 
static final int HANDLE_SIZE = 5
 
static final int NOT_PASTING = -1
 
static Roi previousRoi
 
- Protected Attributes inherited from Roi
int type
 
int xMax
 
ImagePlus imp
 
ImageCanvas ic
 
int oldX
 
int clipX
 
ImagePlus clipboard
 
boolean constrain
 
boolean center
 
boolean updateFullWindow
 
double mag = 1.0
 
String name
 
ImageProcessor cachedMask
 
- Static Protected Attributes inherited from Roi
static Color ROIColor = Prefs.getColor(Prefs.ROICOLOR,Color.yellow)
 
static int pasteMode = Blitter.COPY
 

Detailed Description

This class represents a straight line selection.

Definition at line 11 of file Line.java.

Constructor & Destructor Documentation

Line ( int  ox1,
int  oy1,
int  ox2,
int  oy2 
)
inline

Creates a new straight line selection using the specified starting and ending offscreen coordinates.

Definition at line 19 of file Line.java.

Line ( int  ox,
int  oy,
ImagePlus  imp 
)
inline

Starts the process of creating a new user-generated straight line selection. 'ox' and 'oy' are offscreen coordinates that specify the start of the line. The user will determine the end of the line interactively using rubber banding.

Definition at line 30 of file Line.java.

Line ( int  ox1,
int  oy1,
int  ox2,
int  oy2,
ImagePlus  imp 
)
inline

Obsolete

Definition at line 37 of file Line.java.

Member Function Documentation

void draw ( Graphics  g)
inline

Draws this line in the image.

Definition at line 105 of file Line.java.

double getLength ( )
inline

Returns the length of this line.

Definition at line 128 of file Line.java.

double [] getPixels ( )
inline

Returns the pixel values along this line.

Definition at line 140 of file Line.java.

double getRawLength ( )
inline

Returns the length of this line in pixels.

Definition at line 135 of file Line.java.

int isHandle ( int  sx,
int  sy 
)
inline

Returns a handle number if the specified screen coordinates are inside or near a handle, otherwise returns -1.

Definition at line 160 of file Line.java.

void nudgeCorner ( int  key)
inline

Nudge end point of line by one pixel.

Definition at line 186 of file Line.java.


The documentation for this class was generated from the following file: