Package omero.gateway.model
Class PolygonData
- java.lang.Object
-
- omero.gateway.model.DataObject
-
- omero.gateway.model.ShapeData
-
- omero.gateway.model.PolygonData
-
public class PolygonData extends ShapeData
Represents an Polygon shape in the Euclidean space R2.- Since:
- 3.0-Beta4
-
-
Field Summary
-
Fields inherited from class omero.gateway.model.ShapeData
READONLY_FLAG, settings
-
-
Constructor Summary
Constructors Constructor Description PolygonData()
Creates a new instance of PolygonData.PolygonData(java.util.List<java.awt.geom.Point2D.Double> points)
Create a new instance of the PolylineData, set the points in the polyline.PolygonData(omero.model.Shape shape)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.Integer>
getMaskPoints()
Returns the points in the polygon.java.util.List<java.awt.geom.Point2D.Double>
getPoints()
Returns the points in the polygon.java.lang.String
getText()
Returns the text of the shape.void
setPoints(java.util.List<java.awt.geom.Point2D.Double> points)
Sets the points in the polygon.void
setText(java.lang.String text)
Sets the text of the shape.-
Methods inherited from class omero.gateway.model.ShapeData
fromPoints, getC, getROICoordinate, getShapeSettings, getT, getTransform, getZ, isClientObject, isReadOnly, parsePointsToIntegerList, parsePointsToPoint2DList, setC, setClientObject, setDirty, setReadOnly, setROICoordinate, setShapeSettings, setT, setTransform, setZ, toNumber, toPoints
-
Methods inherited from class omero.gateway.model.DataObject
asAnnotation, asChannel, asDataset, asExperimenter, asFolder, asGroup, asIAnnotated, asImage, asIObject, asPixels, asPlaneInfo, asPlate, asPojo, asPojos, asPojos, asProject, asScreen, asWell, asWellSample, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getDetails, getGroupId, getId, getOwner, getPermissions, getUpdated, getVersion, isDirty, isLoaded, nullDetails, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, setId, setValue, setVersion, timeOfEvent, toString
-
-
-
-
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.
-
-