|
j3d-vrml97-0.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvrml.BaseNode
vrml.node.Script
public class Script
This is the base class for VRML scripts.
| Field Summary |
|---|
| Fields inherited from class vrml.BaseNode |
|---|
implBaseNode |
| Constructor Summary | |
|---|---|
Script()
Constructor for the Script object |
|
Script(Script init)
This is the internal constructor, called only when the Script is being initialized by the Loader. |
|
| Method Summary | |
|---|---|
Object |
clone()
Description of the Method |
void |
eventsProcessed()
Called after every invocation of processEvents() |
Browser |
getBrowser()
Gets the browser attribute of the Script object |
protected Field |
getEventIn(String eventInName)
Returns the EventIn specified in the VRML which invokes the script |
protected Field |
getEventOut(String eventOutName)
Returns the EventOut specified in the VRML which invokes the script |
protected Field |
getField(String fieldName)
Returns the Field specified in the VRML which invokes the script |
String |
getType()
Gets the type attribute of the Script object |
void |
initialize()
Called before any event is generated |
void |
processEvent(Event event)
Called when there is an Event to be processed |
void |
processEvents(int count,
Event[] events)
Called when there are Events to be processed |
void |
registerOwner(Script s)
This is an internal method, used to link the Script to its implementaton |
void |
shutdown()
Called when the Script node is deleted |
| Methods inherited from class vrml.BaseNode |
|---|
browserImpl, getImpl, getImplNode |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Script()
public Script(Script init)
init - Description of the Parameter| Method Detail |
|---|
public Object clone()
clone in class Objectpublic String getType()
getType in class BaseNodepublic Browser getBrowser()
getBrowser in class BaseNodepublic void registerOwner(Script s)
s - Description of the Parameter
protected final Field getField(String fieldName)
throws InvalidFieldException
fieldName - Description of the Parameter
InvalidFieldException - Description of the Exception
protected final Field getEventOut(String eventOutName)
throws InvalidEventOutException
eventOutName - Description of the Parameter
InvalidEventOutException - Description of the Exception
protected final Field getEventIn(String eventInName)
throws InvalidEventInException
eventInName - Description of the Parameter
InvalidEventInException - Description of the Exceptionpublic void initialize()
public void processEvents(int count,
Event[] events)
count - Description of the Parameterevents - Description of the Parameterpublic void processEvent(Event event)
event - Description of the Parameterpublic void eventsProcessed()
public void shutdown()
|
j3d-vrml97-0.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||