|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectij.gui.Roi
ij.gui.TextRoi
public class TextRoi
This class is a rectangular ROI containing text.
Field Summary |
---|
Fields inherited from class ij.gui.Roi |
---|
clipboard, clipHeight, clipWidth, clipX, clipY, constrain, CONSTRUCTING, FREELINE, FREEROI, HANDLE_SIZE, ic, imp, LINE, MOVING, NORMAL, oldHeight, oldWidth, oldX, oldY, OVAL, pasteMode, POLYGON, POLYLINE, previousRoi, RECTANGLE, RESIZING, ROIColor, TRACED_ROI, type, updateFullWindow, xMax, yMax |
Constructor Summary | |
---|---|
TextRoi(int x,
int y,
ImagePlus imp)
|
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. |
static java.lang.String |
getFont()
Returns the current font. |
int[] |
getMask()
Returns a mask that can be used to draw the text on an image. |
static int |
getSize()
Returns the current font size. |
static int |
getStyle()
Returns the current font style. |
static void |
setFont(java.lang.String fontName,
int fontSize,
int fontStyle)
Sets the font face, size and style. |
Methods inherited from class ij.gui.Roi |
---|
abortPaste, clone, contains, drawPixels, endPaste, getAngle, getBoundingRect, getColor, getLength, getState, getType, grow, handleMouseDown, handleMouseDrag, handleMouseUp, nudge, nudgeCorner, setColor, setImage, setLocation, setPasteMode, showStatus, toString, updateClipRect |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TextRoi(int x, int y, ImagePlus imp)
Method Detail |
---|
public void addChar(char c)
public int[] getMask()
getMask
in class Roi
public void draw(java.awt.Graphics g)
draw
in class Roi
public static java.lang.String getFont()
public static int getSize()
public static int getStyle()
public static void setFont(java.lang.String fontName, int fontSize, int fontStyle)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |