/** * Sets the y-orientation of this ImageComponent object to * y-up or y-down. * * @param yUp a flag that indicates the y-orientation of this image * component. If yUp is set to true, the origin of the image is * the lower left; otherwise, the origin of the image is the upper * left. * * @exception RestrictedAccessException if the method is called * when this object is part of live or compiled scene graph. * * @exception IllegalStateException if the image class of this object * is ImageClass.NIO_IMAGE_BUFFER. * * @deprecated as of Java 3D 1.5, the yUp flag should only be set at object * construction time. * * @since Java 3D 1.2 */ public void setYUp(boolean yUp) { checkForLiveOrCompiled(); // check for illegal image class if (((ImageComponentRetained)this.retained).getImageClass() == ImageClass.NIO_IMAGE_BUFFER) { throw new IllegalStateException("ImageComponent4"); } ((ImageComponentRetained)this.retained).setYUp(yUp); }