Package fr.igred.omero.roi
Class LineWrapper
- java.lang.Object
 - 
- fr.igred.omero.GenericObjectWrapper<T>
 - 
- fr.igred.omero.roi.GenericShapeWrapper<LineData>
 - 
- fr.igred.omero.roi.LineWrapper
 
 
 
 
- 
public class LineWrapper extends GenericShapeWrapper<LineData>
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class fr.igred.omero.GenericObjectWrapper
GenericObjectWrapper.SortById<U extends GenericObjectWrapper<?>> 
 - 
 
- 
Field Summary
Fields Modifier and Type Field Description static StringARROW- 
Fields inherited from class fr.igred.omero.GenericObjectWrapper
data 
 - 
 
- 
Constructor Summary
Constructors Constructor Description LineWrapper()Constructor of the RectangleWrapper class using a new empty LineData.LineWrapper(double x1, double y1, double x2, double y2)Constructor of the RectangleWrapper class using a new LineData.LineWrapper(LineData shape)Constructor of the LineWrapper class using a LineData. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]getCoordinates()Gets the coordinates of the LineData shape.StringgetText()Gets the text on the ShapeData.doublegetX1()Returns the x-coordinate of the starting point of an untransformed line.doublegetX2()Returns the x-coordinate of the end point of an untransformed line.doublegetY1()Returns the y-coordinate of the starting point of an untransformed line.doublegetY2()Returns the y-coordinate of the end point of an untransformed line.voidsetCoordinates(double[] coordinates)Sets the coordinates of the LineData shape.voidsetCoordinates(double x1, double y1, double x2, double y2)Sets the coordinates of the LineData shape.voidsetText(String text)Sets the text on the ShapeData.voidsetX1(double x1)Set the x-coordinate of the starting point of an untransformed line.voidsetX2(double x2)Set the x-coordinate of the end point of an untransformed line.voidsetY1(double y1)Set the y-coordinate of the starting point of an untransformed line.voidsetY2(double y2)Set the y-coordinate of the end point of an untransformed line.ShapetoAWTShape()Converts the shape to anShape.RoitoImageJ()Converts shape to ImageJ ROI.- 
Methods inherited from class fr.igred.omero.roi.GenericShapeWrapper
asShapeData, createTransformedAWTShape, getBoundingBox, getC, getFontSize, getStroke, getT, getZ, setC, setCZT, setFontSize, setStroke, setT, setTransform, setTransform, setZ, toAWTTransform 
- 
Methods inherited from class fr.igred.omero.GenericObjectWrapper
getCreated, getGroupId, getId, getOwner, saveAndUpdate, toString 
 - 
 
 - 
 
- 
- 
Field Detail
- 
ARROW
public static final String ARROW
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
LineWrapper
public LineWrapper(LineData shape)
Constructor of the LineWrapper class using a LineData.- Parameters:
 shape- the shape
 
- 
LineWrapper
public LineWrapper()
Constructor of the RectangleWrapper class using a new empty LineData. 
- 
LineWrapper
public LineWrapper(double x1, double y1, double x2, double y2)Constructor of the RectangleWrapper class using a new 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 String getText()
Gets the text on the ShapeData.- Specified by:
 getTextin classGenericShapeWrapper<LineData>- Returns:
 - the text
 
 
- 
setText
public void setText(String text)
Sets the text on the ShapeData.- Specified by:
 setTextin classGenericShapeWrapper<LineData>- Parameters:
 text- the text
 
- 
toAWTShape
public Shape toAWTShape()
Converts the shape to anShape.- Specified by:
 toAWTShapein classGenericShapeWrapper<LineData>- Returns:
 - The converted AWT Shape.
 
 
- 
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.
 
- 
setCoordinates
public void setCoordinates(double x1, double y1, double x2, double y2)Sets the coordinates of the LineData shape.- Parameters:
 x1- x-coordinate of the starting point of an untransformed line.y1- y-coordinate of the starting point of an untransformed line.x2- x-coordinate of the end point of an untransformed line.y2- y-coordinate of the end point of an untransformed line.
 
- 
getCoordinates
public double[] getCoordinates()
Gets the coordinates of the LineData shape.- Returns:
 - Array of coordinates containing {X1,Y1,X2,Y2}.
 
 
- 
setCoordinates
public void setCoordinates(double[] coordinates)
Sets the coordinates of the LineData shape.- Parameters:
 coordinates- Array of coordinates containing {X1,Y1,X2,Y2}.
 
- 
toImageJ
public Roi toImageJ()
Converts shape to ImageJ ROI.- Overrides:
 toImageJin classGenericShapeWrapper<LineData>- Returns:
 - An ImageJ ROI.
 
 
 - 
 
 -