class StreamingRenderer implements GTRenderer {

    Interpolation getRenderingInterpolation(Layer currLayer) {
        if (currLayer != null && currLayer.getUserData().containsKey(BYLAYER_INTERPOLATION)) {
            return (Interpolation) currLayer.getUserData().get(BYLAYER_INTERPOLATION);
        }
        if(java2dHints == null) {
            return Interpolation.getInstance(Interpolation.INTERP_NEAREST);
        }
        Object interpolationHint = java2dHints.get(RenderingHints.KEY_INTERPOLATION);
        if (interpolationHint == null
                || interpolationHint == RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR) {
            return Interpolation.getInstance(Interpolation.INTERP_NEAREST);
        } else if (interpolationHint == RenderingHints.VALUE_INTERPOLATION_BILINEAR) {
            return Interpolation.getInstance(Interpolation.INTERP_BILINEAR);
        } else {
            return Interpolation.getInstance(Interpolation.INTERP_BICUBIC);
        }
    }

    public  StreamingRenderer();

}