keiron      2003/02/18 21:51:15

  Modified:    src/org/apache/fop/fo/flow ExternalGraphic.java
               src/org/apache/fop/fo/pagination Region.java
  Log:
  use trait setter for setting traits
  
  Revision  Changes    Path
  1.31      +4 -4      xml-fop/src/org/apache/fop/fo/flow/ExternalGraphic.java
  
  Index: ExternalGraphic.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/ExternalGraphic.java,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- ExternalGraphic.java      14 Feb 2003 04:15:04 -0000      1.30
  +++ ExternalGraphic.java      19 Feb 2003 05:51:15 -0000      1.31
  @@ -23,8 +23,8 @@
   import org.apache.fop.image.ImageFactory;
   import org.apache.fop.image.FopImage;
   import org.apache.fop.area.inline.InlineArea;
  -import org.apache.fop.layoutmgr.AbstractLayoutManager;
   import org.apache.fop.layoutmgr.LeafNodeLayoutManager;
  +import org.apache.fop.layoutmgr.TraitSetter;
   import org.apache.fop.area.inline.Image;
   import org.apache.fop.area.inline.Viewport;
   import org.apache.fop.datatypes.Length;
  @@ -104,8 +104,8 @@
           // Common Border, Padding, and Background Properties
           BorderAndPadding bap = propMgr.getBorderAndPadding();
           BackgroundProps bProps = propMgr.getBackgroundProps();
  -        AbstractLayoutManager.addBorders(vp, bap);
  -        AbstractLayoutManager.addBackground(vp, bProps);
  +        TraitSetter.addBorders(vp, bap);
  +        TraitSetter.addBackground(vp, bProps);
   
           return vp;
       }
  
  
  
  1.17      +4 -4      xml-fop/src/org/apache/fop/fo/pagination/Region.java
  
  Index: Region.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/pagination/Region.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- Region.java       5 Jan 2003 22:07:03 -0000       1.16
  +++ Region.java       19 Feb 2003 05:51:15 -0000      1.17
  @@ -21,7 +21,7 @@
   import org.apache.fop.area.CTM;
   import org.apache.fop.area.RegionViewport;
   import org.apache.fop.area.RegionReference;
  -import org.apache.fop.layoutmgr.AbstractLayoutManager;
  +import org.apache.fop.layoutmgr.TraitSetter;
   
   // SAX
   import org.xml.sax.Attributes;
  @@ -101,8 +101,8 @@
           // Common Border, Padding, and Background Properties
           BorderAndPadding bap = propMgr.getBorderAndPadding();
           BackgroundProps bProps = propMgr.getBackgroundProps();
  -        AbstractLayoutManager.addBorders(r, bap);
  -        AbstractLayoutManager.addBackground(r, bProps);
  +        TraitSetter.addBorders(r, bap);
  +        TraitSetter.addBackground(r, bProps);
   
           // this.properties.get("clip");
           // this.properties.get("display-align");
  
  
  

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

Reply via email to