public class RectangleData extends ShapeData
READONLY_FLAG, settings
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
double |
getHeight()
Returns the height untransformed rectangle.
|
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(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.
|
fromPoints, getC, getROICoordinate, getShapeSettings, getT, getTransform, getZ, isClientObject, isReadOnly, isVisible, parsePointsToIntegerList, parsePointsToPoint2DList, setC, setClientObject, setDirty, setReadOnly, setROICoordinate, setShapeSettings, setT, setTransform, setVisible, setZ, toNumber, toPoints
asAnnotation, asChannel, asDataset, asExperimenter, asGroup, asIAnnotated, asImage, asIObject, asPixels, asPlate, asPojo, asPojos, asPojos, asProject, asScreen, asWell, asWellSample, canAnnotate, 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
public RectangleData(omero.model.Shape shape)
shape
- The shape this object represents.public RectangleData()
public RectangleData(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.heightThe
- height of the rectangle.public String getText()
public void setText(String text)
text
- See above.public double getX()
public void setX(double x)
x
- See above.public double getY()
public void setY(double y)
y
- See above.public double getWidth()
public void setWidth(double width)
width
- See above.public double getHeight()
public void setHeight(double height)
height
- See above.
Version: 5.1.2-ice35-b45
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.