Package fr.igred.omero.roi
Class PolylineWrapper
- java.lang.Object
-
- fr.igred.omero.GenericObjectWrapper<T>
-
- fr.igred.omero.AnnotatableWrapper<T>
-
- fr.igred.omero.roi.GenericShapeWrapper<PolylineData>
-
- fr.igred.omero.roi.PolylineWrapper
-
public class PolylineWrapper extends GenericShapeWrapper<PolylineData>
Class containing an PolylineData.Wraps function calls to the PolylineData contained.
-
-
Field Summary
-
Fields inherited from class fr.igred.omero.roi.GenericShapeWrapper
ANNOTATION_LINK
-
Fields inherited from class fr.igred.omero.GenericObjectWrapper
data
-
-
Constructor Summary
Constructors Constructor Description PolylineWrapper()
Constructor of the RectangleWrapper class using a new empty LineData.PolylineWrapper(Roi ijRoi)
Constructor of the PolylineWrapper class using an ImageJ PolygonRoi.PolylineWrapper(List<Point2D.Double> points)
Constructor of the RectangleWrapper class using a new LineData.PolylineWrapper(PolylineData polyline)
Constructor of the PolylineWrapper class using a PolylineData.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Point2D.Double>
getPoints()
Returns the points in the Polyline.String
getText()
Gets the text on the ShapeData.void
setPoints(List<Point2D.Double> points)
Sets the points in the polyline.void
setText(String text)
Sets the text on the ShapeData.Shape
toAWTShape()
Converts the shape to anShape
.-
Methods inherited from class fr.igred.omero.roi.GenericShapeWrapper
annotationLinkType, asShapeData, copyFromIJRoi, copyToIJRoi, createTransformedAWTShape, getBoundingBox, getC, getFill, getFontSize, getStroke, getT, getZ, link, setC, setCZT, setFill, setFontSize, setStroke, setT, setTransform, setTransform, setZ, toAWTTransform, toImageJ
-
Methods inherited from class fr.igred.omero.AnnotatableWrapper
addAndReplaceFile, addAndReplaceFile, addAndReplaceTable, addAndReplaceTable, addFile, addFileAnnotation, addKeyValuePair, addMapAnnotation, addPairKeyValue, addTable, addTag, addTag, addTag, addTags, addTags, copyAnnotationLinks, getAnnotations, getFileAnnotations, getKeyValuePairs, getMapAnnotations, getMyRating, getTable, getTables, getTags, getValue, isLinked, link, link, linkIfNotLinked, rate, removeLink, unlink
-
Methods inherited from class fr.igred.omero.GenericObjectWrapper
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, delete, distinct, flatten, getCreated, getGroupId, getId, getOwner, saveAndUpdate, toString, wrap, wrap
-
-
-
-
Constructor Detail
-
PolylineWrapper
public PolylineWrapper(PolylineData polyline)
Constructor of the PolylineWrapper class using a PolylineData.- Parameters:
polyline
- The PolylineData to wrap.
-
PolylineWrapper
public PolylineWrapper()
Constructor of the RectangleWrapper class using a new empty LineData.
-
PolylineWrapper
public PolylineWrapper(Roi ijRoi)
Constructor of the PolylineWrapper class using an ImageJ PolygonRoi.- Parameters:
ijRoi
- An ImageJ ROI.
-
PolylineWrapper
public PolylineWrapper(List<Point2D.Double> points)
Constructor of the RectangleWrapper class using a new LineData.- Parameters:
points
- the points in the polyline.
-
-
Method Detail
-
getText
public String getText()
Gets the text on the ShapeData.- Specified by:
getText
in classGenericShapeWrapper<PolylineData>
- Returns:
- the text
-
setText
public void setText(String text)
Sets the text on the ShapeData.- Specified by:
setText
in classGenericShapeWrapper<PolylineData>
- Parameters:
text
- the text
-
toAWTShape
public Shape toAWTShape()
Converts the shape to anShape
.- Specified by:
toAWTShape
in classGenericShapeWrapper<PolylineData>
- Returns:
- The converted AWT Shape.
-
getPoints
public List<Point2D.Double> getPoints()
Returns the points in the Polyline.- Returns:
- See above.
-
setPoints
public void setPoints(List<Point2D.Double> points)
Sets the points in the polyline.- Parameters:
points
- The points to set.
-
-