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 pb...@apache.org on 2004/07/10 18:35:26 UTC

cvs commit: xml-fop/src/java/org/apache/fop/area PaddingRectangle.java

pbwest      2004/07/10 09:35:26

  Modified:    src/java/org/apache/fop/area Tag: FOP_0-20-0_Alt-Design
                        PaddingRectangle.java
  Log:
  set(Top,Bottom,Left,Right) modified to update BorderRectangle
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.1.2.7   +63 -6     xml-fop/src/java/org/apache/fop/area/Attic/PaddingRectangle.java
  
  Index: PaddingRectangle.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/area/Attic/PaddingRectangle.java,v
  retrieving revision 1.1.2.6
  retrieving revision 1.1.2.7
  diff -u -r1.1.2.6 -r1.1.2.7
  --- PaddingRectangle.java	7 Jul 2004 22:18:29 -0000	1.1.2.6
  +++ PaddingRectangle.java	10 Jul 2004 16:35:25 -0000	1.1.2.7
  @@ -32,12 +32,28 @@
       private static final String revision = "$Revision$";
   
   
  -    public PaddingRectangle(Area area, Area.AreaGeometry content) {
  +    /**
  +     * Instantiates a <code>PaddingRectangle</code> within the given instance
  +     * of <code>Area</code>, with the given <code>ContentRectangle</code> as
  +     * content. 
  +     * @param area the containing area instance
  +     * @param content the <i>content-rectangle</i> framed by this padding
  +     */
  +    public PaddingRectangle(Area area, ContentRectangle content) {
           super(area, content);
           borders = new BorderRectangle(area, this);
       }
   
  -    /**
  +	/**
  +     * Instantiates a <code>PaddingRectangle</code> within the given instance
  +     * of <code>Area</code>, with the given offset and dimension values, the
  +     * given <code>ContentRectangle</code> as content at the given offset from
  +     * the origin corner of the <i>padding-rectangle</i>. 
  +     * @param area the containing area instance
  +	 * @param ipOffset
  +	 * @param bpOffset
  +	 * @param ipDim
  +	 * @param bpDim
   	 * @param contents
   	 * @param contentOffset
   	 */
  @@ -64,4 +80,45 @@
       public BorderRectangle getBorders() {
           return borders;
       }
  +
  +    /**
  +     * {@inheritDoc}
  +     * <p>The containing <code>BorderRectangle</code> is notified of the
  +     * change.
  +     */
  +    public void setTop(double top) {
  +        super.setTop(top);
  +        borders.setContents(this);
  +    }
  +
  +    /**
  +     * {@inheritDoc}
  +     * <p>The containing <code>BorderRectangle</code> is notified of the
  +     * change.
  +     */
  +    public void setLeft(double left) {
  +        super.setLeft(left);
  +        borders.setContents(this);
  +    }
  +
  +    /**
  +     * {@inheritDoc}
  +     * <p>The containing <code>BorderRectangle</code> is notified of the
  +     * change.
  +     */
  +    public void setBottom(double bottom) {
  +        super.setBottom(bottom);
  +        borders.setContents(this);
  +    }
  +
  +    /**
  +     * {@inheritDoc}
  +     * <p>The containing <code>BorderRectangle</code> is notified of the
  +     * change.
  +     */
  +    public void setRight(double right) {
  +        super.setRight(right);
  +        borders.setContents(this);
  +    }
  +
   }
  
  
  

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