|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
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, cachedMask, center, clipboard, clipHeight, clipWidth, clipX, clipY, COMPOSITE, constrain, CONSTRUCTING, FREELINE, FREEROI, HANDLE_SIZE, handleColor, ic, imp, instanceColor, LINE, mag, MOVING, MOVING_HANDLE, NORMAL, NOT_PASTING, oldHeight, oldWidth, oldX, oldY, OVAL, pasteMode, POINT, 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. |
void |
drawPixels(ImageProcessor ip)
Renders the text on the image. |
static java.lang.String |
getFont()
Returns the name of the current font. |
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 |
setFont(java.lang.String fontName,
int fontSize,
int fontStyle)
Sets the font face, size and style. |
static void |
setFont(java.lang.String fontName,
int fontSize,
int fontStyle,
boolean antialiased)
Sets the font face, size, style and antialiasing mode. |
Methods inherited from class ij.gui.Roi |
abortPaste, clone, contains, drawPixels, endPaste, equals, getAngle, getBoundingRect, getBounds, getColor, getCurrentPasteMode, getFeretsDiameter, getLength, getMask, getName, getPasteMode, getPolygon, getState, getType, getTypeAsString, grow, handleMouseDown, handleMouseDrag, isArea, isHandle, isLine, isVisible, mouseDownInHandle, moveHandle, nudge, nudgeCorner, setColor, setImage, setInstanceColor, setLocation, setName, setPasteMode, 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, ImagePlus imp)
Method Detail |
public void addChar(char c)
public void drawPixels(ImageProcessor ip)
drawPixels
in class Roi
ImageProcessor.setColor(java.awt.Color)
,
ImageProcessor.setLineWidth(int)
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 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)
protected void handleMouseUp(int screenX, int screenY)
handleMouseUp
in class Roi
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |