Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.astro.louisville.edu/software/astroimagej/imagej/api/ij/gui/TextRoi.html
Дата изменения: Thu Dec 2 23:03:11 2010 Дата индексирования: Mon Oct 1 21:38:37 2012 Кодировка: Поисковые слова: http www.stsci.edu science goods |
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ij.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 |
---|
ANGLE, asp_bk, aspect, cachedMask, center, clipboard, clipHeight, clipWidth, clipX, clipY, COMPOSITE, constrain, CONSTRUCTING, defaultFillColor, fillColor, FREELINE, FREEROI, HANDLE_SIZE, handleColor, ic, imp, instanceColor, LINE, lineWidth, mag, MOVING, MOVING_HANDLE, nonScalable, NORMAL, NOT_PASTING, oldHeight, oldWidth, oldX, oldY, onePixelWide, OVAL, overlay, pasteMode, POINT, POLYGON, POLYLINE, previousRoi, RECTANGLE, RESIZING, ROIColor, stroke, strokeColor, TRACED_ROI, type, updateFullWindow, wideLine, 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)
Deprecated. |
Method Summary | |
---|---|
void |
addChar(char c)
Adds the specified character to the end of the text string. |
java.lang.Object |
clone()
Returns a copy of this TextRoi. |
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. |
java.awt.Font |
getCurrentFont()
Returns the current (instance) font. |
static java.lang.String |
getFont()
Returns the name of the global font. |
java.lang.String |
getMacroCode(ImageProcessor ip)
|
static int |
getSize()
Returns the global font size. |
static int |
getStyle()
Returns the global font style. |
java.lang.String |
getText()
|
protected void |
handleMouseUp(int screenX,
int screenY)
|
static boolean |
isAntialiased()
|
boolean |
isDrawingTool()
Returns 'true' if this is an ROI primarily used from drawing (e.g., Rounded Rectangle, TextRoi or Arrow). |
static void |
recordSetFont()
|
void |
setCurrentFont(java.awt.Font font)
Set the current (instance) font. |
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 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.setStrokeColor(java.awt.Color)
,
Roi.setNonScalable(boolean)
,
ImagePlus.setOverlay(ij.gui.Overlay)
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 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 void setCurrentFont(java.awt.Font font)
public java.awt.Font getCurrentFont()
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
public java.lang.String getMacroCode(ImageProcessor ip)
public java.lang.String getText()
public static void recordSetFont()
public boolean isDrawingTool()
Roi
isDrawingTool
in class Roi
public java.lang.Object clone()
clone
in class Roi
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |