All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javax.media.j3d.PointAttributes

java.lang.Object
   |
   +----javax.media.j3d.SceneGraphObject
           |
           +----javax.media.j3d.NodeComponent
                   |
                   +----javax.media.j3d.PointAttributes

public class PointAttributes
extends NodeComponent
The PointAttributes object defines all rendering state that can be set as a component object of a Shape3D node.


Constructor Index

 o PointAttributes()
Constructs PointAttributes object with default values.
 o PointAttributes(float, boolean)
Constructs PointAttributes object with specified values.

Method Index

 o cloneNodeComponent()
Creates a new PointAttributes object.
 o duplicateNodeComponent(NodeComponent)
Copies the information found in originalNode to the current node.
 o getPointAntialiasingEnable()
Retrieves the state of the point antialiasing flag.
 o getPointSize()
Gets the point size for this appearance component object.
 o setPointAntialiasingEnable(boolean)
Enables or disables point antialiasing for this appearance component object.
 o setPointSize(float)
Sets the point size for this appearance component object.

Constructors

 o PointAttributes
 public PointAttributes()
Constructs PointAttributes object with default values.

 o PointAttributes
 public PointAttributes(float pointSize,
                        boolean pointAntialiasing)
Constructs PointAttributes object with specified values.

Parameters:
pointSize - the size of points.
pointAntialiasing - flag to set point antialising ON or OFF

Methods

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

Parameters:
pointSize - the size, in pixels, of point primitives
Throws: RestrictedAccessException
if the method is called when this object is part of live or compiled scene graph
 o getPointSize
 public final float getPointSize()
Gets the point size for this appearance component object.

Returns:
the size, in pixels, of point primitives
Throws: RestrictedAccessException
if the method is called when this object is part of live or compiled scene graph
 o setPointAntialiasingEnable
 public final void setPointAntialiasingEnable(boolean state)
Enables or disables point antialiasing for this appearance component object.

Parameters:
state - true or false to enable or disable point antialiasing
Throws: RestrictedAccessException
if the method is called when this object is part of live or compiled scene graph
 o getPointAntialiasingEnable
 public final boolean getPointAntialiasingEnable()
Retrieves the state of the point antialiasing flag.

Returns:
true if point antialiasing is enabled, false if point antialiasing is disabled
Throws: RestrictedAccessException
if the method is called when this object is part of live or compiled scene graph
 o cloneNodeComponent
 public NodeComponent cloneNodeComponent()
Creates a new PointAttributes object. Called from a Leaf node's duplicateNode method.

Returns:
a duplicate of the PointAttributes object.
Overrides:
cloneNodeComponent in class NodeComponent
See Also:
duplicateNode, cloneTree, setDuplicateOnCloneTree
 o duplicateNodeComponent
 public void duplicateNodeComponent(NodeComponent originalNode)
Copies the information found in originalNode to the current node. This routine is called as part of the cloneTree operation.

Parameters:
originalNode - the node to duplicate.
Overrides:
duplicateNodeComponent in class NodeComponent
See Also:
cloneTree, duplicateNode, setDuplicateOnCloneTree

All Packages  Class Hierarchy  This Package  Previous  Next  Index