|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RoiBeans
Title:
Description:
Copyright: Copyright (c) 2011
Company:
Field Summary |
---|
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 |
Method Summary | |
---|---|
void |
abortPaste()
|
boolean |
contains(int x,
int y)
|
void |
copyAttributes(Roi roi2)
Copy the attributes (outline color, fill color, outline width) of 'roi2' to the this selection. |
void |
draw(java.awt.Graphics g)
|
void |
drawHandle(java.awt.Graphics g,
int x,
int y)
|
void |
drawOverlay(java.awt.Graphics g)
|
void |
drawPixels()
Deprecated. replaced by drawPixels(ImageProcessor) |
void |
drawPixels(ImageProcessor ip)
|
void |
endPaste()
|
boolean |
equals(java.lang.Object obj)
Checks whether two rectangles are equal. |
double |
getAngle(int x1,
int y1,
int x2,
int y2)
Returns the angle in degrees between the specified line and a horizontal line. |
java.awt.Rectangle |
getBoundingRect()
Deprecated. replaced by getBounds() |
java.awt.Rectangle |
getBounds()
Return this selection's bounding rectangle. |
java.awt.Polygon |
getConvexHull()
|
int |
getCornerDiameter()
Returns the rounded rectangle corner diameter (pixels). |
boolean |
getDrawOffset()
Returns true if this is a PolygonRoi that supports sub-pixel resolution and polygons are drawn on zoomed images offset down and to the right by 0.5 pixels.. |
double |
getFeretsDiameter()
Returns Feret's diameter, the greatest distance between any two points along the ROI boundary. |
double[] |
getFeretValues()
Caculates "Feret" (maximum caliper width), "FeretAngle" and "MinFeret" (minimum caliper width), "FeretX" and "FeretY". |
java.awt.Color |
getFillColor()
Returns the color used to fill this ROI, or null if it is not filled. |
java.awt.geom.Rectangle2D.Double |
getFloatBounds()
Return this selection's bounding rectangle. |
FloatPolygon |
getFloatPolygon()
|
int |
getHandleSize()
|
ImagePlus |
getImage()
Returns the ImagePlus associated with this ROI, or null. |
int |
getImageID()
Returns the ID of the image associated with this ROI. |
double |
getLength()
Returns the perimeter length. |
ImageProcessor |
getMask()
Always returns null for rectangular Roi's |
java.lang.String |
getName()
Returns the name of this ROI, or null. |
int |
getPasteMode()
Returns the current paste transfer mode, or NOT_PASTING (-1) if no paste operation is in progress. |
java.awt.Polygon |
getPolygon()
Returns the outline of this selection as a Polygon, or null if this is a straight line selection. |
int |
getPosition()
Returns the stack position (image number) of this ROI, or zero if the ROI is not associated with a particular stack image. |
Overlay |
getPrototypeOverlay()
|
int |
getRoundRectArcSize()
Obsolete; replaced by getCornerDiameter(). |
int |
getState()
|
java.awt.BasicStroke |
getStroke()
Returns the Stroke used to draw this ROI, or null if no Stroke is used. |
java.awt.Color |
getStrokeColor()
Returns the the color used to draw the ROI outline or null if the default color is being used. |
float |
getStrokeWidth()
Returns the lineWidth. |
int |
getType()
|
java.lang.String |
getTypeAsString()
Convenience method that converts Roi type to a human-readable form. |
boolean |
isArea()
Returns 'true' if this is an area selection. |
boolean |
isDrawingTool()
Returns 'true' if this is an ROI primarily used from drawing (e.g., TextRoi or Arrow). |
int |
isHandle(int sx,
int sy)
Returns a handle number if the specified screen coordinates are inside or near a handle, otherwise returns -1. |
boolean |
isLine()
Returns 'true' if this is a line selection. |
boolean |
isVisible()
Returns true if this ROI is currently displayed on an image. |
void |
nudge(int key)
Nudge ROI one pixel on arrow key press. |
void |
nudgeCorner(int key)
Nudge lower right corner of rectangular and oval ROIs by one pixel based on arrow key press. |
void |
setCornerDiameter(int cornerDiameter)
Sets the rounded rectangle corner diameter (pixels). |
void |
setDrawOffset(boolean drawOffset)
|
void |
setFillColor(java.awt.Color color)
Sets the color used to fill ROIs when they are in an overlay. |
void |
setImage(ImagePlus imp)
|
void |
setInstanceColor(java.awt.Color c)
Deprecated. replaced by setStrokeColor() |
void |
setLineWidth(int width)
Deprecated. replaced by setStrokeWidth(int) |
void |
setLocation(int x,
int y)
Set the location of the ROI in image coordinates. |
void |
setName(java.lang.String name)
Sets the name of this ROI. |
void |
setNonScalable(boolean nonScalable)
Set 'nonScalable' true to have TextRois in a display list drawn at a fixed location and size. |
void |
setPosition(int n)
Sets the stack position (image number) of this ROI. |
void |
setPosition(int channel,
int slice,
int frame)
Sets the hyperstack position of this ROI. |
void |
setPrototypeOverlay(Overlay overlay)
|
void |
setRoundRectArcSize(int cornerDiameter)
Obsolete; replaced by setCornerDiameter(). |
void |
setStroke(java.awt.BasicStroke stroke)
Sets the Stroke used to draw this ROI. |
void |
setStrokeColor(java.awt.Color c)
Sets the color used by this ROI to draw its outline. |
void |
setStrokeWidth(double width)
This is a version of setStrokeWidth() that accepts a double argument. |
void |
setStrokeWidth(float width)
Sets the width of the line used to draw this ROI. |
void |
startPaste(ImagePlus clipboard)
|
boolean |
subPixelResolution()
Returns true if this is a PolygonRoi that supports sub-pixel resolution. |
java.lang.String |
toString()
|
void |
update(boolean add,
boolean subtract)
If 'add' is true, adds this selection to the previous one. |
void |
updateWideLine(float width)
|
Method Detail |
---|
void setLocation(int x, int y)
void setImage(ImagePlus imp)
ImagePlus getImage()
int getImageID()
int getType()
int getState()
double getLength()
double getFeretsDiameter()
double[] getFeretValues()
java.awt.Polygon getConvexHull()
java.awt.Rectangle getBounds()
java.awt.geom.Rectangle2D.Double getFloatBounds()
java.awt.Rectangle getBoundingRect()
java.awt.Polygon getPolygon()
ImageProcessor.setRoi(java.awt.Rectangle)
,
ImageProcessor.drawPolygon(java.awt.Polygon)
,
ImageProcessor.fillPolygon(java.awt.Polygon)
FloatPolygon getFloatPolygon()
void nudge(int key)
void nudgeCorner(int key)
int getHandleSize()
void draw(java.awt.Graphics g)
void drawOverlay(java.awt.Graphics g)
void drawHandle(java.awt.Graphics g, int x, int y)
void drawPixels()
void drawPixels(ImageProcessor ip)
boolean contains(int x, int y)
int isHandle(int sx, int sy)
void update(boolean add, boolean subtract)
ImageProcessor getMask()
double getAngle(int x1, int y1, int x2, int y2)
void setStrokeColor(java.awt.Color c)
getStrokeColor()
,
#setStrokeWidth(int)
,
ImagePlus.setOverlay(ij.gui.Overlay)
java.awt.Color getStrokeColor()
setStrokeColor(Color)
void setFillColor(java.awt.Color color)
ImagePlus.setOverlay(ij.gui.Overlay)
java.awt.Color getFillColor()
getStrokeColor()
void copyAttributes(Roi roi2)
void setInstanceColor(java.awt.Color c)
void setLineWidth(int width)
void updateWideLine(float width)
void setNonScalable(boolean nonScalable)
void setStrokeWidth(float width)
setStrokeColor(Color)
,
ImagePlus.setOverlay(ij.gui.Overlay)
void setStrokeWidth(double width)
float getStrokeWidth()
void setStroke(java.awt.BasicStroke stroke)
java.awt.BasicStroke getStroke()
java.lang.String getName()
void setName(java.lang.String name)
void setCornerDiameter(int cornerDiameter)
int getCornerDiameter()
void setRoundRectArcSize(int cornerDiameter)
int getRoundRectArcSize()
void setPosition(int n)
Overlay
int getPosition()
Overlay
void setPosition(int channel, int slice, int frame)
Overlay
void setPrototypeOverlay(Overlay overlay)
Overlay getPrototypeOverlay()
void startPaste(ImagePlus clipboard)
void endPaste()
void abortPaste()
int getPasteMode()
Blitter
boolean isArea()
boolean isLine()
boolean isDrawingTool()
java.lang.String getTypeAsString()
boolean isVisible()
boolean subPixelResolution()
boolean getDrawOffset()
void setDrawOffset(boolean drawOffset)
boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |