org.apache.fop.area.inline
public class UnresolvedPageNumber extends TextArea implements Resolvable
AbstractTextArea.TextAdjustingInfoInlineArea.InlineAdjustingInfo| Modifier and Type | Field and Description |
|---|---|
static boolean |
FIRST
Indicates that the reference refers to the first area generated by a formatting object.
|
static boolean |
LAST
Indicates that the reference refers to the last area generated by a formatting object.
|
autoSize, inlinesadjustingInfo, offsetbpd, BT, CLASS_ABSOLUTE, CLASS_BEFORE_FLOAT, CLASS_FIXED, CLASS_FOOTNOTE, CLASS_MAX, CLASS_NORMAL, CLASS_SIDE_FLOAT, ipd, log, LR, ORIENT_0, ORIENT_180, ORIENT_270, ORIENT_90, props, RL, TBforeignAttributes| Constructor and Description |
|---|
UnresolvedPageNumber(java.lang.String id,
Font f)
Create a new unresolved page number.
|
UnresolvedPageNumber(java.lang.String id,
Font f,
boolean type)
Create a new unresolved page number.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
applyVariationFactor(double variationFactor,
int lineStretch,
int lineShrink)
recursively apply the variation factor to all descendant areas
|
java.lang.String[] |
getIDRefs()
Get the id references for this area.
|
boolean |
isResolved()
Check if this is resolved.
|
void |
resolveIDRef(java.lang.String id,
java.util.List pages)
Resolve the page number idref
This resolves the idref for this object by getting the page number
string from the first page in the list of pages that apply
for this ID.
|
addSpace, addWord, addWord, getText, removeTextgetBaselineOffset, getTextLetterSpaceAdjust, getTextWordSpaceAdjust, setBaselineOffset, setSpaceDifference, setTextLetterSpaceAdjust, setTextWordSpaceAdjustaddChildArea, getChildAreasgetAdjustingInfo, getOffset, getParentArea, handleIPDVariation, hasLineThrough, hasOverline, hasUnderline, increaseIPD, isBlinking, notifyIPDVariation, setAdjustingInfo, setAdjustment, setOffset, setParentAreaaddTrait, addTrait, getAllocBPD, getAllocIPD, getAreaClass, getBooleanTrait, getBorderAndPaddingWidthAfter, getBorderAndPaddingWidthBefore, getBorderAndPaddingWidthEnd, getBorderAndPaddingWidthStart, getBPD, getIPD, getSpaceAfter, getSpaceBefore, getSpaceEnd, getSpaceStart, getTrait, getTraitAsInteger, getTraits, hasTrait, hasTraits, setAreaClass, setBPD, setIPD, toStringgetForeignAttributes, getForeignAttributeValue, setForeignAttribute, setForeignAttributespublic static final boolean FIRST
public static final boolean LAST
public UnresolvedPageNumber(java.lang.String id,
Font f)
id - the id reference for resolving thisf - the font for formatting the page numberpublic UnresolvedPageNumber(java.lang.String id,
Font f,
boolean type)
id - the id reference for resolving thisf - the font for formatting the page numbertype - indicates whether the reference refers to the first or last area generated by
a formatting objectpublic java.lang.String[] getIDRefs()
getIDRefs in interface Resolvablepublic void resolveIDRef(java.lang.String id,
java.util.List pages)
resolveIDRef in interface Resolvableid - an id whose PageViewports have been determinedpages - the list of PageViewports associated with this IDpublic boolean isResolved()
isResolved in interface Resolvablepublic boolean applyVariationFactor(double variationFactor,
int lineStretch,
int lineShrink)
applyVariationFactor in class AbstractTextAreavariationFactor - the variation factor that must be applied to adjustment ratioslineStretch - the total stretch of the linelineShrink - the total shrink of the lineCopyright 1999-2008 The Apache Software Foundation. All Rights Reserved.