Package fr.igred.omero.roi
Class LineWrapper
- java.lang.Object
-
- fr.igred.omero.ObjectWrapper<T>
-
- fr.igred.omero.AnnotatableWrapper<T>
-
- fr.igred.omero.roi.ShapeWrapper<LineData>
-
- fr.igred.omero.roi.LineWrapper
-
- All Implemented Interfaces:
Annotatable
,RemoteObject
,Line
,Shape
public class LineWrapper extends ShapeWrapper<LineData> implements Line
Class containing an LineData.Wraps function calls to the LineData 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 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(Line line)
Constructor of the LineWrapper class using an ImageJ Line ROI.LineWrapper(LineData line)
Constructor of the LineWrapper class using a LineData.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getText()
Gets the text on the ShapeData.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 on the ShapeData.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.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.Line
asDataObject, getCoordinates, setCoordinates, setCoordinates, toAWTShape
-
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
-
LineWrapper
public LineWrapper(LineData line)
Constructor of the LineWrapper class using a LineData.- Parameters:
line
- The LineData to wrap.
-
LineWrapper
public LineWrapper()
Constructor of the RectangleWrapper class using a new empty LineData.
-
LineWrapper
public LineWrapper(Line line)
Constructor of the LineWrapper class using an ImageJ Line ROI.- Parameters:
line
- An ImageJ Line ROI.
-
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 java.lang.String getText()
Gets the text on the ShapeData.
-
setText
public void setText(java.lang.String text)
Sets the text on the ShapeData.
-
getX1
public double getX1()
Returns the x-coordinate of the starting point of an untransformed line.
-
setX1
public void setX1(double x1)
Set the x-coordinate of the starting point of an untransformed line.
-
getX2
public double getX2()
Returns the x-coordinate of the end point of an untransformed line.
-
setX2
public void setX2(double x2)
Set the x-coordinate of the end point of an untransformed line.
-
getY1
public double getY1()
Returns the y-coordinate of the starting point of an untransformed line.
-
setY1
public void setY1(double y1)
Set the y-coordinate of the starting point of an untransformed line.
-
getY2
public double getY2()
Returns the y-coordinate of the end point of an untransformed line.
-
setY2
public void setY2(double y2)
Set the y-coordinate of the end point of an untransformed line.
-
-