int m = RenderingDefConstants.convertType(rndDef.getModel()); renderingStrategy = RenderingStrategy.makeNew(m);
renderingStrategy = RenderingStrategy.makeNew(rndDef.getModel());
    public Renderer(Pixels pixelsObj, RenderingDef renderingDefObj,                    PixelBuffer bufferObj)    {         metadata = pixelsObj;        rndDef = renderingDefObj;        buffer = bufferObj;                if (metadata == null)        	throw new NullPointerException("Expecting not null metadata");        else if (rndDef == null)        	throw new NullPointerException("Expecting not null rndDef");        else if (buffer == null)        	throw new NullPointerException("Expecting not null buffer");                        //Create and configure the quantum strategies.        QuantumDef qd = rndDef.getQuantization();        quantumManager = new QuantumManager(metadata);        ChannelBinding[] cBindings= getChannelBindings();        quantumManager.initStrategies(qd, metadata.getPixelsType(), cBindings);                //Compute the location stats.        computeLocationStats(getDefaultPlaneDef());                //Create and configure the codomain chain.        codomainChain = new CodomainChain(qd.getCdStart().intValue(),                                            qd.getCdEnd().intValue(),                                          rndDef.getSpatialDomainEnhancement());                        //Create an appropriate rendering strategy.        int m = RenderingDefConstants.convertType(rndDef.getModel());        renderingStrategy = RenderingStrategy.makeNew(m);    }