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>
Class containing an PolylineData.Wraps function calls to the PolylineData contained.
-
-
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(java.util.List<java.awt.geom.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 java.util.List<java.awt.geom.Point2D.Double>
getPoints()
Returns the points in the Polyline.java.lang.String
getText()
Gets the text on the ShapeData.void
setPoints(java.util.List<java.awt.geom.Point2D.Double> points)
Sets the points in the polyline.void
setText(java.lang.String text)
Sets the text on the ShapeData.java.awt.Shape
toAWTShape()
Converts the shape to anShape
.-
Methods inherited from class fr.igred.omero.roi.GenericShapeWrapper
asShapeData, copyFromIJRoi, copyToIJRoi, createTransformedAWTShape, getBoundingBox, getC, getFill, getFontSize, getStroke, getT, getZ, setC, setCZT, setFill, setFontSize, setStroke, setT, setTransform, setTransform, setZ, toAWTTransform, toImageJ
-
Methods inherited from class fr.igred.omero.GenericObjectWrapper
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, delete, distinct, 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(java.util.List<java.awt.geom.Point2D.Double> points)
Constructor of the RectangleWrapper class using a new LineData.- Parameters:
points
- the points in the polyline.
-
-
Method Detail
-
getText
public java.lang.String getText()
Gets the text on the ShapeData.- Specified by:
getText
in classGenericShapeWrapper<PolylineData>
- Returns:
- the text
-
setText
public void setText(java.lang.String text)
Sets the text on the ShapeData.- Specified by:
setText
in classGenericShapeWrapper<PolylineData>
- Parameters:
text
- the text
-
toAWTShape
public java.awt.Shape toAWTShape()
Converts the shape to anShape
.- Specified by:
toAWTShape
in classGenericShapeWrapper<PolylineData>
- Returns:
- The converted AWT Shape.
-
getPoints
public java.util.List<java.awt.geom.Point2D.Double> getPoints()
Returns the points in the Polyline.- Returns:
- See above.
-
setPoints
public void setPoints(java.util.List<java.awt.geom.Point2D.Double> points)
Sets the points in the polyline.- Parameters:
points
- The points to set.
-
-