pbwest      2002/11/05 06:34:51

  Modified:    src/org/apache/fop/datastructs Tag: FOP_0-20-0_Alt-Design
                        Tree.java
  Log:
  Removed nodeCount.  Added constructor with subtree argument.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.4   +10 -3     xml-fop/src/org/apache/fop/datastructs/Attic/Tree.java
  
  Index: Tree.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/datastructs/Attic/Tree.java,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -r1.1.2.3 -r1.1.2.4
  --- Tree.java 4 Nov 2002 15:17:10 -0000       1.1.2.3
  +++ Tree.java 5 Nov 2002 14:34:51 -0000       1.1.2.4
  @@ -38,7 +38,7 @@
       /**
        * Count of the nodes in this tree.
        */
  -    protected int nodeCount = 0;
  +    //protected int nodeCount = 0;
       
       /**
        * The root node of this tree.
  @@ -47,6 +47,11 @@
   
       public Tree() {}
   
  +    public Tree(Node subtree) {
  +        subtree.setSubTreeTree(this);
  +        root = subtree;
  +    }
  +
       public int modified() {
           // In the Tree class, this function updates the modCount
           // N.B. This method is always called from within a synchronized
  @@ -82,9 +87,11 @@
        * Get the number of nodes in the tree.
        * @return the number of nodes.
        */
  +    /*
       public int size() {
           return nodeCount;
       }
  +    */
   
       /**
        * Is the tree empty?
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to