wData = Helper.createPlane(planeDef, w, metadata, pixels);
wData = PlaneFactory.createPlane(planeDef, w, metadata, pixels);
    private RenderHSBWaveTask[] makeRndTasks(PlaneDef planeDef)    {        ArrayList tasks = new ArrayList();                //Get all objects we need to create the tasks.         Plane2D wData;        ChannelBinding[] cBindings =                 renderer.getChannelBindings();        CodomainChain cc = renderer.getCodomainChain();        Pixels metadata = renderer.getMetadata();        PixelBuffer pixels = renderer.getPixels();        QuantumManager qManager = renderer.getQuantumManager();        RenderingStats performanceStats = renderer.getStats();        RGBBuffer channelBuf;                //Create a task for each active wavelength.        for (int w = 0; w < cBindings.length; w++) {            if (cBindings[w].getActive().booleanValue()) {                //Allocate the RGB buffer for this wavelength.                performanceStats.startMalloc();                channelBuf = new RGBBuffer(sizeX1, sizeX2);                performanceStats.endMalloc();                                //Get the raw data.                performanceStats.startIO(w);                wData = Helper.createPlane(planeDef, w, metadata, pixels);                performanceStats.endIO(w);                                //Create a rendering task for this wavelength.                tasks.add(new RenderHSBWaveTask(channelBuf, wData,                                                 qManager.getStrategyFor(w),                                                 cc, cBindings[w].getColor(),                                                 sizeX1, sizeX2));            }        }                //Turn the list into an array an return it.        RenderHSBWaveTask[] t = new RenderHSBWaveTask[tasks.size()];        return (RenderHSBWaveTask[]) tasks.toArray(t);    }