Class PolygonWrapper

    • 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

      • getText

        public java.lang.String getText()
        Gets the text on the ShapeData.
        Specified by:
        getText in interface Shape
        Returns:
        the text
      • setText

        public void setText​(java.lang.String text)
        Sets the text on the ShapeData.
        Specified by:
        setText in interface Shape
        Parameters:
        text - the text
      • getPoints

        public java.util.List<java.awt.geom.Point2D.Double> getPoints()
        Returns the points in the polygonal shape.
        Specified by:
        getPoints in interface Polygonal
        Returns:
        See above.
      • setPoints

        public void setPoints​(java.util.List<java.awt.geom.Point2D.Double> points)
        Sets the points in the polygonal shape.
        Specified by:
        setPoints in interface Polygonal
        Parameters:
        points - The points to set.
      • getMaskPoints

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