public class TextWrapper extends ShapeWrapper<TextData> implements Text
Wraps function calls to the TextData contained.
ANNOTATION_LINK
data
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, toAWTTransform
addAndReplaceFile, addAndReplaceTable, addKeyValuePair, addTag, addTag, getAnnotations, getFileAnnotations, getMapAnnotations, getMyRating, getTable, getTags, rate, removeLink, unlink
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, getUpdated, saveAndUpdate, toString, wrap, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asDataObject, toAWTShape
createTransformedAWTShape, getBoundingBox, getC, getCZT, getFill, getFontSize, getStroke, getT, getZ, link, setC, setCZT, setFill, setFontSize, setStroke, setT, setTransform, setTransform, setZ, toAWTTransform
addAndReplaceFile, 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, unlink
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, distinct, flatten, getCreated, getElementsOf, getGroupId, getId, getOwner, getUpdated, saveAndUpdate
getCoordinates, setCoordinates, setCoordinates
public 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.