Package fr.igred.omero.roi
Class PolylineWrapper
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
ConstructorDescriptionConstructor 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
Modifier and TypeMethodDescriptionReturns the points in the Polyline.getText()
Gets the text on the ShapeData.void
setPoints
(List<Point2D.Double> points) Sets the points in the polyline.void
Sets the text on the ShapeData.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, getRatings, 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, getUpdated, saveAndUpdate, toString, wrap, wrap
-
Constructor Details
-
PolylineWrapper
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
Constructor of the PolylineWrapper class using an ImageJ PolygonRoi.- Parameters:
ijRoi
- An ImageJ ROI.
-
PolylineWrapper
Constructor of the RectangleWrapper class using a new LineData.- Parameters:
points
- the points in the polyline.
-
-
Method Details
-
getText
Gets the text on the ShapeData.- Specified by:
getText
in classGenericShapeWrapper<PolylineData>
- Returns:
- the text
-
setText
Sets the text on the ShapeData.- Specified by:
setText
in classGenericShapeWrapper<PolylineData>
- Parameters:
text
- the text
-
toAWTShape
Converts the shape to anShape
.- Specified by:
toAWTShape
in classGenericShapeWrapper<PolylineData>
- Returns:
- The converted AWT Shape.
-
getPoints
Returns the points in the Polyline.- Returns:
- See above.
-
setPoints
Sets the points in the polyline.- Parameters:
points
- The points to set.
-