Package fr.igred.omero.roi
Class RectangleWrapper
- java.lang.Object
-
- fr.igred.omero.ObjectWrapper<T>
-
- fr.igred.omero.AnnotatableWrapper<T>
-
- fr.igred.omero.roi.ShapeWrapper<RectangleData>
-
- fr.igred.omero.roi.RectangleWrapper
-
- All Implemented Interfaces:
Annotatable
,RemoteObject
,Rectangle
,Rectangular
,Shape
public class RectangleWrapper extends ShapeWrapper<RectangleData> implements Rectangle
Class containing an RectangleData.Wraps function calls to the RectangleData 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 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(Roi ijRoi)
Constructor of the RectangleWrapper class using bounds from an ImageJ ROI.RectangleWrapper(RectangleData rectangle)
Constructor of the RectangleWrapper class using a RectangleData.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getHeight()
Returns the height untransformed rectangle.java.lang.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(java.lang.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.-
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.Rectangle
asDataObject, toAWTShape
-
Methods inherited from interface fr.igred.omero.roi.Rectangular
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
-
-
-
-
Constructor Detail
-
RectangleWrapper
public RectangleWrapper(RectangleData rectangle)
Constructor of the RectangleWrapper class using a RectangleData.- Parameters:
rectangle
- The RectangleData to wrap.
-
RectangleWrapper
public RectangleWrapper()
Constructor of the RectangleWrapper class using a new empty RectangleData.
-
RectangleWrapper
public RectangleWrapper(Roi ijRoi)
Constructor of the RectangleWrapper class using bounds from an ImageJ ROI.- Parameters:
ijRoi
- An ImageJ ROI.
-
RectangleWrapper
public RectangleWrapper(double x, double y, double width, double height)
Constructor of the RectangleWrapper class using a new RectangleData.- Parameters:
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.
-
-
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.- Specified by:
getX
in interfaceRectangular
- Returns:
- See above.
-
setX
public void setX(double x)
Sets the x-coordinate of the shape.- Specified by:
setX
in interfaceRectangular
- Parameters:
x
- See above.
-
getY
public double getY()
Returns the y coordinate of the shape.- Specified by:
getY
in interfaceRectangular
- Returns:
- See above.
-
setY
public void setY(double y)
Sets the y-coordinate of the shape.- Specified by:
setY
in interfaceRectangular
- Parameters:
y
- See above.
-
getWidth
public double getWidth()
Returns the width untransformed rectangle.- Specified by:
getWidth
in interfaceRectangular
- Returns:
- See above.
-
setWidth
public void setWidth(double width)
Sets width of an untransformed rectangle.- Specified by:
setWidth
in interfaceRectangular
- Parameters:
width
- See above.
-
getHeight
public double getHeight()
Returns the height untransformed rectangle.- Specified by:
getHeight
in interfaceRectangular
- Returns:
- See above.
-
setHeight
public void setHeight(double height)
Sets the height of an untransformed rectangle.- Specified by:
setHeight
in interfaceRectangular
- Parameters:
height
- See above.
-
toImageJ
public Roi toImageJ()
Converts shape to ImageJ ROI.- Specified by:
toImageJ
in interfaceShape
- Overrides:
toImageJ
in classShapeWrapper<RectangleData>
- Returns:
- An ImageJ ROI.
-
-