diff options
author | Keiron Liddle <keiron@apache.org> | 2002-10-25 09:29:48 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2002-10-25 09:29:48 +0000 |
commit | f4277e55a8810a0badd3a0dbb233178b678d0119 (patch) | |
tree | 9563455dd2f825ac8c0a24d19e99da70f2d7ec10 /src/org/apache/fop/traits/SpaceVal.java | |
parent | 40209c4fc88254b792d07b63be3955c8288b3e7a (diff) | |
download | xmlgraphics-fop-f4277e55a8810a0badd3a0dbb233178b678d0119.tar.gz xmlgraphics-fop-f4277e55a8810a0badd3a0dbb233178b678d0119.zip |
more style fixes
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195362 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/traits/SpaceVal.java')
-rw-r--r-- | src/org/apache/fop/traits/SpaceVal.java | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/src/org/apache/fop/traits/SpaceVal.java b/src/org/apache/fop/traits/SpaceVal.java index 3807a2aea..763ac00eb 100644 --- a/src/org/apache/fop/traits/SpaceVal.java +++ b/src/org/apache/fop/traits/SpaceVal.java @@ -23,29 +23,27 @@ public class SpaceVal { public final int iPrecedence; // Numeric only, if forcing, set to 0 public SpaceVal(Space spaceprop) { - space = new MinOptMax( - spaceprop.getMinimum().getLength().mvalue(), - spaceprop.getOptimum().getLength().mvalue(), - spaceprop.getMaximum().getLength().mvalue()); - bConditional = (spaceprop.getConditionality().getEnum() == - Constants.DISCARD); - Property precProp = spaceprop.getPrecedence(); - if (precProp.getNumber() != null) { - iPrecedence = precProp.getNumber().intValue(); - bForcing = false; - } - else { - bForcing = (precProp.getEnum() == Constants.FORCE); - iPrecedence=0; - } + space = new MinOptMax( spaceprop.getMinimum().getLength().mvalue(), + spaceprop.getOptimum().getLength().mvalue(), + spaceprop.getMaximum().getLength().mvalue()); + bConditional = (spaceprop.getConditionality().getEnum() == + Constants.DISCARD); + Property precProp = spaceprop.getPrecedence(); + if (precProp.getNumber() != null) { + iPrecedence = precProp.getNumber().intValue(); + bForcing = false; + } else { + bForcing = (precProp.getEnum() == Constants.FORCE); + iPrecedence = 0; + } } - public SpaceVal(MinOptMax space, boolean bConditional, boolean bForcing, - int iPrecedence) { - this.space = space; - this.bConditional = bConditional; - this.bForcing = bForcing; - this.iPrecedence = iPrecedence; + public SpaceVal(MinOptMax space, boolean bConditional, + boolean bForcing, int iPrecedence) { + this.space = space; + this.bConditional = bConditional; + this.bForcing = bForcing; + this.iPrecedence = iPrecedence; } } |