Java Doc for MaterialRetained.java in  » 6.0-JDK-Modules » java-3d » javax » media » j3d » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » java 3d » javax.media.j3d 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.media.j3d.IndexedObject
      javax.media.j3d.SceneGraphObjectRetained
         javax.media.j3d.NodeComponentRetained
            javax.media.j3d.MaterialRetained

MaterialRetained
class MaterialRetained extends NodeComponentRetained (Code)
The MaterialRetained object defines the appearance of an object under illumination.


Field Summary
final static  intAMBIENT_COLOR_CHANGED
    
final static  intCOLORTARGET_CHANGED
    
final static  intDIFFUSE_COLOR_CHANGED
    
final static  intEMISSIVE_COLOR_CHANGED
    
final static  intENABLE_CHANGED
    
final static  intSHININESS_CHANGED
    
final static  intSPECULAR_COLOR_CHANGED
    
 Color3fambientColor
    
 intcolorTarget
    
 Color3fdiffuseColor
    
 Color3femissiveColor
    
 booleanlightingEnable
    
 floatshininess
    
 Color3fspecularColor
    


Method Summary
protected  Objectclone()
    
 voidcreateMaterial(Color3f aColor, Color3f eColor, Color3f dColor, Color3f sColor, float shine)
     Constructs and initializes a new material object using the specified parameters.
synchronized  voidcreateMirrorObject()
    
 booleanequivalent(MaterialRetained m)
    
final  voidgetAmbientColor(Color3f color)
     Retrieves this material's ambient color.
final  intgetColorTarget()
    
final  voidgetDiffuseColor(Color3f color)
     Retrieves this material's diffuse color.
final  voidgetEmissiveColor(Color3f color)
     Retrieves this material's emissive color and stores it in the argument provided.
 booleangetLightingEnable()
     Retrieves the state of the lighting enable flag.
final  floatgetShininess()
     Retrieves this material's shininess.
final  voidgetSpecularColor(Color3f color)
     Retrieves this material's specular color.
 voidhandleFrequencyChange(int bit)
    
final  voidinitAmbientColor(Color3f color)
     Initializes this material's ambient color This specifies how much ambient light is reflected by the surface.
final  voidinitAmbientColor(float r, float g, float b)
    
 voidinitColorTarget(int colorTarget)
    
final  voidinitDiffuseColor(Color3f color)
     Sets this material's diffuse color.
final  voidinitDiffuseColor(float r, float g, float b)
     Sets this material's diffuse color.
final  voidinitDiffuseColor(float r, float g, float b, float a)
     Sets this material's diffuse color plus alpha.
final  voidinitEmissiveColor(Color3f color)
     Sets this material's emissive color This is the color of light, if any, that the material emits.
final  voidinitEmissiveColor(float r, float g, float b)
     Sets this material's emissive color.
 voidinitLightingEnable(boolean state)
     Enables or disables lighting for this appearance component object.
synchronized  voidinitMirrorObject()
    
final  voidinitShininess(float shininess)
     Sets this material's shininess.
final  voidinitSpecularColor(Color3f color)
     Sets this material's specular color.
final  voidinitSpecularColor(float r, float g, float b)
     Sets this material's specular color.
final  voidsendMessage(int attrMask, Object attr)
    
protected  voidset(MaterialRetained mat)
    
final  voidsetAmbientColor(Color3f color)
     Sets this material's ambient color and sends a message notifying the interested structures of the change. This specifies how much ambient light is reflected by the surface.
final  voidsetAmbientColor(float r, float g, float b)
     Sets this material's ambient color and sends a message notifying the interested structures of the change.
final  voidsetColorTarget(int colorTarget)
    
final  voidsetDiffuseColor(Color3f color)
     Sets this material's diffuse color and sends a message notifying the interested structures of the change.
final  voidsetDiffuseColor(float r, float g, float b)
     Sets this material's diffuse color and sends a message notifying the interested structures of the change.
final  voidsetDiffuseColor(float r, float g, float b, float a)
     Sets this material's diffuse color plus alpha and sends a message notifying the interested structures of the change.
final  voidsetEmissiveColor(Color3f color)
     Sets this material's emissive color and sends a message notifying the interested structures of the change.
final  voidsetEmissiveColor(float r, float g, float b)
     Sets this material's emissive color and sends a message notifying the interested structures of the change.
 voidsetLightingEnable(boolean state)
     Enables or disables lighting for this appearance component object and sends a message notifying the interested structures of the change.
final  voidsetShininess(float shininess)
     Sets this material's shininess and sends a message notifying the interested structures of the change.
final  voidsetSpecularColor(Color3f color)
     Sets this material's specular color and sends a message notifying the interested structures of the change.
final  voidsetSpecularColor(float r, float g, float b)
     Sets this material's specular color and sends a message notifying the interested structures of the change.
synchronized  voidupdateMirrorObject(int component, Object value)
    
 voidupdateNative(Context ctx, float red, float green, float blue, float alpha, boolean enableLighting)
     Updates the native context.

Field Detail
AMBIENT_COLOR_CHANGED
final static int AMBIENT_COLOR_CHANGED(Code)



COLORTARGET_CHANGED
final static int COLORTARGET_CHANGED(Code)



DIFFUSE_COLOR_CHANGED
final static int DIFFUSE_COLOR_CHANGED(Code)



EMISSIVE_COLOR_CHANGED
final static int EMISSIVE_COLOR_CHANGED(Code)



ENABLE_CHANGED
final static int ENABLE_CHANGED(Code)



SHININESS_CHANGED
final static int SHININESS_CHANGED(Code)



SPECULAR_COLOR_CHANGED
final static int SPECULAR_COLOR_CHANGED(Code)



ambientColor
Color3f ambientColor(Code)



colorTarget
int colorTarget(Code)



diffuseColor
Color3f diffuseColor(Code)



emissiveColor
Color3f emissiveColor(Code)



lightingEnable
boolean lightingEnable(Code)



shininess
float shininess(Code)



specularColor
Color3f specularColor(Code)





Method Detail
clone
protected Object clone()(Code)



createMaterial
void createMaterial(Color3f aColor, Color3f eColor, Color3f dColor, Color3f sColor, float shine)(Code)
Constructs and initializes a new material object using the specified parameters.
Parameters:
  ambientColor - the material's ambient color
Parameters:
  emissiveColor - the material's emissive color
Parameters:
  diffuseColor - the material's diffuse color when illuminated by alight
Parameters:
  specularColor - the material's specular color when illuminatedto generate a highlight
Parameters:
  shininess - the material's shininess in therange [1.0, 128.0] with 1.0 being not shiny and 128.0 being very shiny



createMirrorObject
synchronized void createMirrorObject()(Code)



equivalent
boolean equivalent(MaterialRetained m)(Code)



getAmbientColor
final void getAmbientColor(Color3f color)(Code)
Retrieves this material's ambient color. the material's ambient color



getColorTarget
final int getColorTarget()(Code)



getDiffuseColor
final void getDiffuseColor(Color3f color)(Code)
Retrieves this material's diffuse color.
Parameters:
  color - the vector that will receive this material's diffuse color



getEmissiveColor
final void getEmissiveColor(Color3f color)(Code)
Retrieves this material's emissive color and stores it in the argument provided.
Parameters:
  color - the vector that will receive this material's emissive color



getLightingEnable
boolean getLightingEnable()(Code)
Retrieves the state of the lighting enable flag. true if lighting is enabled, false if lighting is disabled



getShininess
final float getShininess()(Code)
Retrieves this material's shininess. the material's shininess



getSpecularColor
final void getSpecularColor(Color3f color)(Code)
Retrieves this material's specular color.
Parameters:
  color - the vector that will receive this material's specular color



handleFrequencyChange
void handleFrequencyChange(int bit)(Code)



initAmbientColor
final void initAmbientColor(Color3f color)(Code)
Initializes this material's ambient color This specifies how much ambient light is reflected by the surface. The ambient light color is the product of this color and the material diffuseColor.
Parameters:
  color - the material's ambient color



initAmbientColor
final void initAmbientColor(float r, float g, float b)(Code)
Sets this material's ambient color
Parameters:
  r - the new ambient color's red component
Parameters:
  g - the new ambient color's green component
Parameters:
  b - the new ambient color's blue component



initColorTarget
void initColorTarget(int colorTarget)(Code)



initDiffuseColor
final void initDiffuseColor(Color3f color)(Code)
Sets this material's diffuse color. This is the color of the material when illuminated by a light source.
Parameters:
  color - the new diffuse color



initDiffuseColor
final void initDiffuseColor(float r, float g, float b)(Code)
Sets this material's diffuse color.
Parameters:
  r - the new diffuse color's red component
Parameters:
  g - the new diffuse color's green component
Parameters:
  b - the new diffuse color's blue component



initDiffuseColor
final void initDiffuseColor(float r, float g, float b, float a)(Code)
Sets this material's diffuse color plus alpha. This is the color of the material when illuminated by a light source.
Parameters:
  r - the new diffuse color's red component
Parameters:
  g - the new diffuse color's green component
Parameters:
  b - the new diffuse color's blue component
Parameters:
  a - the alpha component used to set transparency



initEmissiveColor
final void initEmissiveColor(Color3f color)(Code)
Sets this material's emissive color This is the color of light, if any, that the material emits.
Parameters:
  color - the new emissive color



initEmissiveColor
final void initEmissiveColor(float r, float g, float b)(Code)
Sets this material's emissive color. This is the color of light, if any, that the material emits.
Parameters:
  r - the new emissive color's red component
Parameters:
  g - the new emissive color's green component
Parameters:
  b - the new emissive color's blue component



initLightingEnable
void initLightingEnable(boolean state)(Code)
Enables or disables lighting for this appearance component object.
Parameters:
  state - true or false to enable or disable lighting



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



initShininess
final void initShininess(float shininess)(Code)
Sets this material's shininess. This specifies a material specular exponent, or shininess. It takes a floating point number in the range [1.0, 128.0] with 1.0 being not shiny and 128.0 being very shiny.
Parameters:
  shininess - the material's shininess



initSpecularColor
final void initSpecularColor(Color3f color)(Code)
Sets this material's specular color. This is the specular highlight color of the material.
Parameters:
  color - the new specular color



initSpecularColor
final void initSpecularColor(float r, float g, float b)(Code)
Sets this material's specular color. This is the specular highlight color of the material.
Parameters:
  r - the new specular color's red component
Parameters:
  g - the new specular color's green component
Parameters:
  b - the new specular color's blue component



sendMessage
final void sendMessage(int attrMask, Object attr)(Code)



set
protected void set(MaterialRetained mat)(Code)



setAmbientColor
final void setAmbientColor(Color3f color)(Code)
Sets this material's ambient color and sends a message notifying the interested structures of the change. This specifies how much ambient light is reflected by the surface. The ambient light color is the product of this color and the material diffuseColor.
Parameters:
  color - the material's ambient color



setAmbientColor
final void setAmbientColor(float r, float g, float b)(Code)
Sets this material's ambient color and sends a message notifying the interested structures of the change.
Parameters:
  r - the new ambient color's red component
Parameters:
  g - the new ambient color's green component
Parameters:
  b - the new ambient color's blue component



setColorTarget
final void setColorTarget(int colorTarget)(Code)



setDiffuseColor
final void setDiffuseColor(Color3f color)(Code)
Sets this material's diffuse color and sends a message notifying the interested structures of the change. This is the color of the material when illuminated by a light source.
Parameters:
  color - the new diffuse color



setDiffuseColor
final void setDiffuseColor(float r, float g, float b)(Code)
Sets this material's diffuse color and sends a message notifying the interested structures of the change.
Parameters:
  r - the new diffuse color's red component
Parameters:
  g - the new diffuse color's green component
Parameters:
  b - the new diffuse color's blue component



setDiffuseColor
final void setDiffuseColor(float r, float g, float b, float a)(Code)
Sets this material's diffuse color plus alpha and sends a message notifying the interested structures of the change. This is the color of the material when illuminated by a light source.
Parameters:
  r - the new diffuse color's red component
Parameters:
  g - the new diffuse color's green component
Parameters:
  b - the new diffuse color's blue component
Parameters:
  a - the alpha component used to set transparency



setEmissiveColor
final void setEmissiveColor(Color3f color)(Code)
Sets this material's emissive color and sends a message notifying the interested structures of the change. This is the color of light, if any, that the material emits.
Parameters:
  color - the new emissive color



setEmissiveColor
final void setEmissiveColor(float r, float g, float b)(Code)
Sets this material's emissive color and sends a message notifying the interested structures of the change. This is the color of light, if any, that the material emits.
Parameters:
  r - the new emissive color's red component
Parameters:
  g - the new emissive color's green component
Parameters:
  b - the new emissive color's blue component



setLightingEnable
void setLightingEnable(boolean state)(Code)
Enables or disables lighting 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 lighting



setShininess
final void setShininess(float shininess)(Code)
Sets this material's shininess and sends a message notifying the interested structures of the change. This specifies a material specular exponent, or shininess. It takes a floating point number in the range [1.0, 128.0] with 1.0 being not shiny and 128.0 being very shiny.
Parameters:
  shininess - the material's shininess



setSpecularColor
final void setSpecularColor(Color3f color)(Code)
Sets this material's specular color and sends a message notifying the interested structures of the change. This is the specular highlight color of the material.
Parameters:
  color - the new specular color



setSpecularColor
final void setSpecularColor(float r, float g, float b)(Code)
Sets this material's specular color and sends a message notifying the interested structures of the change. This is the specular highlight color of the material.
Parameters:
  r - the new specular color's red component
Parameters:
  g - the new specular color's green component
Parameters:
  b - the new specular color's blue component



updateMirrorObject
synchronized void updateMirrorObject(int component, Object value)(Code)
Update the "component" field of the mirror object with the given "value"



updateNative
void updateNative(Context ctx, float red, float green, float blue, float alpha, boolean enableLighting)(Code)
Updates the native context.



Fields inherited from javax.media.j3d.NodeComponentRetained
int changedFrequent(Code)(Java Doc)
int compChanged(Code)(Java Doc)
boolean duplicateOnCloneTree(Code)(Java Doc)
NodeComponentRetained mirror(Code)(Java Doc)
int refCnt(Code)(Java Doc)
int refCount(Code)(Java Doc)
ArrayList users(Code)(Java Doc)

Methods inherited from javax.media.j3d.NodeComponentRetained
void addAMirrorUser(Shape3DRetained ms)(Code)(Java Doc)
synchronized void addUser(NodeRetained node)(Code)(Java Doc)
void clearLive(int refCount)(Code)(Java Doc)
protected Object clone()(Code)(Java Doc)
void copyMirrorUsers(NodeComponentRetained node)(Code)(Java Doc)
void createMirrorObject()(Code)(Java Doc)
synchronized void decRefCnt()(Code)(Java Doc)
void doSetLive(boolean inBackgroundGroup, int refCount)(Code)(Java Doc)
boolean getDuplicateOnCloneTree()(Code)(Java Doc)
boolean getInImmCtx()(Code)(Java Doc)
synchronized void incRefCnt()(Code)(Java Doc)
void initMirrorObject()(Code)(Java Doc)
synchronized void notifyUsers()(Code)(Java Doc)
void removeAMirrorUser(Shape3DRetained ms)(Code)(Java Doc)
void removeMirrorUsers(NodeComponentRetained node)(Code)(Java Doc)
synchronized void removeUser(NodeRetained node)(Code)(Java Doc)
protected void set(NodeComponentRetained nc)(Code)(Java Doc)
void setDuplicateOnCloneTree(boolean duplicate)(Code)(Java Doc)
void setFrequencyChangeMask(int bit, int mask)(Code)(Java Doc)
void setInImmCtx(boolean inCtx)(Code)(Java Doc)
void setLive(boolean inBackgroundGroup, int refCount)(Code)(Java Doc)
void updateMirrorObject(int component, Object obj)(Code)(Java Doc)

Fields inherited from javax.media.j3d.SceneGraphObjectRetained
final static int DONT_MERGE(Code)(Java Doc)
final static int MERGE(Code)(Java Doc)
final static int MERGE_DONE(Code)(Java Doc)
boolean inBackgroundGroup(Code)(Java Doc)
boolean inSetLive(Code)(Java Doc)
int mergeFlag(Code)(Java Doc)
boolean onUpdateList(Code)(Java Doc)
SceneGraphObject source(Code)(Java Doc)

Methods inherited from javax.media.j3d.SceneGraphObjectRetained
void clearLive(VirtualUniverse univ, int index, boolean sharedGroup, HashKey[] keys)(Code)(Java Doc)
void clearLive()(Code)(Java Doc)
protected Object clone()(Code)(Java Doc)
void compile(CompileState compState)(Code)(Java Doc)
void doSetLive(boolean inBackgroundGroup)(Code)(Java Doc)
void doSetLive(SetLiveState s)(Code)(Java Doc)
SceneGraphObject getSource()(Code)(Java Doc)
VirtualUniverse getVirtualUniverse()(Code)(Java Doc)
void handleFrequencyChange(int bit)(Code)(Java Doc)
boolean isInSetLive()(Code)(Java Doc)
boolean isStatic()(Code)(Java Doc)
void markAsLive()(Code)(Java Doc)
void merge(CompileState compState)(Code)(Java Doc)
void mergeTransform(TransformGroupRetained xform)(Code)(Java Doc)
void setCompiled()(Code)(Java Doc)
void setLive(boolean inBackgroundGroup)(Code)(Java Doc)
void setLive(SetLiveState s)(Code)(Java Doc)
void setSource(SceneGraphObject source)(Code)(Java Doc)
void traverse(boolean sameLevel, int level)(Code)(Java Doc)

Fields inherited from javax.media.j3d.IndexedObject
int[][] listIdx(Code)(Java Doc)

Methods inherited from javax.media.j3d.IndexedObject
synchronized int getIdxUsed(VirtualUniverse u)(Code)(Java Doc)
abstract VirtualUniverse getVirtualUniverse()(Code)(Java Doc)
void incIdxUsed()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.