|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectij.gui.AbstractRoi
ij.gui.AttributeRoi
public abstract class AttributeRoi
Title:
Description:
Copyright: Copyright (c) 2011
Company:
Field Summary |
---|
Fields inherited from interface ij.gui.RoiConstance |
---|
ADD_TO_ROI, ANGLE, COMPOSITE, CONSTRUCTING, DRAW_HANDLE, EVT_HANDLE_SIZE, FILL_HANDLE, FREELINE, FREEROI, HANDLE_SIZE, LINE, MOVING, MOVING_HANDLE, MOVING_ROUNDRECT_HANDLE, NO_MODS, NORMAL, NOT_PASTING, OVAL, POINT, POLYGON, POLYLINE, RECTANGLE, RESIZING, SUBTRACT_FROM_ROI, TRACED_ROI |
Constructor Summary | |
---|---|
AttributeRoi()
|
Method Summary | |
---|---|
void |
copyAttributes(Roi roi2)
Copy the attributes (outline color, fill color, outline width) of 'roi2' to the this selection. |
double |
getAngle(int x1,
int y1,
int x2,
int y2)
Returns the angle in degrees between the specified line and a horizontal line. |
static java.awt.Color |
getColor()
Returns the default (global) color used for drawing ROI outlines. |
java.awt.Polygon |
getConvexHull()
|
int |
getCornerDiameter()
Returns the rounded rectangle corner diameter (pixels). |
int |
getCPosition()
Returns the channel position of this ROI, or zero if this ROI is not associated with a particular channel. |
static java.awt.Color |
getDefaultFillColor()
|
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. |
ImagePlus |
getImage()
Returns the ImagePlus associated with this ROI, or null. |
int |
getImageID()
Returns the ID of the image associated with this ROI. |
java.lang.String |
getName()
Returns the name of this ROI, or null. |
int |
getPosition()
Returns the stack position (image number) of this ROI, or zero if the ROI is not associated with a particular stack image. |
int |
getRoundRectArcSize()
Obsolete; replaced by getCornerDiameter(). |
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 |
getTPosition()
Returns the frame position of this ROI, or zero if this ROI is not associated with a particular frame. |
int |
getType()
|
int |
getZPosition()
Returns the slice position of this ROI, or zero if this ROI is not associated with a particular slice. |
static void |
setColor(java.awt.Color c)
Sets the default (global) color used for ROI outlines. |
void |
setCornerDiameter(int cornerDiameter)
Sets the rounded rectangle corner diameter (pixels). |
static void |
setDefaultFillColor(java.awt.Color color)
|
void |
setFillColor(java.awt.Color color)
Sets the color used to fill ROIs when they are in an overlay. |
void |
setName(java.lang.String name)
Sets the name of this ROI. |
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 |
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. |
Methods inherited from class ij.gui.AbstractRoi |
---|
clone |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ij.gui.RoiBeans |
---|
abortPaste, contains, draw, drawHandle, drawOverlay, drawPixels, drawPixels, endPaste, equals, getBoundingRect, getBounds, getDrawOffset, getFloatBounds, getFloatPolygon, getHandleSize, getLength, getMask, getPasteMode, getPolygon, getPrototypeOverlay, getState, getTypeAsString, isArea, isDrawingTool, isHandle, isLine, isVisible, nudge, nudgeCorner, setDrawOffset, setImage, setInstanceColor, setLineWidth, setLocation, setNonScalable, setPrototypeOverlay, startPaste, subPixelResolution, toString, update, updateWideLine |
Constructor Detail |
---|
public AttributeRoi()
Method Detail |
---|
public ImagePlus getImage()
public int getImageID()
public int getType()
public double getFeretsDiameter()
public double[] getFeretValues()
public double getAngle(int x1, int y1, int x2, int y2)
public java.awt.Polygon getConvexHull()
public static void setColor(java.awt.Color c)
getColor()
,
setStrokeColor(Color)
public static java.awt.Color getColor()
setColor(Color)
,
getStrokeColor()
public void setStrokeColor(java.awt.Color c)
getStrokeColor()
,
#setStrokeWidth(int)
,
ImagePlus.setOverlay(ij.gui.Overlay)
public java.awt.Color getStrokeColor()
setStrokeColor(Color)
public void setFillColor(java.awt.Color color)
ImagePlus.setOverlay(ij.gui.Overlay)
public java.awt.Color getFillColor()
getStrokeColor()
public static void setDefaultFillColor(java.awt.Color color)
public static java.awt.Color getDefaultFillColor()
public void setStrokeWidth(float width)
setStrokeColor(Color)
,
ImagePlus.setOverlay(ij.gui.Overlay)
public void setStrokeWidth(double width)
public float getStrokeWidth()
public void setStroke(java.awt.BasicStroke stroke)
public java.awt.BasicStroke getStroke()
public void copyAttributes(Roi roi2)
public java.lang.String getName()
public void setName(java.lang.String name)
public void setCornerDiameter(int cornerDiameter)
public int getCornerDiameter()
public void setRoundRectArcSize(int cornerDiameter)
public int getRoundRectArcSize()
public void setPosition(int n)
Overlay
public int getPosition()
Overlay
public void setPosition(int channel, int slice, int frame)
Overlay
public final int getCPosition()
public final int getZPosition()
public final int getTPosition()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |