omero.model
Interface SmartShape

All Known Implementing Classes:
SmartEllipseI, SmartLineI, SmartMaskI, SmartPathI, SmartPointI, SmartPolygonI, SmartPolylineI, SmartRectI, SmartTextI

public interface SmartShape

Orthogonal interface hierarchy of types for working with the Shape hierarchy.

Since:
Beta4.1

Nested Class Summary
static interface SmartShape.PointCallback
          Callback interface passed every point which is within the area of this shape.
static class SmartShape.Util
          Utility class used as a mixin by all of the SmartShape implementations.
 
Method Summary
 void areaPoints(SmartShape.PointCallback action)
          Calls the SmartShape.PointCallback with all of the x/y coordinates which are within the shape.
 Shape asAwtShape()
          Converst the current SmartShape to a Shape.
 List<omero.model.Point> asPoints()
          Provides some, possibly lossy, bounding polygon of this SmartShape via points.
 void randomize(Random random)
          Initializes this shape with completely random data.
 

Method Detail

areaPoints

void areaPoints(SmartShape.PointCallback action)
Calls the SmartShape.PointCallback with all of the x/y coordinates which are within the shape.


asAwtShape

Shape asAwtShape()
Converst the current SmartShape to a Shape. This is useful for determining paths and included points.

Returns:

asPoints

List<omero.model.Point> asPoints()
Provides some, possibly lossy, bounding polygon of this SmartShape via points.

Returns:

randomize

void randomize(Random random)
Initializes this shape with completely random data. This is useful for

Parameters:
random -


OmeroJava Api

Version: Beta-4.2.0-r7571-b29

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