|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectij.gui.Roi
ij.gui.TextRoi
This class is a rectangular ROI containing text.
| Field Summary |
| Fields inherited from class ij.gui.Roi |
ANGLE, asp_bk, aspect, cachedMask, center, clipboard, clipHeight, clipWidth, clipX, clipY, COMPOSITE, constrain, CONSTRUCTING, FREELINE, FREEROI, HANDLE_SIZE, handleColor, ic, imp, instanceColor, LINE, lineWidth, mag, MOVING, MOVING_HANDLE, nonScalable, NORMAL, NOT_PASTING, oldHeight, oldWidth, oldX, oldY, OVAL, pasteMode, POINT, POLYGON, POLYLINE, previousRoi, RECTANGLE, RESIZING, ROIColor, stroke, TRACED_ROI, type, updateFullWindow, xMax, yMax |
| Constructor Summary | |
TextRoi(int x,
int y,
ImagePlus imp)
|
|
TextRoi(int x,
int y,
java.lang.String text)
Creates a new TextRoi. |
|
TextRoi(int x,
int y,
java.lang.String text,
java.awt.Font font)
Creates a new TextRoi with the specified location and Font. |
|
TextRoi(int x,
int y,
java.lang.String text,
java.awt.Font font,
java.awt.Color color)
Obsolete |
|
| Method Summary | |
void |
addChar(char c)
Adds the specified character to the end of the text string. |
void |
draw(java.awt.Graphics g)
Draws the text on the screen, clipped to the ROI. |
void |
drawPixels(ImageProcessor ip)
Renders the text on the image. |
static java.lang.String |
getFont()
Returns the name of the current font. |
java.lang.String |
getMacroCode(ImageProcessor ip)
|
static int |
getSize()
Returns the current font size. |
static int |
getStyle()
Returns the current font style. |
protected void |
handleMouseUp(int screenX,
int screenY)
|
static boolean |
isAntialiased()
|
static void |
recordSetFont()
|
void |
setBackgroundColor(java.awt.Color color)
Sets the background color used to draw this TextRoi when it is part of a display list. |
static void |
setFont(java.lang.String fontName,
int fontSize,
int fontStyle)
Sets the global font face, size and style that will be used by TextROIs interactively created using the text tool. |
static void |
setFont(java.lang.String fontName,
int fontSize,
int fontStyle,
boolean antialiased)
Sets the font face, size, style and antialiasing mode that will be used by TextROIs interactively created using the text tool. |
| Methods inherited from class ij.gui.Roi |
abortPaste, clone, contains, drawPixels, endPaste, equals, getAngle, getBoundingRect, getBounds, getColor, getConvexHull, getCurrentPasteMode, getFeretsDiameter, getFeretValues, getFloatPolygon, getInstanceColor, getLength, getLineWidth, getMask, getName, getPasteMode, getPolygon, getState, getStroke, getType, getTypeAsString, grow, handleMouseDown, handleMouseDrag, isArea, isHandle, isLine, isVisible, mouseDownInHandle, moveHandle, nudge, nudgeCorner, setColor, setImage, setInstanceColor, setLineWidth, setLocation, setName, setNonScalable, setPasteMode, setStroke, showStatus, startPaste, toString, update, updateClipRect |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TextRoi(int x,
int y,
java.lang.String text)
public TextRoi(int x,
int y,
java.lang.String text,
java.awt.Font font)
Roi.setInstanceColor(java.awt.Color),
Roi.setNonScalable(boolean),
ImageCanvas.setDisplayList(Roi,Color)
public TextRoi(int x,
int y,
java.lang.String text,
java.awt.Font font,
java.awt.Color color)
public TextRoi(int x,
int y,
ImagePlus imp)
| Method Detail |
public void addChar(char c)
public void drawPixels(ImageProcessor ip)
drawPixels in class RoiImageProcessor.setColor(java.awt.Color),
ImageProcessor.setLineWidth(int)public void draw(java.awt.Graphics g)
draw in class Roipublic static java.lang.String getFont()
public static int getSize()
public static int getStyle()
public static boolean isAntialiased()
public static void setFont(java.lang.String fontName,
int fontSize,
int fontStyle)
public static void setFont(java.lang.String fontName,
int fontSize,
int fontStyle,
boolean antialiased)
public void setBackgroundColor(java.awt.Color color)
ImageCanvas.setDisplayList(Vector),
ImageCanvas.setDisplayList(Roi,Color)
protected void handleMouseUp(int screenX,
int screenY)
handleMouseUp in class Roipublic java.lang.String getMacroCode(ImageProcessor ip)
public static void recordSetFont()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||