@Override
    public void setWrap(WrapMode mode) {
        if (mode == null) {
            throw new IllegalArgumentException("mode can not be null.");
        }
        this.wrapS = mode;
        this.wrapT = mode;
        this.wrapR = mode;
    }
<code>setWrap</code> sets the wrap mode of this texture for all axis.

@param mode
           the wrap mode for the given axis of the texture.
@throws IllegalArgumentException
            if mode is null
jme3-core/src/main/java/com/jme3/texture/TextureCubeMap.java