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 kl...@apache.org on 2001/11/09 23:00:04 UTC

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

klease      01/11/09 14:00:04

  Added:       src/org/apache/fop/area RegionReference.java
  Log:
  Replaces Region.java to avoid naming conflicts with fo/pagination/Region
  
  Revision  Changes    Path
  1.1                  xml-fop/src/org/apache/fop/area/RegionReference.java
  
  Index: RegionReference.java
  ===================================================================
  /*
   * $Id: RegionReference.java,v 1.1 2001/11/09 22:00:04 klease Exp $
   * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
   * For details on use and redistribution please refer to the
   * LICENSE file included with these sources.
   */
  
  package org.apache.fop.area;
  
  import java.io.Serializable;
  import java.util.ArrayList;
  import java.util.List;
  
  public class RegionReference extends Area implements Serializable {
      public static final int BEFORE = 0;
      public static final int START = 1;
      public static final int BODY = 2;
      public static final int END = 3;
      public static final int AFTER = 4;
      int regionClass = BEFORE;
  
      public RegionReference(int type) {
          regionClass = type;
      }
  
      // the list of block areas from the static flow
      ArrayList blocks = new ArrayList();
  
      public List getBlocks() {
          return blocks;
      }
  
      public int getRegionClass() {
          return regionClass;
      }
  
      public void addBlock(Block block) {
          blocks.add(block);
      }
  
  }
  
  
  

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