Java Doc for SymbolTable.java in  » 6.0-JDK-Modules » java-3d » com » sun » j3d » utils » scenegraph » io » retained » 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 » com.sun.j3d.utils.scenegraph.io.retained 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.j3d.utils.scenegraph.io.retained.SymbolTable

SymbolTable
public class SymbolTable extends java.lang.Object implements SceneGraphObjectReferenceControl(Code)
SymbolTable class for SceneGraph I/O.



Constructor Summary
public  SymbolTable(Controller control)
    

Method Summary
public  intaddBranchGraphReference(SceneGraphObject node, int branchGraphID)
     Add a refernce to the BranchGraph root Also returns the nodes id Used to associate graphs with a locale without storing the graph at the current time.
public  voidaddNamedObject(String name, SceneGraphObject object)
    
public  voidaddNamedObjects(HashMap map)
    
public  intaddReference(SceneGraphObject node)
    
public  intaddReference(SymbolTableData symbol)
    
public  booleanbranchGraphHasDependencies(int graphID)
    
public  voidclear()
    
public  voidclearUnshared()
    
public  SymbolTableDatacreateSymbol(SceneGraphObject node)
    
public  SymbolTableDatacreateSymbol(SceneGraphObjectState state, SceneGraphObject node, int nodeID)
     Create a new symbol using the specified nodeID This is used during the load process.
public  voidendUnsavedNodeComponentFrame()
    
public  intgetBranchGraphCount()
    
public  int[]getBranchGraphDependencies(int graphID)
    
public  longgetBranchGraphFilePosition(int graphID)
    
public  SymbolTableDatagetBranchGraphRoot(int graphID)
    
public  SceneGraphObjectgetJ3dNode(int nodeID)
     Return the Java3D node associated with the nodeID.
public  SceneGraphObjectgetNamedObject(String name)
    
public  voidgetNamedObjectMap(HashMap map)
    
public  String[]getNames()
    
public  SymbolTableDatagetSharedGroup(int nodeID)
    
public  SymbolTableDatagetSymbol(SceneGraphObject node)
    
public  SymbolTableDatagetSymbol(int nodeID)
    
public  ListIteratorgetUnsavedNodeComponents()
    
public  intgetUnsavedNodeComponentsSize()
    
public  voidincNodeComponentRefCount(int nodeID)
     Update the reference count for the node component.
public  booleanisLoaded(int nodeID)
    
public  voidreadTable(java.io.DataInput in, boolean streamRead)
    
public  javax.media.j3d.SceneGraphObjectresolveReference(int nodeID)
     Given a nodeID return the corresponding scene graph object.
public  voidsetBranchGraphID(SymbolTableData symbol)
    
public  voidsetBranchGraphRoot(SymbolTableData symbol, long filePointer)
     Mark the node referenced by this Symbol as a branch graph root The filePointer is the position of the BranchGraph in the file, this is not the same as the BranchGroups position due to the extra data stored for a graph.
public  voidsetFilePosition(long ptr, SceneGraphObjectState state)
    
public  voidstartUnsavedNodeComponentFrame()
    
public  StringtoString()
    
public  voidwriteTable(DataOutput out)
    


Constructor Detail
SymbolTable
public SymbolTable(Controller control)(Code)
Creates new SymbolTable




Method Detail
addBranchGraphReference
public int addBranchGraphReference(SceneGraphObject node, int branchGraphID)(Code)
Add a refernce to the BranchGraph root Also returns the nodes id Used to associate graphs with a locale without storing the graph at the current time.



addNamedObject
public void addNamedObject(String name, SceneGraphObject object)(Code)
Associate the name with the scene graph object



addNamedObjects
public void addNamedObjects(HashMap map)(Code)
Add all the named objects in map



addReference
public int addReference(SceneGraphObject node)(Code)
Add a refernce to the specified node Also returns the nodes id



addReference
public int addReference(SymbolTableData symbol)(Code)
Add a refernce to the specified node Also returns the nodes id



branchGraphHasDependencies
public boolean branchGraphHasDependencies(int graphID)(Code)
Return true if the graph is dependent on nodes in other graphs Only Nodes (not node components) cause dependencies



clear
public void clear()(Code)
Clear all elements from the symbol table



clearUnshared
public void clearUnshared()(Code)
Clear all the Symbols that are not shared with other Graphs in the file Remove all Symbols from all structures with referenceCounts=1



createSymbol
public SymbolTableData createSymbol(SceneGraphObject node)(Code)
Create a new symbol and provide a new nodeID This is used during the save process



createSymbol
public SymbolTableData createSymbol(SceneGraphObjectState state, SceneGraphObject node, int nodeID)(Code)
Create a new symbol using the specified nodeID This is used during the load process.



endUnsavedNodeComponentFrame
public void endUnsavedNodeComponentFrame()(Code)



getBranchGraphCount
public int getBranchGraphCount()(Code)



getBranchGraphDependencies
public int[] getBranchGraphDependencies(int graphID)(Code)
Return an array of each BranchGraph on which graphID is dependent for closure of the graph Only Nodes (not node components) cause dependencies If there are no dependencies int[0] is returned



getBranchGraphFilePosition
public long getBranchGraphFilePosition(int graphID)(Code)



getBranchGraphRoot
public SymbolTableData getBranchGraphRoot(int graphID)(Code)



getJ3dNode
public SceneGraphObject getJ3dNode(int nodeID)(Code)
Return the Java3D node associated with the nodeID. The method will call buildGraph() on the node if necessary



getNamedObject
public SceneGraphObject getNamedObject(String name) throws NamedObjectException, ObjectNotLoadedException(Code)
Return the SceneGraphObject associated with the name



getNamedObjectMap
public void getNamedObjectMap(HashMap map)(Code)
Add the namedObject mappings to map



getNames
public String[] getNames()(Code)
Get all the names of the named objects



getSharedGroup
public SymbolTableData getSharedGroup(int nodeID)(Code)
Get the symbol for the shared group If the sharedgroup has not been loaded then load it before returning (if we are using RandomAccessFileControl



getSymbol
public SymbolTableData getSymbol(SceneGraphObject node)(Code)
Get the table entry for node



getSymbol
public SymbolTableData getSymbol(int nodeID)(Code)
Return the node with the give ID



getUnsavedNodeComponents
public ListIterator getUnsavedNodeComponents()(Code)



getUnsavedNodeComponentsSize
public int getUnsavedNodeComponentsSize()(Code)



incNodeComponentRefCount
public void incNodeComponentRefCount(int nodeID)(Code)
Update the reference count for the node component. Called during NodeComponentState.addSubReference()



isLoaded
public boolean isLoaded(int nodeID)(Code)
Return true if this node has already been loaded



readTable
public void readTable(java.io.DataInput in, boolean streamRead) throws IOException(Code)
Read and store the entire symbol table
Parameters:
  streamRead - - true if reading from a Stream in which case only thebranchGraphs and named objects are read.



resolveReference
public javax.media.j3d.SceneGraphObject resolveReference(int nodeID)(Code)
Given a nodeID return the corresponding scene graph object. Use only during the load cycle



setBranchGraphID
public void setBranchGraphID(SymbolTableData symbol)(Code)
Set the branchGraphID in the symbol to the current branch graph ID



setBranchGraphRoot
public void setBranchGraphRoot(SymbolTableData symbol, long filePointer)(Code)
Mark the node referenced by this Symbol as a branch graph root The filePointer is the position of the BranchGraph in the file, this is not the same as the BranchGroups position due to the extra data stored for a graph.



setFilePosition
public void setFilePosition(long ptr, SceneGraphObjectState state)(Code)
Set the position of the object referenced by state



startUnsavedNodeComponentFrame
public void startUnsavedNodeComponentFrame()(Code)



toString
public String toString()(Code)



writeTable
public void writeTable(DataOutput out) throws IOException(Code)



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)

ww___w__.___java__2_s__.__c__o_m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.