Class PolygonWrapper


  • public class PolygonWrapper
    extends GenericShapeWrapper<PolygonData>
    Class containing an PolygonData.

    Wraps function calls to the PolygonData contained.

    • Constructor Detail

      • PolygonWrapper

        public PolygonWrapper​(PolygonData polygon)
        Constructor of the PolygonWrapper class using a PolygonData.
        Parameters:
        polygon - The PolygonData to wrap.
      • PolygonWrapper

        public PolygonWrapper()
        Constructor of the PolygonWrapper class using a new empty LineData.
      • PolygonWrapper

        public PolygonWrapper​(Roi ijRoi)
        Constructor of the PolygonWrapper class using an ImageJ PolygonRoi.
        Parameters:
        ijRoi - An ImageJ ROI.
      • PolygonWrapper

        public PolygonWrapper​(java.util.List<java.awt.geom.Point2D.Double> points)
        Constructor of the PolygonWrapper class using a new LineData.
        Parameters:
        points - the points in the polyline.
    • Method Detail

      • getPoints

        public java.util.List<java.awt.geom.Point2D.Double> getPoints()
        Returns the points in the Polygon.
        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.
      • getMaskPoints

        public java.util.List<java.lang.Integer> getMaskPoints()
        Returns the points in the polygon.
        Returns:
        See above.