@Override
    public WrapMode getWrap(WrapAxis axis) {
        switch (axis) {
            case S:
                return wrapS;
            case T:
                return wrapT;
            default:
                throw new IllegalArgumentException("invalid WrapAxis: " + axis);
        }
    }
<code>getWrap</code> returns the wrap mode for a given coordinate axis
on this texture.

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