javax.media.j3d
Class ShaderAttributeObjectRetained.AttrWrapper

java.lang.Object
  extended by javax.media.j3d.ShaderAttributeObjectRetained.AttrWrapper
Direct Known Subclasses:
ShaderAttributeArrayRetained.ArrayWrapper, ShaderAttributeValueRetained.ValueWrapper
Enclosing class:
ShaderAttributeObjectRetained

abstract static class ShaderAttributeObjectRetained.AttrWrapper
extends java.lang.Object

Base wrapper class for subclasses that are used to store a copy of the user-specified shader attribute value. There is a wrapper class for each supported base class in ShaderAttributeValue and ShaderAttributeArray. The value is stored in a Java primitive array.


Constructor Summary
ShaderAttributeObjectRetained.AttrWrapper()
           
 
Method Summary
(package private) abstract  java.lang.Object get()
          Returns a copy of the wrapped object
(package private) abstract  java.lang.Object getRef()
          Returns a reference to the internal primitive array used to wrap the object; note that the caller of this method must treat the data as read-only.
(package private) abstract  void set(java.lang.Object value)
          Stores a copy of the specified object in the wrapper object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShaderAttributeObjectRetained.AttrWrapper

ShaderAttributeObjectRetained.AttrWrapper()
Method Detail

set

abstract void set(java.lang.Object value)
Stores a copy of the specified object in the wrapper object


get

abstract java.lang.Object get()
Returns a copy of the wrapped object


getRef

abstract java.lang.Object getRef()
Returns a reference to the internal primitive array used to wrap the object; note that the caller of this method must treat the data as read-only. It is intended only as a means to pass data down to native methods.



Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.