com.hdcookbook.grin.test.bigjdk
Class GuiShowBuilder

java.lang.Object
  extended by com.hdcookbook.grin.io.ShowBuilder
      extended by com.hdcookbook.grin.test.bigjdk.GuiShowBuilder

public class GuiShowBuilder
extends ShowBuilder

This is a ShowBuilder that tracks line number for GrinView

Author:
Bill Foote (http://jovial.com)
See Also:
GrinView

Field Summary
 
Fields inherited from class com.hdcookbook.grin.io.ShowBuilder
show
 
Constructor Summary
GuiShowBuilder(GrinView gui)
           
 
Method Summary
 void addCommand(Command command, int line)
          Called when a new command is encountered.
 void addFeature(java.lang.String name, int line, Feature f)
          Called when a new feature is encountered.
 void addRCHandler(java.lang.String name, int line, RCHandler hand)
          Called when a new remote control handler is encountered.
 void addSegment(java.lang.String name, int line, Segment s)
          Called when a new segment is encountered.
 void finishBuilding()
          Called when the show has finished parsing and all forward references have been resolved.
 
Methods inherited from class com.hdcookbook.grin.io.ShowBuilder
addDeferredBuilder, addNamedCommand, addSyntheticFeature, getExtensionParser, getFontIndex, getNamedCommand, getNamedFeature, getNamedRCHandler, getNamedSegment, getShow, init, injectParent, makeInterpolatedModel, makeScalingModel, makeTimer, makeTranslatorModel, setBinaryGrinFileName, setExported, setExtensionParser, setShowTop, setShowTopGroup, setStickyImages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuiShowBuilder

public GuiShowBuilder(GrinView gui)
Method Detail

addFeature

public void addFeature(java.lang.String name,
                       int line,
                       Feature f)
                throws java.io.IOException
Description copied from class: ShowBuilder
Called when a new feature is encountered.

Overrides:
addFeature in class ShowBuilder
Throws:
java.io.IOException

addSegment

public void addSegment(java.lang.String name,
                       int line,
                       Segment s)
                throws java.io.IOException
Description copied from class: ShowBuilder
Called when a new segment is encountered.

Overrides:
addSegment in class ShowBuilder
Throws:
java.io.IOException

addCommand

public void addCommand(Command command,
                       int line)
                throws java.io.IOException
Description copied from class: ShowBuilder
Called when a new command is encountered.

Overrides:
addCommand in class ShowBuilder
Throws:
java.io.IOException

addRCHandler

public void addRCHandler(java.lang.String name,
                         int line,
                         RCHandler hand)
                  throws java.io.IOException
Description copied from class: ShowBuilder
Called when a new remote control handler is encountered.

Overrides:
addRCHandler in class ShowBuilder
Throws:
java.io.IOException

finishBuilding

public void finishBuilding()
                    throws java.io.IOException
Description copied from class: ShowBuilder
Called when the show has finished parsing and all forward references have been resolved. Any DeferredBuider instances are processed here.

Overrides:
finishBuilding in class ShowBuilder
Throws:
java.io.IOException