public class RectangleWrapper extends ShapeWrapper<RectangleData> implements Rectangle
Wraps function calls to the RectangleData contained.
ANNOTATION_LINKdata| Constructor and Description |
|---|
RectangleWrapper()
Constructor of the RectangleWrapper class using a new empty RectangleData.
|
RectangleWrapper(double x,
double y,
double width,
double height)
Constructor of the RectangleWrapper class using a new RectangleData.
|
RectangleWrapper(RectangleData rectangle)
Constructor of the RectangleWrapper class using a RectangleData.
|
RectangleWrapper(Roi ijRoi)
Constructor of the RectangleWrapper class using bounds from an ImageJ ROI.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getHeight()
Returns the height untransformed rectangle.
|
String |
getText()
Gets the text on the ShapeData.
|
double |
getWidth()
Returns the width untransformed rectangle.
|
double |
getX()
Returns the x-coordinate of the shape.
|
double |
getY()
Returns the y coordinate of the shape.
|
void |
setHeight(double height)
Sets the height of an untransformed rectangle.
|
void |
setText(String text)
Sets the text on the ShapeData.
|
void |
setWidth(double width)
Sets width of an untransformed rectangle.
|
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 RectangleWrapper(RectangleData rectangle)
rectangle - The RectangleData to wrap.public RectangleWrapper()
public RectangleWrapper(Roi ijRoi)
ijRoi - An ImageJ ROI.public RectangleWrapper(double x,
double y,
double width,
double height)
x - The x-coordinate of the top-left corner.y - The y-coordinate of the top-left corner.width - The width of the rectangle.height - The height of the rectangle.public String getText()
public void setText(String text)
public double getX()
getX in interface Rectangularpublic void setX(double x)
setX in interface Rectangularx - See above.public double getY()
getY in interface Rectangularpublic void setY(double y)
setY in interface Rectangulary - See above.public double getWidth()
getWidth in interface Rectangularpublic void setWidth(double width)
setWidth in interface Rectangularwidth - See above.public double getHeight()
getHeight in interface Rectangularpublic void setHeight(double height)
setHeight in interface Rectangularheight - See above.public Roi toImageJ()
toImageJ in interface ShapetoImageJ in class ShapeWrapper<RectangleData>Copyright © 2020–2023 GReD. All rights reserved.