Package fr.igred.omero.roi
Class PolylineWrapper
- java.lang.Object
-
- fr.igred.omero.GenericObjectWrapper<T>
-
- fr.igred.omero.roi.GenericShapeWrapper<PolylineData>
-
- fr.igred.omero.roi.PolylineWrapper
-
public class PolylineWrapper extends GenericShapeWrapper<PolylineData>
-
-
Field Summary
-
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 shape)
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
asShapeData, copy, createTransformedAWTShape, getBoundingBox, getC, getFontSize, getStroke, getT, getZ, setC, setCZT, setFontSize, setStroke, setT, setTransform, setTransform, setZ, toAWTTransform, toImageJ
-
Methods inherited from class fr.igred.omero.GenericObjectWrapper
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, delete, getCreated, getGroupId, getId, getOwner, saveAndUpdate, toString, wrap, wrap
-
-
-
-
Constructor Detail
-
PolylineWrapper
public PolylineWrapper(PolylineData shape)
Constructor of the PolylineWrapper class using a PolylineData.- Parameters:
shape
- the shape.
-
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.
-
-