|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.j3d.IndexedObject
javax.media.j3d.SceneGraphObjectRetained
javax.media.j3d.NodeComponentRetained
javax.media.j3d.LineAttributesRetained
class LineAttributesRetained
The LineAttributesRetained object defines all rendering state that can be set as a component object of a Shape3D node.
Field Summary | |
---|---|
(package private) static int |
LINE_AA_CHANGED
|
(package private) static int |
LINE_PATTERN_CHANGED
|
(package private) static int |
LINE_PATTERN_MASK_CHANGED
|
(package private) static int |
LINE_PATTERN_SCALEFACTOR_CHANGED
|
(package private) static int |
LINE_WIDTH_CHANGED
|
(package private) boolean |
lineAntialiasing
|
(package private) int |
linePattern
|
(package private) int |
linePatternMask
|
(package private) int |
linePatternScaleFactor
|
(package private) float |
lineWidth
|
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 | |
---|---|
LineAttributesRetained()
|
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(LineAttributesRetained lr)
|
(package private) boolean |
getLineAntialiasingEnable()
Retrieves the state of the line antialiasing flag. |
(package private) int |
getLinePattern()
Gets the line pattern for this lineAttributes component object. |
(package private) float |
getLineWidth()
Gets the line width for this lineAttributes component object. |
(package private) int |
getPatternMask()
Retrieves the pattern mask for this LineAttributes component object. |
(package private) int |
getPatternScaleFactor()
Retrieves the pattern scale factor for this LineAttributes component object. |
(package private) void |
handleFrequencyChange(int bit)
|
(package private) void |
initLineAntialiasingEnable(boolean state)
Enables or disables line antialiasing for this lineAttributes component object and sends a message notifying the interested structures of the change. |
(package private) void |
initLinePattern(int linePattern)
Sets the line pattern for this lineAttributes component object |
(package private) void |
initLineWidth(float lineWidth)
Sets the line width for this lineAttributes component object. |
(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 |
initPatternMask(int mask)
Sets the pattern mask for this LineAttributes component object. |
(package private) void |
initPatternScaleFactor(int scaleFactor)
Sets the pattern mask scale factor for this LineAttributes component object. |
(package private) void |
sendMessage(int attrMask,
java.lang.Object attr)
|
protected void |
set(LineAttributesRetained lr)
|
(package private) void |
setLineAntialiasingEnable(boolean state)
Enables or disables line antialiasing for this lineAttributes component object and sends a message notifying the interested structures of the change. |
(package private) void |
setLinePattern(int linePattern)
Sets the line pattern for this lineAttributes component object and sends a message notifying the interested structures of the change. |
(package private) void |
setLineWidth(float lineWidth)
Sets the line width for this lineAttributes component object and sends a message notifying the interested structures of the change. |
(package private) void |
setPatternMask(int mask)
Sets the pattern mask for this LineAttributes component object and sends a message notifying the interested structures of change. |
(package private) void |
setPatternScaleFactor(int scaleFactor)
Sets the pattern mask scale factor for this LineAttributes component object and sends a message notifying the interested structures of 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)
This method updates 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 |
---|
static final int LINE_WIDTH_CHANGED
static final int LINE_PATTERN_CHANGED
static final int LINE_AA_CHANGED
static final int LINE_PATTERN_MASK_CHANGED
static final int LINE_PATTERN_SCALEFACTOR_CHANGED
float lineWidth
int linePattern
boolean lineAntialiasing
int linePatternMask
int linePatternScaleFactor
Constructor Detail |
---|
LineAttributesRetained()
Method Detail |
---|
final void initLineWidth(float lineWidth)
lineWidth
- the width, in pixels, of line primitivesfinal void setLineWidth(float lineWidth)
lineWidth
- the width, in pixels, of line primitivesfinal float getLineWidth()
final void initLinePattern(int linePattern)
linePattern
- the line pattern to be used, one of:
PATTERN_SOLID, PATTERN_DASH, PATTERN_DOT, or PATTERN_DASH_DOTfinal void setLinePattern(int linePattern)
linePattern
- the line pattern to be used, one of:
PATTERN_SOLID, PATTERN_DASH, PATTERN_DOT, or PATTERN_DASH_DOTfinal int getLinePattern()
final void initLineAntialiasingEnable(boolean state)
state
- true or false to enable or disable line antialiasingfinal void setLineAntialiasingEnable(boolean state)
state
- true or false to enable or disable line antialiasingfinal boolean getLineAntialiasingEnable()
final void initPatternMask(int mask)
mask
- the line pattern mask to be used.final void setPatternMask(int mask)
mask
- the line pattern mask to be used.final int getPatternMask()
final void initPatternScaleFactor(int scaleFactor)
scaleFactor
- the scale factor of mask, clamp to [1, 15]final void setPatternScaleFactor(int scaleFactor)
scaleFactor
- the scale factor of mask, clamp to [1, 15]final int getPatternScaleFactor()
void createMirrorObject()
createMirrorObject
in class NodeComponentRetained
void updateNative(Context ctx)
void initMirrorObject()
initMirrorObject
in class NodeComponentRetained
void updateMirrorObject(int component, java.lang.Object value)
updateMirrorObject
in class NodeComponentRetained
boolean equivalent(LineAttributesRetained lr)
protected void set(LineAttributesRetained lr)
final void sendMessage(int attrMask, java.lang.Object attr)
void handleFrequencyChange(int bit)
handleFrequencyChange
in class SceneGraphObjectRetained
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |