home *** CD-ROM | disk | FTP | other *** search
/ Late Night VRML 2.0 with Java CD-ROM / code.zip / Ch12 / ui / tree / VrmlTreeNode.java < prev   
Text File  |  1997-01-04  |  697b  |  31 lines

  1. // VRML Generator
  2. // (c) Justin Couch 1996
  3. //
  4. // From Chapter 13 Late Night VRML 2.0 and Java
  5. //
  6. // Subclassed version of TreeNode that also keeps the pointer to the internal
  7. // VRML structure as well. THis is so when the object is selected it will also
  8. // know where to insert the object into the scene graph.
  9.  
  10. package ui.tree;
  11.  
  12. import ui.tree.TreeNode;
  13. import geometry.VrmlObject;
  14.  
  15. public class VrmlTreeNode extends TreeNode
  16. {
  17.     public VrmlObject    vrmlNode;
  18.     public int type;
  19.  
  20.     public VrmlTreeNode(VrmlObject node,
  21.                         int node_type,
  22.                         String title,
  23.                         String OpenFolder,
  24.                         String ClosedFolder)
  25.     {
  26.         super(title, OpenFolder, ClosedFolder);
  27.  
  28.         vrmlNode = node;
  29.         type = node_type;
  30.     }
  31. }