org.apache.fop.traits
Class SpaceVal
java.lang.Object
org.apache.fop.traits.SpaceVal
public class SpaceVal
extends java.lang.Object
Store a single Space property value in simplified form, with all
Length values resolved. See section 4.3 in the specs.
SpaceVal
public SpaceVal(SpaceProperty spaceprop,
PercentBaseContext context)
Constructor for SpaceVal objects based on Space objects.
spaceprop
- Space object to usecontext
- Percentage evaluation context
SpaceVal
public SpaceVal(MinOptMax space,
boolean bConditional,
boolean bForcing,
int iPrecedence)
Constructor for SpaceVal objects based on the full set of properties.
space
- space to usebConditional
- Conditionality valuebForcing
- Forcing valueiPrecedence
- Precedence value
getPrecedence
public int getPrecedence()
Returns the Precedence value.
getSpace
public MinOptMax getSpace()
Returns the Space value.
isConditional
public boolean isConditional()
Returns the Conditionality value.
isForcing
public boolean isForcing()
Returns the Forcing value.
makeLetterSpacing
public static SpaceVal makeLetterSpacing(Property letterSpacing)
toString
public String toString()
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.