Copyright 2012-02-25 Werner Randelshofer

ch.randelshofer.view
Class RIFFStructView.RIFFModel

java.lang.Object
  extended by javax.swing.tree.DefaultTreeModel
      extended by ch.randelshofer.view.RIFFStructView.RIFFModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.tree.TreeModel, org.monte.media.riff.RIFFVisitor
Enclosing class:
RIFFStructView

protected static class RIFFStructView.RIFFModel
extends javax.swing.tree.DefaultTreeModel
implements org.monte.media.riff.RIFFVisitor

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultTreeModel
asksAllowsChildren, listenerList, root
 
Constructor Summary
RIFFStructView.RIFFModel(java.io.File file, java.io.InputStream in)
           
 
Method Summary
 void enterGroup(org.monte.media.riff.RIFFChunk group)
          This method is invoked when the parser enters a group chunk.
 boolean enteringGroup(org.monte.media.riff.RIFFChunk group)
          This method is invoked when the parser attempts to enter a group.
 java.lang.String getDescription(RIFFStructView.RIFFChunkNode chunkNode)
           
 java.lang.String getName(RIFFStructView.RIFFChunkNode chunkNode)
           
 org.monte.media.binary.StructTableModel getStructTableModel(RIFFStructView.RIFFChunkNode chunkNode)
           
 void leaveGroup(org.monte.media.riff.RIFFChunk group)
          This method is invoked when the parser leaves a group chunk.
 void registerChunks(org.monte.media.riff.RIFFParser iff)
           
 void visitChunk(org.monte.media.riff.RIFFChunk group, org.monte.media.riff.RIFFChunk chunk)
          This method is invoked when the parser has read a data chunk or has skipped a stop chunk.
 
Methods inherited from class javax.swing.tree.DefaultTreeModel
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RIFFStructView.RIFFModel

public RIFFStructView.RIFFModel(java.io.File file,
                                java.io.InputStream in)
                         throws java.io.IOException
Throws:
java.io.IOException
Method Detail

registerChunks

public void registerChunks(org.monte.media.riff.RIFFParser iff)

enterGroup

public void enterGroup(org.monte.media.riff.RIFFChunk group)
Description copied from interface: org.monte.media.riff.RIFFVisitor
This method is invoked when the parser enters a group chunk.

Specified by:
enterGroup in interface org.monte.media.riff.RIFFVisitor

leaveGroup

public void leaveGroup(org.monte.media.riff.RIFFChunk group)
Description copied from interface: org.monte.media.riff.RIFFVisitor
This method is invoked when the parser leaves a group chunk.

Specified by:
leaveGroup in interface org.monte.media.riff.RIFFVisitor

visitChunk

public void visitChunk(org.monte.media.riff.RIFFChunk group,
                       org.monte.media.riff.RIFFChunk chunk)
Description copied from interface: org.monte.media.riff.RIFFVisitor
This method is invoked when the parser has read a data chunk or has skipped a stop chunk.

Specified by:
visitChunk in interface org.monte.media.riff.RIFFVisitor

getName

public java.lang.String getName(RIFFStructView.RIFFChunkNode chunkNode)

getDescription

public java.lang.String getDescription(RIFFStructView.RIFFChunkNode chunkNode)

getStructTableModel

public org.monte.media.binary.StructTableModel getStructTableModel(RIFFStructView.RIFFChunkNode chunkNode)

enteringGroup

public boolean enteringGroup(org.monte.media.riff.RIFFChunk group)
Description copied from interface: org.monte.media.riff.RIFFVisitor
This method is invoked when the parser attempts to enter a group. The visitor can return false, if the parse shall skip the group contents.

Specified by:
enteringGroup in interface org.monte.media.riff.RIFFVisitor
Returns:
True to enter the group, false to skip over the group.

Copyright 2012-02-25 Werner Randelshofer