nwnintf.palette
Class PaletteTree

java.lang.Object
  |
  +--nwnintf.palette.PaletteTree

public class PaletteTree
extends java.lang.Object

Wrap an itp palette file into a swing tree.


Constructor Summary
PaletteTree(ItpFile itp, TlkFile tlk, int restype)
           
 
Method Summary
 java.util.Set blueprintnodes()
          Set of Map.Entry key is ResRef.
 javax.swing.tree.TreeNode nodeByResref(ResRef resref)
          Retrieve a node by its resref.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaletteTree

public PaletteTree(ItpFile itp,
                   TlkFile tlk,
                   int restype)
            throws java.io.IOException
Parameters:
itp - The itp file for the palette.
tlk - Loaded tlk file.
restype - Resource type referred to by this palette. e.g. creaturepalcus.itp refers to "utc".
Method Detail

nodeByResref

public javax.swing.tree.TreeNode nodeByResref(ResRef resref)
Retrieve a node by its resref.


blueprintnodes

public java.util.Set blueprintnodes()
Set of Map.Entry key is ResRef. e.g. new ResRef("amauna","utc") value is a PaletteNode