pojos
Class PolygonData

java.lang.Object
  extended by pojos.DataObject
      extended by pojos.ShapeData
          extended by pojos.PolygonData

public class PolygonData
extends ShapeData

Represents an Polygon shape in the Euclidean space R2.

Since:
3.0-Beta4
Version:
3.0 (Internal version: $Revision: $Date: $)
Author:
Jean-Marie Burel      j.burel@dundee.ac.uk, Donald MacDonald      donald@lifesci.dundee.ac.uk

Field Summary
 
Fields inherited from class pojos.ShapeData
READONLY_FLAG, settings
 
Constructor Summary
PolygonData()
          Creates a new instance of PolygonData.
PolygonData(List<Point2D.Double> points, List<Point2D.Double> points1, List<Point2D.Double> points2, List<Integer> maskList)
          Creates a new instance of the PolygonData, set the points in the polygon.
PolygonData(omero.model.Shape shape)
          Creates a new instance.
 
Method Summary
 List<Integer> getMaskPoints()
          Returns the points in the polygon.
 List<Point2D.Double> getPoints()
          Returns the points in the polygon.
 List<Point2D.Double> getPoints1()
          Returns the points in the polygon.
 List<Point2D.Double> getPoints2()
          Returns the points in the polygon.
 String getText()
          Returns the text of the shape.
 void setPoints(List<Point2D.Double> points, List<Point2D.Double> points1, List<Point2D.Double> points2, List<Integer> maskList)
          Sets the points in the polygon.
 void setText(String text)
          Sets the text of the shape.
 
Methods inherited from class pojos.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 pojos.DataObject
asAnnotation, asChannel, asDataset, asExperimenter, asGroup, asIAnnotated, asImage, asIObject, asPixels, asPlate, asPojo, asPojos, asPojos, asProject, asScreen, asWell, asWellSample, getCreated, getDetails, getId, getOwner, getPermissions, getUpdated, getVersion, isDirty, isLoaded, nullDetails, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, setId, setValue, setVersion, timeOfEvent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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(List<Point2D.Double> points,
                   List<Point2D.Double> points1,
                   List<Point2D.Double> points2,
                   List<Integer> maskList)
Creates a new instance of the PolygonData, set the points in the polygon.

Parameters:
points - The points in the polygon.
points1 - The points in the polygon.
points2 - The points in the polygon.
maskList - The points in the polygon.
Method Detail

getText

public String getText()
Returns the text of the shape.

Returns:
See above.

setText

public void setText(String text)
Sets the text of the shape.

Parameters:
text - See above.

getPoints

public List<Point2D.Double> getPoints()
Returns the points in the polygon.

Returns:
See above.

getPoints1

public List<Point2D.Double> getPoints1()
Returns the points in the polygon.

Returns:
See above.

getPoints2

public List<Point2D.Double> getPoints2()
Returns the points in the polygon.

Returns:
See above.

getMaskPoints

public List<Integer> getMaskPoints()
Returns the points in the polygon.

Returns:
See above.

setPoints

public void setPoints(List<Point2D.Double> points,
                      List<Point2D.Double> points1,
                      List<Point2D.Double> points2,
                      List<Integer> maskList)
Sets the points in the polygon.

Parameters:
points - The points in the polygon.
points1 - The points in the polygon.
points2 - The points in the polygon.
maskList - The points in the polygon.


OmeroJava Api

Version: Beta4.2.1-r8614-Beta4.2-b41

Copyright © 2009 The University of Dundee. All Rights Reserved.