javax.media.j3d
Class PointAttributesRetained

java.lang.Object
  extended by javax.media.j3d.IndexedObject
      extended by javax.media.j3d.SceneGraphObjectRetained
          extended by javax.media.j3d.NodeComponentRetained
              extended by javax.media.j3d.PointAttributesRetained
All Implemented Interfaces:
java.lang.Cloneable

 class PointAttributesRetained
extends NodeComponentRetained

The PointAttributesRetained object defines all rendering state that can be set as a component object of a Shape3D node.


Field Summary
(package private) static int POINT_AA_CHANGED
           
(package private) static int POINT_SIZE_CHANGED
           
(package private)  boolean pointAntialiasing
           
(package private)  float pointSize
           
 
Fields inherited from class javax.media.j3d.NodeComponentRetained
changedFrequent, compChanged, duplicateOnCloneTree, mirror, refCnt, refCount, users
 
Fields inherited from class javax.media.j3d.SceneGraphObjectRetained
DONT_MERGE, inBackgroundGroup, inSetLive, MERGE, MERGE_DONE, mergeFlag, onUpdateList, source
 
Fields inherited from class javax.media.j3d.IndexedObject
listIdx
 
Constructor Summary
PointAttributesRetained()
           
 
Method Summary
(package private)  void createMirrorObject()
          Creates and initializes a mirror object, point the mirror object to the retained object if the object is not editable
(package private)  boolean equivalent(PointAttributesRetained pr)
           
(package private)  boolean getPointAntialiasingEnable()
          Retrieves the state of the point antialiasing flag.
(package private)  float getPointSize()
          Gets the point size for this appearance component object.
(package private)  void handleFrequencyChange(int bit)
           
(package private)  void initMirrorObject()
          Initializes a mirror object, point the mirror object to the retained object if the object is not editable
(package private)  void initPointAntialiasingEnable(boolean state)
          Enables or disables point antialiasing for this appearance component object.
(package private)  void initPointSize(float pointSize)
          Sets the point size for this appearance component object.
(package private)  void sendMessage(int attrMask, java.lang.Object attr)
           
protected  void set(PointAttributesRetained pr)
           
(package private)  void setPointAntialiasingEnable(boolean state)
          Enables or disables point antialiasing for this appearance component object and sends a message notifying the interested structures of the change.
(package private)  void setPointSize(float pointSize)
          Sets the point size for this appearance component object and sends a message notifying the interested structures of the change.
(package private)  void updateMirrorObject(int component, java.lang.Object value)
          Update the "component" field of the mirror object with the given "value"
(package private)  void updateNative(Context ctx)
          Update the native context
 
Methods inherited from class javax.media.j3d.NodeComponentRetained
addAMirrorUser, addUser, clearLive, clone, copyMirrorUsers, decRefCnt, doSetLive, getDuplicateOnCloneTree, getInImmCtx, incRefCnt, notifyUsers, removeAMirrorUser, removeMirrorUsers, removeUser, set, setDuplicateOnCloneTree, setFrequencyChangeMask, setInImmCtx, setLive
 
Methods inherited from class javax.media.j3d.SceneGraphObjectRetained
clearLive, clearLive, compile, doSetLive, doSetLive, getSource, getVirtualUniverse, isInSetLive, isStatic, markAsLive, merge, mergeTransform, setCompiled, setLive, setLive, setSource, traverse
 
Methods inherited from class javax.media.j3d.IndexedObject
getIdxUsed, incIdxUsed
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POINT_SIZE_CHANGED

static final int POINT_SIZE_CHANGED
See Also:
Constant Field Values

POINT_AA_CHANGED

static final int POINT_AA_CHANGED
See Also:
Constant Field Values

pointSize

float pointSize

pointAntialiasing

boolean pointAntialiasing
Constructor Detail

PointAttributesRetained

PointAttributesRetained()
Method Detail

initPointSize

final void initPointSize(float pointSize)
Sets the point size for this appearance component object.

Parameters:
pointSize - the size, in pixels, of point primitives

setPointSize

final void setPointSize(float pointSize)
Sets the point size for this appearance component object and sends a message notifying the interested structures of the change.

Parameters:
pointSize - the size, in pixels, of point primitives

getPointSize

final float getPointSize()
Gets the point size for this appearance component object.

Returns:
the size, in pixels, of point primitives

initPointAntialiasingEnable

final void initPointAntialiasingEnable(boolean state)
Enables or disables point antialiasing for this appearance component object.

Parameters:
state - true or false to enable or disable point antialiasing

setPointAntialiasingEnable

final void setPointAntialiasingEnable(boolean state)
Enables or disables point antialiasing for this appearance component object and sends a message notifying the interested structures of the change.

Parameters:
state - true or false to enable or disable point antialiasing

getPointAntialiasingEnable

final boolean getPointAntialiasingEnable()
Retrieves the state of the point antialiasing flag.

Returns:
true if point antialiasing is enabled, false if point antialiasing is disabled

createMirrorObject

void createMirrorObject()
Creates and initializes a mirror object, point the mirror object to the retained object if the object is not editable

Overrides:
createMirrorObject in class NodeComponentRetained

updateNative

void updateNative(Context ctx)
Update the native context


initMirrorObject

void initMirrorObject()
Initializes a mirror object, point the mirror object to the retained object if the object is not editable

Overrides:
initMirrorObject in class NodeComponentRetained

updateMirrorObject

void updateMirrorObject(int component,
                        java.lang.Object value)
Update the "component" field of the mirror object with the given "value"

Overrides:
updateMirrorObject in class NodeComponentRetained

equivalent

boolean equivalent(PointAttributesRetained pr)

set

protected void set(PointAttributesRetained pr)

sendMessage

final void sendMessage(int attrMask,
                       java.lang.Object attr)

handleFrequencyChange

void handleFrequencyChange(int bit)
Overrides:
handleFrequencyChange in class SceneGraphObjectRetained


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