|
ICY Version 1.0.1.0
|
*public class SwimmingPoolEmitterTutorial extends Plugin implements PluginImageAnalysis { @Override public void compute() { // Create my data, of any type I wish. I chose Point2D Point2D myData = new Point2D.Double( Math.random() , Math.random() ); // Put my object in a Swimming Object SwimmingObject swimmingObject = new SwimmingObject( myData ); // add the object in the swimming pool Icy.getMainInterface().getSwimmingPool().add( swimmingObject ); new AnnounceFrame("Swimming pool emitter: I Just put an object, use a swimming pool listener to watch result." ); // done ! } } *
This is a swimming pool emitter tutorial. Use it with SwimmingPoolListenerTutorial.
The swimming pool is a place where any plugin can access, listen, create, delete or transform objects. This is the ultimate flexibility to create communication between plugins.
This tutorial explain how to send an object in the swimming pool.
1.7.3