Copyright 2012-02-25 Werner Randelshofer

ch.randelshofer.view
Class MP3StructView.MP3Node

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

protected static class MP3StructView.MP3Node
extends java.lang.Object
implements AbstractStructView.StructNode


Constructor Summary
MP3StructView.MP3Node(MP3StructView.MP3Model model, java.lang.String name, java.io.File file, org.monte.media.mp3.MP3ElementaryInputStream.Frame frame, byte[] data, int indexInParent, long offset, long size)
           
 
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 length)
           
 java.util.List<org.monte.media.binary.BinaryPanel.Highlight> getRawDataHighlights()
           
 long getSize()
           
 org.monte.media.binary.StructTableModel getStructTableModel()
           
 boolean hasRawData()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MP3StructView.MP3Node

public MP3StructView.MP3Node(MP3StructView.MP3Model model,
                             java.lang.String name,
                             java.io.File file,
                             org.monte.media.mp3.MP3ElementaryInputStream.Frame frame,
                             byte[] data,
                             int indexInParent,
                             long offset,
                             long size)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName 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 length)
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

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

getDescription

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

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

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