|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.media.j3d.SceneGraphObject | +--javax.media.j3d.NodeComponent | +--javax.media.j3d.LineAttributes
The LineAttributes object defines all rendering state that can be set as a component object of a Shape3D node.
Field Summary | |
static int |
ALLOW_ANTIALIASING_READ
Specifies that this LineAttributes object allows reading its line antialiasing flag. |
static int |
ALLOW_ANTIALIASING_WRITE
Specifies that this LineAttributes object allows writing its line antialiasing flag. |
static int |
ALLOW_PATTERN_READ
Specifies that this LineAttributes object allows reading its line pattern information. |
static int |
ALLOW_PATTERN_WRITE
Specifies that this LineAttributes object allows writing its line pattern information. |
static int |
ALLOW_WIDTH_READ
Specifies that this LineAttributes object allows reading its line width information. |
static int |
ALLOW_WIDTH_WRITE
Specifies that this LineAttributes object allows writing its line width information. |
static int |
PATTERN_DASH
Draw a dashed line. |
static int |
PATTERN_DASH_DOT
Draw a dashed-dotted line. |
static int |
PATTERN_DOT
Draw a dotted line. |
static int |
PATTERN_SOLID
Draw a solid line with no pattern. |
Constructor Summary | |
LineAttributes()
Constructs a LineAttributes object with default parameters. |
|
LineAttributes(float lineWidth,
int linePattern,
boolean lineAntialiasing)
Constructs a LineAttributes object with specified values. |
Method Summary | |
NodeComponent |
cloneNodeComponent()
Creates a new LineAttributes object. |
void |
duplicateNodeComponent(NodeComponent originalNodeComponent)
Copies the information found in originalNodeComponent to
the current node. |
boolean |
getLineAntialiasingEnable()
Retrieves the state of the line antialiasing flag. |
int |
getLinePattern()
Gets the line pattern for this lineAttributes component object. |
float |
getLineWidth()
Gets the line width for this lineAttributes component object. |
void |
setLineAntialiasingEnable(boolean state)
Enables or disables line antialiasing for this lineAttributes component object. |
void |
setLinePattern(int linePattern)
Sets the line pattern for this lineAttributes component object. |
void |
setLineWidth(float lineWidth)
Sets the line width for this lineAttributes component object. |
Methods inherited from class javax.media.j3d.NodeComponent |
getDuplicateOnCloneTree,
setDuplicateOnCloneTree |
Methods inherited from class javax.media.j3d.SceneGraphObject |
clearCapability,
duplicateSceneGraphObject,
getCapability,
getUserData,
isCompiled,
isLive,
setCapability,
setUserData |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int ALLOW_WIDTH_READ
public static final int ALLOW_WIDTH_WRITE
public static final int ALLOW_PATTERN_READ
public static final int ALLOW_PATTERN_WRITE
public static final int ALLOW_ANTIALIASING_READ
public static final int ALLOW_ANTIALIASING_WRITE
public static final int PATTERN_SOLID
public static final int PATTERN_DASH
public static final int PATTERN_DOT
public static final int PATTERN_DASH_DOT
Constructor Detail |
public LineAttributes()
public LineAttributes(float lineWidth, int linePattern, boolean lineAntialiasing)
lineWidth
- the width of lines.linePattern
- the line pattern, one of PATTERN_SOLID,
PATTERN_DASH, PATTERN_DOT, or PATTERN_DASH_DOTlineAntialiasing
- flag to set line antialising ON or OFFMethod Detail |
public final void setLineWidth(float lineWidth)
lineWidth
- the width, in pixels, of line primitivespublic final float getLineWidth()
public final void setLinePattern(int linePattern)
linePattern
- the line pattern to be used, one of:
PATTERN_SOLID, PATTERN_DASH, PATTERN_DOT, or PATTERN_DASH_DOTpublic final int getLinePattern()
public final void setLineAntialiasingEnable(boolean state)
state
- true or false to enable or disable line antialiasingpublic final boolean getLineAntialiasingEnable()
public NodeComponent cloneNodeComponent()
duplicateNode
method.Node.duplicateNode(javax.media.j3d.Node, boolean)
,
Node.cloneTree()
,
NodeComponent.setDuplicateOnCloneTree(boolean)
public void duplicateNodeComponent(NodeComponent originalNodeComponent)
originalNodeComponent
to
the current node. This routine is called as part of the
cloneTree
operation.originalNodeComponent
- the node to duplicate.Node.cloneTree()
,
Node.cloneNode(boolean)
,
Node.duplicateNode(javax.media.j3d.Node, boolean)
,
NodeComponent.setDuplicateOnCloneTree(boolean)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |