@Override
    public void addQuad(
            final float x,
            final float y,
            final float width,
            final float height,
            final Color color1,
            final Color color2,
            final Color color3,
            final Color color4,
            final float textureX,
            final float textureY,
            final float textureWidth,
            final float textureHeight,
            final int textureId) {
        if (!currentBatch.canAddQuad()) {
            beginBatch(currentBatch.getBlendMode(), textureId);
        }
        currentBatch.addQuadInternal(x, y, width, height, color1, color2, color3, color4, textureX, textureY, textureWidth, textureHeight);
    }
Nifty GUI BatchRenderBackend Implementation for jMonkeyEngine.

@author void
jme3-niftygui/src/main/java/com/jme3/niftygui/JmeBatchRenderBackend.java