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.
-
PointAttributes()
- Constructs PointAttributes object with default values.
-
PointAttributes(float, boolean)
- Constructs PointAttributes object with specified values.
-
cloneNodeComponent()
- Creates a new PointAttributes object.
-
duplicateNodeComponent(NodeComponent)
- Copies the information found in
originalNode
to
the current node.
-
getPointAntialiasingEnable()
- Retrieves the state of the point antialiasing flag.
-
getPointSize()
- Gets the point size for this appearance component object.
-
setPointAntialiasingEnable(boolean)
- Enables or disables point antialiasing
for this appearance component object.
-
setPointSize(float)
- Sets the point size for this appearance component object.
PointAttributes
public PointAttributes()
- Constructs PointAttributes object with default values.
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
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
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
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
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
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
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