gmazza      2003/12/23 13:53:46

  Modified:    src/java/org/apache/fop/area Trait.java
  Log:
  Bug 25692 (patch by Finn Bock)--toString() implementation of Trait.Background class.
  
  Revision  Changes    Path
  1.2       +17 -1     xml-fop/src/java/org/apache/fop/area/Trait.java
  
  Index: Trait.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/area/Trait.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Trait.java        11 Mar 2003 13:05:27 -0000      1.1
  +++ Trait.java        23 Dec 2003 21:53:46 -0000      1.2
  @@ -469,7 +469,23 @@
               this.vertical = vertical;
           }
   
  -    }
  +       /**
  +         * Return the string for debugging.
  +         * @see java.lang.Object#toString()
  +         */
  +        public String toString() {
  +            StringBuffer sb = new StringBuffer();
  +            sb.append("color=" + color);
  +            if (url != null) {
  +                sb.append(",url=");
  +                sb.append(url);
  +            }
  +            sb.append(",repeat=" + repeat);
  +            sb.append(",horiz=" + horiz);
  +            sb.append(",vertical=" + vertical);
  +            return sb.toString();
  +        }
   
  +    }
   }
   
  
  
  

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

Reply via email to