com.sun.j3d.loaders.lw3d
Class EnvelopeHandler

java.lang.Object
  extended by com.sun.j3d.loaders.lw3d.TextfileParser
      extended by com.sun.j3d.loaders.lw3d.EnvelopeHandler

 class EnvelopeHandler
extends TextfileParser

This class is used in implementing Envelope objects (of which there is currently only one - LightIntensity). The class is called whenever the parser has encountered a token which could have an envelope description. If the token simply has a numeric value, this value is stored. If, instead, there is an envelope, then the class creates the envelope class and parses that information.


Field Summary
(package private)  boolean hasEnvelope
           
(package private)  boolean hasValue
           
(package private)  LwsEnvelope theEnvelope
           
(package private)  float theValue
           
 
Fields inherited from class com.sun.j3d.loaders.lw3d.TextfileParser
currentLevel, debugPrinter, EXCEPTION, LINE_TRACE, lineSeparatorChar, MISC, NONE, NUMBER, TIME, TRACE, VALUES, WORD
 
Constructor Summary
EnvelopeHandler(java.io.StreamTokenizer st, int totalFrames, float totalTime)
          Constructor: This constructor is used if there is no existing implementation for this type of envelope.
EnvelopeHandler(java.io.StreamTokenizer st, int totalFrames, float totalTime, java.lang.String envClassName)
          Constructor: This constructor is called with the name of a class that can handle the encountered envelope.
 
Method Summary
 
Methods inherited from class com.sun.j3d.loaders.lw3d.TextfileParser
checkString, checkType, debugOutput, debugOutputLn, getAndCheckString, getName, getNumber, getString, isCurrentToken, skip, skipUntilString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theValue

float theValue

hasValue

boolean hasValue

hasEnvelope

boolean hasEnvelope

theEnvelope

LwsEnvelope theEnvelope
Constructor Detail

EnvelopeHandler

EnvelopeHandler(java.io.StreamTokenizer st,
                int totalFrames,
                float totalTime)
Constructor: This constructor is used if there is no existing implementation for this type of envelope. The real constructor is called with the generic LwsEnvelope class name, which will allow s to parse and ignore the envelope data


EnvelopeHandler

EnvelopeHandler(java.io.StreamTokenizer st,
                int totalFrames,
                float totalTime,
                java.lang.String envClassName)
          throws ParsingErrorException
Constructor: This constructor is called with the name of a class that can handle the encountered envelope. This is done so that this EnvelopeHandler class can generically call the given class to handle the envelope, whether it results in parsing/ignoring the data or in actually using the data

Throws:
ParsingErrorException


Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.