Copyright 2012-02-25 Werner Randelshofer

ch.randelshofer.view
Class PictStructView.PictNode

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

protected static class PictStructView.PictNode
extends java.lang.Object
implements AbstractStructView.StructNode


Constructor Summary
PictStructView.PictNode(PictStructView.PictModel model, int id, int offset, byte[] data)
           
 
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()
           
 void setIndexInParent(int cc)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PictStructView.PictNode

public PictStructView.PictNode(PictStructView.PictModel model,
                               int id,
                               int offset,
                               byte[] data)
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

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