omero.model
Interface SmartShape.PointCallback

Enclosing interface:
SmartShape

public static interface SmartShape.PointCallback

Callback interface passed every point which is within the area of this shape. This prevents having all the points in memory at the same time. An implementation that would like to collect all the points can do something like:

 final List<Integer> xs = ...;
 final List<Integer> ys = ...;
 PointCallback cb = new PointCallback(){
   void handle(int x, int y) {
     xs.add(x);
     ys.add(y);
   };
 };
 


Method Summary
 void handle(int x, int y)
           
 

Method Detail

handle

void handle(int x,
            int y)


OmeroJava Api

Version: Beta-4.2.0-r7571-b29

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