Package omero.gateway.model
Class LineData
- java.lang.Object
-
- omero.gateway.model.DataObject
-
- omero.gateway.model.ShapeData
-
- omero.gateway.model.LineData
-
public class LineData extends ShapeData
Represents a line in the Euclidean space R2.- Since:
- 3.0-Beta4
-
-
Field Summary
-
Fields inherited from class omero.gateway.model.ShapeData
READONLY_FLAG, settings
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getText()
Returns the text of the shape.double
getX1()
Returns the x-coordinate of the starting point of an untransformed line.double
getX2()
Returns the x-coordinate of the end point of an untransformed line.double
getY1()
Returns the y-coordinate of the starting point of an untransformed line.double
getY2()
Returns the y-coordinate of the end point of an untransformed line.void
setText(java.lang.String text)
Sets the text of the shape.void
setX1(double x1)
Set the x-coordinate of the starting point of an untransformed line.void
setX2(double x2)
Set the x-coordinate of the end point of an untransformed line.void
setY1(double y1)
Set the y-coordinate of the starting point of an untransformed line.void
setY2(double y2)
Set the y-coordinate of the end point of an untransformed line.-
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
-
LineData
public LineData(omero.model.Shape shape)
Creates a new instance.- Parameters:
shape
- The shape to host.
-
LineData
public LineData()
Create a new instance of LineData, creating a new LineI Object.
-
LineData
public LineData(double x1, double y1, double x2, double y2)
Create a new instance of the LineData,- Parameters:
x1
- x1-coordinate of the shape.y1
- y1-coordinate of the shape.x2
- x2-coordinate of the shape.y2
- y2-coordinate of the shape.
-
-
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.
-
getX1
public double getX1()
Returns the x-coordinate of the starting point of an untransformed line.- Returns:
- See above.
-
setX1
public void setX1(double x1)
Set the x-coordinate of the starting point of an untransformed line.- Parameters:
x1
- See above.
-
getX2
public double getX2()
Returns the x-coordinate of the end point of an untransformed line.- Returns:
- See above.
-
setX2
public void setX2(double x2)
Set the x-coordinate of the end point of an untransformed line.- Parameters:
x2
- See above.
-
getY1
public double getY1()
Returns the y-coordinate of the starting point of an untransformed line.- Returns:
- See above.
-
setY1
public void setY1(double y1)
Set the y-coordinate of the starting point of an untransformed line.- Parameters:
y1
- See above.
-
getY2
public double getY2()
Returns the y-coordinate of the end point of an untransformed line.- Returns:
- See above.
-
setY2
public void setY2(double y2)
Set the y-coordinate of the end point of an untransformed line.- Parameters:
y2
- See above.
-
-