Class SpaceVal
java.lang.Object
org.apache.fop.traits.SpaceVal
Store a single Space property value in simplified form, with all
Length values resolved. See section 4.3 in the specs.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final booleanprivate final intprivate final MinOptMax -
Constructor Summary
ConstructorsConstructorDescriptionSpaceVal(SpaceProperty spaceprop, PercentBaseContext context) Constructor for SpaceVal objects based on Space objects.Constructor for SpaceVal objects based on the full set of properties. -
Method Summary
Modifier and TypeMethodDescriptionprivate static MinOptMaxcreateSpaceProperty(SpaceProperty spaceprop, PercentBaseContext context) intReturns the Precedence value.getSpace()Returns the Space value.booleanReturns the Conditionality value.booleanReturns the Forcing value.static SpaceValmakeLetterSpacing(Property letterSpacing) static SpaceValmakeWordSpacing(Property wordSpacing, SpaceVal letterSpacing, Font fs) toString()
-
Field Details
-
space
-
conditional
private final boolean conditional -
forcing
private final boolean forcing -
precedence
private final int precedence
-
-
Constructor Details
-
SpaceVal
Constructor for SpaceVal objects based on Space objects.- Parameters:
spaceprop- Space object to usecontext- Percentage evaluation context
-
SpaceVal
Constructor for SpaceVal objects based on the full set of properties.- Parameters:
space- space to useconditional- Conditionality valueforcing- Forcing valueprecedence- Precedence value
-
-
Method Details
-
createSpaceProperty
-
makeWordSpacing
-
makeLetterSpacing
-
isConditional
public boolean isConditional()Returns the Conditionality value.- Returns:
- the Conditionality value
-
isForcing
public boolean isForcing()Returns the Forcing value.- Returns:
- the Forcing value
-
getPrecedence
public int getPrecedence()Returns the Precedence value.- Returns:
- the Precedence value
-
getSpace
-
toString
-