Copyright 2012-02-25 Werner Randelshofer

ch.randelshofer.view
Class RIFFStructView.RIFFChunkNode

java.lang.Object
  extended by ch.randelshofer.view.RIFFStructView.RIFFChunkNode
All Implemented Interfaces:
AbstractStructView.StructNode
Enclosing class:
RIFFStructView

protected static class RIFFStructView.RIFFChunkNode
extends java.lang.Object
implements AbstractStructView.StructNode


Constructor Summary
RIFFStructView.RIFFChunkNode(RIFFStructView.RIFFModel model, java.lang.String type, java.lang.String id, int size, int offset, byte[] data)
           
RIFFStructView.RIFFChunkNode(RIFFStructView.RIFFModel model, java.lang.String type, java.lang.String id, int size, int offset, java.io.File file)
           
 
Method Summary
 java.lang.String getDescription()
           
 java.io.File getFile()
          If the node is file based, returns the file otherwise returns null.
 java.lang.String getId()
           
 int getIndexInParent()
          Returns the index of the node in its parent.
 java.lang.String getName()
           
 long getOffset()
           
 byte[] getRawData(long offset, int len)
           
 java.util.List<org.monte.media.binary.BinaryPanel.Highlight> getRawDataHighlights()
           
 long getSize()
           
 org.monte.media.binary.StructTableModel getStructTableModel()
           
 java.lang.String getType()
           
 boolean hasRawData()
           
 void setChildCount(int cc)
           
 void setIndexInParent(int cc)
           
 void setParserMessage(java.lang.String message)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RIFFStructView.RIFFChunkNode

public RIFFStructView.RIFFChunkNode(RIFFStructView.RIFFModel model,
                                    java.lang.String type,
                                    java.lang.String id,
                                    int size,
                                    int offset,
                                    byte[] data)

RIFFStructView.RIFFChunkNode

public RIFFStructView.RIFFChunkNode(RIFFStructView.RIFFModel model,
                                    java.lang.String type,
                                    java.lang.String id,
                                    int size,
                                    int offset,
                                    java.io.File file)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface AbstractStructView.StructNode

getType

public java.lang.String getType()

getId

public java.lang.String getId()
Specified by:
getId in interface AbstractStructView.StructNode

getSize

public long getSize()
Specified by:
getSize in interface AbstractStructView.StructNode

getOffset

public long getOffset()
Specified by:
getOffset in interface AbstractStructView.StructNode

setChildCount

public void setChildCount(int cc)

setParserMessage

public void setParserMessage(java.lang.String message)

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface AbstractStructView.StructNode

getStructTableModel

public org.monte.media.binary.StructTableModel getStructTableModel()
Specified by:
getStructTableModel in interface AbstractStructView.StructNode

getRawData

public byte[] getRawData(long offset,
                         int len)
Specified by:
getRawData in interface AbstractStructView.StructNode

getRawDataHighlights

public java.util.List<org.monte.media.binary.BinaryPanel.Highlight> getRawDataHighlights()
Specified by:
getRawDataHighlights in interface AbstractStructView.StructNode

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getIndexInParent

public int getIndexInParent()
Description copied from interface: AbstractStructView.StructNode
Returns the index of the node in its parent.

Specified by:
getIndexInParent in interface AbstractStructView.StructNode

setIndexInParent

public void setIndexInParent(int cc)

hasRawData

public boolean hasRawData()
Specified by:
hasRawData in interface AbstractStructView.StructNode

getFile

public java.io.File getFile()
Description copied from interface: AbstractStructView.StructNode
If the node is file based, returns the file otherwise returns null.

Specified by:
getFile in interface AbstractStructView.StructNode

Copyright 2012-02-25 Werner Randelshofer