Package omero.gateway.model
Class RectangleData
- java.lang.Object
-
- omero.gateway.model.DataObject
-
- omero.gateway.model.ShapeData
-
- omero.gateway.model.RectangleData
-
public class RectangleData extends ShapeData
Represents a rectangle in the Euclidean space R2.- Since:
- 3.0-Beta4
-
-
Field Summary
-
Fields inherited from class omero.gateway.model.ShapeData
READONLY_FLAG, settings
-
-
Constructor Summary
Constructors Constructor Description RectangleData()
Creates a new instance with a default rectangle.RectangleData(double x, double y, double width, double height)
Creates a new instance of the RectangleData.RectangleData(omero.model.Shape shape)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getHeight()
Returns the height untransformed rectangle.java.lang.String
getText()
Returns the text of the shape.double
getWidth()
Returns the width untransformed rectangle.double
getX()
Returns the x-coordinate of the top-left corner of an untransformed rectangle.double
getY()
Returns the y-coordinate of the top-left corner of an untransformed rectangle.void
setHeight(double height)
Sets the height of an untransformed rectangle.void
setText(java.lang.String text)
Sets the text of the shape.void
setWidth(double width)
Sets width of an untransformed rectangle.void
setX(double x)
Sets the x-coordinate of the top-left corner of an untransformed rectangle.void
setY(double y)
Sets the y-coordinate of the top-left corner of an untransformed rectangle.-
Methods inherited from class omero.gateway.model.ShapeData
fromPoints, getC, getROICoordinate, getShapeSettings, getT, getTransform, getZ, isClientObject, isReadOnly, parsePointsToIntegerList, parsePointsToPoint2DList, setC, setClientObject, setDirty, setReadOnly, setROICoordinate, setShapeSettings, setT, setTransform, setZ, toNumber, toPoints
-
Methods inherited from class omero.gateway.model.DataObject
asAnnotation, asChannel, asDataset, asExperimenter, asFolder, asGroup, asIAnnotated, asImage, asIObject, asPixels, asPlaneInfo, asPlate, asPojo, asPojos, asPojos, asProject, asScreen, asWell, asWellSample, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getDetails, getGroupId, getId, getOwner, getPermissions, getUpdated, getVersion, isDirty, isLoaded, nullDetails, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, setId, setValue, setVersion, timeOfEvent, toString
-
-
-
-
Constructor Detail
-
RectangleData
public RectangleData(omero.model.Shape shape)
Creates a new instance.- Parameters:
shape
- The shape this object represents.
-
RectangleData
public RectangleData()
Creates a new instance with a default rectangle.
-
RectangleData
public RectangleData(double x, double y, double width, double height)
Creates a new instance of the 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()
Returns the text of the shape.- Returns:
- See above.
-
setText
public void setText(java.lang.String text)
Sets the text of the shape.- Parameters:
text
- See above.
-
getX
public double getX()
Returns the x-coordinate of the top-left corner of an untransformed rectangle.- Returns:
- See above.
-
setX
public void setX(double x)
Sets the x-coordinate of the top-left corner of an untransformed rectangle.- Parameters:
x
- See above.
-
getY
public double getY()
Returns the y-coordinate of the top-left corner of an untransformed rectangle.- Returns:
- See above.
-
setY
public void setY(double y)
Sets the y-coordinate of the top-left corner of an untransformed rectangle.- Parameters:
y
- See above.
-
getWidth
public double getWidth()
Returns the width untransformed rectangle.- Returns:
- See above.
-
setWidth
public void setWidth(double width)
Sets width of an untransformed rectangle.- Parameters:
width
- See above.
-
getHeight
public double getHeight()
Returns the height untransformed rectangle.- Returns:
- See above.
-
setHeight
public void setHeight(double height)
Sets the height of an untransformed rectangle.- Parameters:
height
- See above.
-
-