public class TextWrapper extends ShapeWrapper<TextData> implements Text
Wraps function calls to the TextData contained.
ANNOTATION_LINKdata| Constructor and Description |
|---|
TextWrapper()
Constructor of the TextWrapper class using a new empty ShapeData.
|
TextWrapper(String text,
double x,
double y)
Creates a new instance of the TextWrapper, sets the centre and major, minor axes.
|
TextWrapper(TextData text)
Constructor of the TextWrapper class using a TextData.
|
TextWrapper(TextRoi text)
Constructor of the TextWrapper class using an ImageJ TextRoi.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getText()
Gets the text on the ShapeData.
|
double |
getX()
Returns the x-coordinate of the shape.
|
double |
getY()
Returns the y coordinate of the shape.
|
void |
setText(String text)
Sets the text on the ShapeData.
|
void |
setX(double x)
Sets the x-coordinate of the shape.
|
void |
setY(double y)
Sets the y-coordinate of the shape.
|
Roi |
toImageJ()
Converts shape to ImageJ ROI.
|
annotationLinkType, copyFromIJRoi, copyToIJRoi, getBoundingBox, getC, getFill, getFontSize, getStroke, getT, getZ, setC, setFill, setFontSize, setStroke, setT, setTransform, setZ, toAWTTransformaddAndReplaceFile, addAndReplaceTable, addKeyValuePair, addTag, addTag, getAnnotations, getFileAnnotations, getMapAnnotations, getMyRating, getTable, getTags, rate, removeLink, unlinkasDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, getUpdated, saveAndUpdate, toString, wrap, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasDataObject, toAWTShapecreateTransformedAWTShape, getBoundingBox, getC, getCZT, getFill, getFontSize, getStroke, getT, getZ, link, setC, setCZT, setFill, setFontSize, setStroke, setT, setTransform, setTransform, setZ, toAWTTransformaddAndReplaceFile, addAndReplaceFile, addAndReplaceTable, addAndReplaceTable, addFile, addKeyValuePair, addTable, addTag, addTag, addTags, copyAnnotationLinks, getAnnotationData, getAnnotations, getFileAnnotations, getKeyValuePairs, getMapAnnotations, getMyRating, getTable, getTables, getTags, getValues, isLinked, link, link, linkIfNotLinked, rate, unlinkcanAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, distinct, flatten, getCreated, getElementsOf, getGroupId, getId, getOwner, getUpdated, saveAndUpdategetCoordinates, setCoordinates, setCoordinatespublic TextWrapper(TextData text)
text - The TextData to wrap.public TextWrapper()
public TextWrapper(TextRoi text)
text - An ImageJ TextRoi.public TextWrapper(String text, double x, double y)
text - Object text.x - x-coordinate of the shape.y - y-coordinate of the shape.public String getText()
public void setText(String text)
public double getX()
public void setX(double x)
public double getY()
public void setY(double y)
Copyright © 2020–2023 GReD. All rights reserved.