|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.web3d.vrml.scripting.external.sai.SAIExternProtoDeclaration
public class SAIExternProtoDeclaration
Wrapper class for external PROTO declaration data.
| Constructor Summary | |
|---|---|
SAIExternProtoDeclaration(SAINodeFactory factory,
VRMLExternProtoDeclare externProto,
BasicScene scene)
|
|
| Method Summary | |
|---|---|
X3DProtoInstance |
createInstance()
Create an instance of this proto that may be used at runtime. |
void |
dispose()
Dispose of this node's resources. |
X3DFieldDefinition[] |
getFieldDefinitions()
Get the list of fields that this node contains. |
int |
getLoadState()
Check to see if the underlying definition has been loaded yet. |
int[] |
getNodeType()
Fetch the type of this proto. |
java.lang.String |
getProtoName()
Get the type of this node. |
java.lang.String[] |
getURLs()
Get the URLs used to describe this external prototype. |
void |
loadNow()
Ask the browser to load the defintion now. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SAIExternProtoDeclaration(SAINodeFactory factory,
VRMLExternProtoDeclare externProto,
BasicScene scene)
| Method Detail |
|---|
public int getLoadState()
X3DExternProtoDeclaration
getLoadState in interface X3DExternProtoDeclarationX3DExternProtoDeclaration.getLoadState()public void loadNow()
X3DExternProtoDeclaration
loadNow in interface X3DExternProtoDeclarationX3DExternProtoDeclaration.loadNow()public java.lang.String[] getURLs()
X3DExternProtoDeclaration
getURLs in interface X3DExternProtoDeclarationX3DExternProtoDeclaration.getURLs()
public java.lang.String getProtoName()
throws InvalidNodeException
X3DProtoDeclaration
getProtoName in interface X3DProtoDeclarationInvalidNodeException - The node has had it's resources
disposed ofX3DProtoDeclaration.getProtoName()
public int[] getNodeType()
throws InvalidNodeException
X3DProtoDeclarationThe types values are provided in the array of values. There is no specific order of the returned types. It is expected that most node types, which only descend from a single parent type would return an array of length 1.
getNodeType in interface X3DProtoDeclarationInvalidNodeException - The node has had it's resources
disposed ofX3DProtoDeclaration.getNodeType()
public X3DFieldDefinition[] getFieldDefinitions()
throws InvalidNodeException
X3DProtoDeclaration
getFieldDefinitions in interface X3DProtoDeclarationInvalidNodeException - The node has had it's resources
disposed ofX3DProtoDeclaration.getFieldDefinitions()
public X3DProtoInstance createInstance()
throws InvalidNodeException
X3DProtoDeclaration
createInstance in interface X3DProtoDeclarationInvalidNodeException - The node has had it's resources
disposed ofX3DProtoDeclaration.createInstance()
public void dispose()
throws InvalidNodeException
X3DProtoDeclarationThis in no way implies that the browser is to remove this node from the scene graph, only that the java code is no longer interested in this particular node through this reference.
Once this method has been called, any further calls to methods of this instance of the class is shall generate an InvalidNodeException.
dispose in interface X3DProtoDeclarationInvalidNodeException - The node is no longer valid and can't be
disposed of again.X3DProtoDeclaration.dispose()
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||