You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2005/01/17 11:33:51 UTC

cvs commit: xml-fop/src/java/org/apache/fop/datatypes FODimension.java

jeremias    2005/01/17 02:33:51

  Modified:    src/java/org/apache/fop/datatypes FODimension.java
  Log:
  toString() method
  
  Revision  Changes    Path
  1.5       +9 -1      xml-fop/src/java/org/apache/fop/datatypes/FODimension.java
  
  Index: FODimension.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/datatypes/FODimension.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- FODimension.java	27 Feb 2004 17:42:28 -0000	1.4
  +++ FODimension.java	17 Jan 2005 10:33:51 -0000	1.5
  @@ -1,5 +1,5 @@
   /*
  - * Copyright 1999-2004 The Apache Software Foundation.
  + * Copyright 1999-2005 The Apache Software Foundation.
    * 
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
  @@ -38,5 +38,13 @@
       public FODimension(int ipd, int bpd) {
           this.ipd = ipd;
           this.bpd = bpd;
  +    }
  +    
  +    public String toString() {
  +        StringBuffer sb = new StringBuffer(super.toString());
  +        sb.append(" {ipd=").append(Integer.toString(ipd));
  +        sb.append(", bpd=").append(Integer.toString(bpd));
  +        sb.append("}");
  +        return sb.toString();
       }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org