Package fr.igred.omero.roi
Class TextWrapper
- java.lang.Object
-
- fr.igred.omero.ObjectWrapper<T>
-
- fr.igred.omero.AnnotatableWrapper<T>
-
- fr.igred.omero.roi.ShapeWrapper<TextData>
-
- fr.igred.omero.roi.TextWrapper
-
- All Implemented Interfaces:
Annotatable
,RemoteObject
,Punctual
,Shape
,Text
public class TextWrapper extends ShapeWrapper<TextData> implements Text
Class containing an TextData.Wraps function calls to the TextData contained.
-
-
Field Summary
-
Fields inherited from class fr.igred.omero.roi.ShapeWrapper
ANNOTATION_LINK
-
Fields inherited from class fr.igred.omero.ObjectWrapper
data
-
-
Constructor Summary
Constructors Constructor Description TextWrapper()
Constructor of the TextWrapper class using a new empty ShapeData.TextWrapper(TextRoi text)
Constructor of the TextWrapper class using an ImageJ TextRoi.TextWrapper(java.lang.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.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(java.lang.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.-
Methods inherited from class fr.igred.omero.roi.ShapeWrapper
annotationLinkType, copyFromIJRoi, copyToIJRoi, getBoundingBox, getC, getFill, getFontSize, getStroke, getT, getZ, setC, setFill, setFontSize, setStroke, setT, setTransform, setZ, toAWTTransform
-
Methods inherited from class fr.igred.omero.AnnotatableWrapper
addAndReplaceFile, addAndReplaceTable, addKeyValuePair, addTag, addTag, getAnnotations, getFileAnnotations, getMapAnnotations, getMyRating, getTable, getTags, rate, removeLink, unlink
-
Methods inherited from class fr.igred.omero.ObjectWrapper
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, saveAndUpdate, toString, wrap, wrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface fr.igred.omero.Annotatable
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
-
Methods inherited from interface fr.igred.omero.roi.Punctual
getCoordinates, setCoordinates, setCoordinates
-
Methods inherited from interface fr.igred.omero.RemoteObject
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, saveAndUpdate
-
Methods inherited from interface fr.igred.omero.roi.Shape
createTransformedAWTShape, getBoundingBox, getC, getCZT, getFill, getFontSize, getStroke, getT, getZ, link, setC, setCZT, setFill, setFontSize, setStroke, setT, setTransform, setTransform, setZ, toAWTTransform
-
Methods inherited from interface fr.igred.omero.roi.Text
asDataObject, toAWTShape
-
-
-
-
Constructor Detail
-
TextWrapper
public TextWrapper(TextData text)
Constructor of the TextWrapper class using a TextData.- Parameters:
text
- The TextData to wrap.
-
TextWrapper
public TextWrapper()
Constructor of the TextWrapper class using a new empty ShapeData.
-
TextWrapper
public TextWrapper(TextRoi text)
Constructor of the TextWrapper class using an ImageJ TextRoi.- Parameters:
text
- An ImageJ TextRoi.
-
TextWrapper
public TextWrapper(java.lang.String text, double x, double y)
Creates a new instance of the TextWrapper, sets the centre and major, minor axes.- Parameters:
text
- Object text.x
- x-coordinate of the shape.y
- y-coordinate of the shape.
-
-
Method Detail
-
getText
public java.lang.String getText()
Gets the text on the ShapeData.
-
setText
public void setText(java.lang.String text)
Sets the text on the ShapeData.
-
getX
public double getX()
Returns the x-coordinate of the shape.
-
setX
public void setX(double x)
Sets the x-coordinate of the shape.
-
getY
public double getY()
Returns the y coordinate of the shape.
-
setY
public void setY(double y)
Sets the y-coordinate of the shape.
-
-