From b5ea6fa785bed39236caf8f0a158f25a2229d320 Mon Sep 17 00:00:00 2001 From: Peter Bernard West Date: Fri, 28 May 2004 15:24:15 +0000 Subject: [PATCH] Changed IP and BP dimensions to floats git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197646 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/area/Area.java | 52 +++++++++++++------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/src/java/org/apache/fop/area/Area.java b/src/java/org/apache/fop/area/Area.java index 7b42456cd..abdcae71d 100644 --- a/src/java/org/apache/fop/area/Area.java +++ b/src/java/org/apache/fop/area/Area.java @@ -44,17 +44,17 @@ import org.apache.fop.fo.properties.WritingMode; public class Area extends AreaNode implements Cloneable { /** Current inline progression dimension. May be unknown. */ - protected Integer iPDim = null; + protected Float iPDim = null; /** Maximum required inline progression dimension. May be unknown. */ - protected Integer iPDimMax = null; + protected Float iPDimMax = null; /** Mimimum required inline progression dimension. May be unknown. */ - protected Integer iPDimMin = null; + protected Float iPDimMin = null; /** Current block progression dimension. May be unknown. */ - protected Integer bPDim = null; + protected Float bPDim = null; /** Maximum required block progression dimension. May be unknown. */ - protected Integer bPDimMax = null; + protected Float bPDimMax = null; /** Mimimum required block progression dimension. May be unknown. */ - protected Integer bPDimMin = null; + protected Float bPDimMin = null; /** The geometrical area. The width of this * Rectangle is the inline-progression-dimension * of the area, and the height is the @@ -218,11 +218,11 @@ public class Area extends AreaNode implements Cloneable { /** * Gets the block-progression-dimension maximum value, - * in millipoints + * in points * N.B. The method is synchronized only on this object. * @return the block-progression-dimension maximum value */ - public Integer getBPDimMax() { + public Float getBPDimMax() { synchronized (this) { return bPDimMax; } @@ -230,24 +230,24 @@ public class Area extends AreaNode implements Cloneable { /** * Sets the block-progression-dimension maximum value, - * in millipoints + * in points * N.B. The method is synchronized only on this object. * @param dimMax block-progression-dimension maximum value * to set */ - public void setBPDimMax(Integer dimMax) { + public void setBPDimMax(float dimMax) { synchronized (this) { - bPDimMax = dimMax; + bPDimMax = new Float(dimMax); } } /** * Gets the block-progression-dimension minimum value, - * in millipoints + * in points * N.B. The method is synchronized only on this object. * @return the block-progression-dimension minimum value */ - public Integer getBPDimMin() { + public Float getBPDimMin() { synchronized (this) { return bPDimMin; } @@ -255,14 +255,14 @@ public class Area extends AreaNode implements Cloneable { /** * Sets the block-progression-dimension minimum value, - * in millipoints + * in points * N.B. The method is synchronized only on this object. * @param dimMin block-progression-dimension minimum value * to set */ - public void setBPDimMin(Integer dimMin) { + public void setBPDimMin(float dimMin) { synchronized (this) { - bPDimMin = dimMin; + bPDimMin = new Float(dimMin); } } @@ -303,7 +303,7 @@ public class Area extends AreaNode implements Cloneable { /** * Sets the inline-progression-dimension of the contents of - * this area, in millipoints. This value is applied to the appropriate + * this area, in points. This value is applied to the appropriate * dimension of the Rectangle2D representing this area. If no * Rectangle2D exists, a zero-dimensioned default is first * created, then the value is applied. @@ -338,11 +338,11 @@ public class Area extends AreaNode implements Cloneable { /** * Gets the inline-progression-dimension maximum value, - * in millipoints + * in points * N.B. The method is synchronized only on this object. * @return the inline-progression-dimension maximum value */ - public Integer getIPDimMax() { + public Float getIPDimMax() { synchronized(this) { return iPDimMax; } @@ -350,24 +350,24 @@ public class Area extends AreaNode implements Cloneable { /** * Sets the inline-progression-dimension maximum value, - * in millipoints + * in points * N.B. The method is synchronized only on this object. * @param dimMax inline-progression-dimension maximum value * to set */ - public void setIPDimMax(Integer dimMax) { + public void setIPDimMax(float dimMax) { synchronized (this) { - iPDimMax = dimMax; + iPDimMax = new Float(dimMax); } } /** * Gets the inline-progression-dimension mimimum value, - * in millipoints + * in points * N.B. The method is synchronized only on this object. * @return the inline-progression-dimension minimum value */ - public Integer getIPDimMin() { + public Float getIPDimMin() { synchronized (this) { return iPDimMin; } @@ -380,9 +380,9 @@ public class Area extends AreaNode implements Cloneable { * @param dimMin inline-progression-dimension minimum value * to set */ - public void setIPDimMin(Integer dimMin) { + public void setIPDimMin(float dimMin) { synchronized (this) { - iPDimMin = dimMin; + iPDimMin = new Float(dimMin); } } -- 2.39.5