00001 package edu.stanford.hci.r3.tools.design.acrobat; 00002 00003 import java.util.ArrayList; 00004 import java.util.List; 00005 00006 import edu.stanford.hci.r3.paper.Region; 00007 import edu.stanford.hci.r3.units.Points; 00008 00022 public class RegionConfiguration { 00023 00027 private Points heightInPoints; 00028 00029 private List<Region> regions = new ArrayList<Region>(); 00030 00034 private Points widthInPoints; 00035 00039 public RegionConfiguration() { 00040 } 00041 00045 public void addRegion(Region r) { 00046 regions.add(r); 00047 } 00048 00052 public Points getHeight() { 00053 return heightInPoints; 00054 } 00055 00059 public List<Region> getRegions() { 00060 return regions; 00061 } 00062 00066 public Points getWidth() { 00067 return widthInPoints; 00068 } 00069 00075 public void setDocumentHeight(double h) { 00076 heightInPoints = new Points(h); 00077 } 00078 00084 public void setDocumentWidth(double w) { 00085 widthInPoints = new Points(w); 00086 } 00087 00088 }