@Override
    public void addImageToAtlas(final Image image, final int x, final int y, final int atlasTextureId) {
        ImageImpl imageImpl = (ImageImpl) image;
        imageImpl.modifyTexture(this, getTextureAtlas(atlasTextureId), x, y);
    }
Nifty GUI BatchRenderBackend Implementation for jMonkeyEngine.

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