Resolvable
public class UnresolvedPageNumber extends TextArea implements Resolvable
AbstractTextArea.TextAdjustingInfo
InlineArea.InlineAdjustingInfo
Modifier and Type | Field | 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.
|
bidiLevel, bpd, CLASS_ABSOLUTE, CLASS_BEFORE_FLOAT, CLASS_FIXED, CLASS_FOOTNOTE, CLASS_MAX, CLASS_NORMAL, CLASS_SIDE_FLOAT, effectiveIPD, ipd, log, ORIENT_0, ORIENT_180, ORIENT_270, ORIENT_90, traits
extensionAttachments, foreignAttributes
adjustingInfo, blockProgressionOffset
autoSize, inlines, minChildOffset
Constructor | Description |
---|---|
UnresolvedPageNumber() |
|
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 | Description |
---|---|---|
boolean |
applyVariationFactor(double variationFactor,
int lineStretch,
int lineShrink) |
recursively apply the variation factor to all descendant areas
|
java.util.List |
collectInlineRuns(java.util.List runs) |
Collection bidi inline runs.
|
java.lang.String[] |
getIDRefs() |
Get the id references for this area.
|
java.lang.String |
getText() |
Get the (resolved or unresolved) text.
|
boolean |
isResolved() |
Check if this is resolved.
|
void |
resolveIDRef(java.lang.String id,
java.util.List<PageViewport> 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.
|
getBaselineOffset, getTextLetterSpaceAdjust, getTextWordSpaceAdjust, setBaselineOffset, setSpaceDifference, setTextLetterSpaceAdjust, setTextWordSpaceAdjust
activateEffectiveIPD, addTrait, clone, getAllocBPD, getAllocIPD, getAreaClass, getBidiLevel, getBorderAndPaddingWidthAfter, getBorderAndPaddingWidthBefore, getBorderAndPaddingWidthEnd, getBorderAndPaddingWidthStart, getBPD, getEffectiveAllocIPD, getIPD, getSpaceAfter, getSpaceBefore, getSpaceEnd, getSpaceStart, getTrait, getTraitAsBoolean, getTraitAsInteger, getTraits, hasTrait, hasTraits, resetBidiLevel, setAreaClass, setBidiLevel, setBPD, setIPD, setTraits, setWritingModeTraits
addExtensionAttachment, getExtensionAttachments, getForeignAttributes, getForeignAttributeValue, hasExtensionAttachments, setExtensionAttachments, setForeignAttribute, setForeignAttributes
getAdjustingInfo, getBlockProgressionOffset, getParentArea, handleIPDVariation, hasLineThrough, hasOverline, hasUnderline, increaseIPD, isAncestor, isAncestorOrSelf, isBlinking, notifyIPDVariation, setAdjustingInfo, setAdjustingInfo, setAdjustment, setBlockProgressionOffset, setParentArea
addChildArea, getChildAreas, resetChildrenLevel
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSpace, addWord, addWord, addWord, getEffectiveIPD, isHyphenated, removeText, setHyphenated, toString, updateLevel
public static final boolean FIRST
public static final boolean LAST
public UnresolvedPageNumber()
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 Resolvable
public java.lang.String getText()
public void resolveIDRef(java.lang.String id, java.util.List<PageViewport> pages)
resolveIDRef
in interface Resolvable
id
- an id whose PageViewports have been determinedpages
- the list of PageViewports associated with this IDpublic boolean isResolved()
isResolved
in interface Resolvable
public boolean applyVariationFactor(double variationFactor, int lineStretch, int lineShrink)
applyVariationFactor
in class AbstractTextArea
variationFactor
- the variation factor that must be applied to adjustment ratioslineStretch
- the total stretch of the linelineShrink
- the total shrink of the linepublic java.util.List collectInlineRuns(java.util.List runs)
collectInlineRuns
in class InlineParent
runs
- current list of inline runsCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.