Class PolygonData


  • public class PolygonData
    extends ShapeData
    Represents an Polygon shape in the Euclidean space R2.
    Since:
    3.0-Beta4
    • Constructor Detail

      • PolygonData

        public PolygonData​(omero.model.Shape shape)
        Creates a new instance.
        Parameters:
        shape - The shape this object represents.
      • PolygonData

        public PolygonData()
        Creates a new instance of PolygonData.
      • PolygonData

        public PolygonData​(java.util.List<java.awt.geom.Point2D.Double> points)
        Create a new instance of the PolylineData, set the points in the polyline.
        Parameters:
        points - See Above.
    • Method Detail

      • getText

        public java.lang.String getText()
        Returns the text of the shape.
        Returns:
        See above.
      • setText

        public void setText​(java.lang.String text)
        Sets the text of the shape.
        Parameters:
        text - See above.
      • getPoints

        public java.util.List<java.awt.geom.Point2D.Double> getPoints()
        Returns the points in the polygon.
        Returns:
        See above.
      • getMaskPoints

        public java.util.List<java.lang.Integer> getMaskPoints()
        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 polygon.
        Parameters:
        points - The points in the polygon.