public class RectangleWrapper extends ShapeWrapper<RectangleData> implements Rectangle
Wraps function calls to the RectangleData contained.
ANNOTATION_LINK
data
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, 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 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 Rectangular
public void setX(double x)
setX
in interface Rectangular
x
- See above.public double getY()
getY
in interface Rectangular
public void setY(double y)
setY
in interface Rectangular
y
- See above.public double getWidth()
getWidth
in interface Rectangular
public void setWidth(double width)
setWidth
in interface Rectangular
width
- See above.public double getHeight()
getHeight
in interface Rectangular
public void setHeight(double height)
setHeight
in interface Rectangular
height
- See above.public Roi toImageJ()
toImageJ
in interface Shape
toImageJ
in class ShapeWrapper<RectangleData>
Copyright © 2020–2023 GReD. All rights reserved.