|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.fo.FONode
org.apache.fop.fo.FObj
org.apache.fop.fo.flow.AbstractPageNumberCitation
public abstract class AbstractPageNumberCitation
Common base class for the
fo:page-number-citation
and
fo:page-number-citation-last
objects.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.fop.fo.FObj |
---|
FObj.FObjIterator |
Nested classes/interfaces inherited from class org.apache.fop.fo.FONode |
---|
FONode.FONodeIterator, FONode.GatherContextInfoFunction |
Field Summary |
---|
Fields inherited from class org.apache.fop.fo.FObj |
---|
firstChild, lastChild |
Fields inherited from class org.apache.fop.fo.FONode |
---|
FO_URI, FOX_URI, locator, log, parent, siblings |
Constructor Summary | |
---|---|
AbstractPageNumberCitation(FONode parent)
Base constructor |
Method Summary | |
---|---|
void |
bind(PropertyList pList)
Bind property values from the property list to the FO node. |
protected java.util.Stack<DelimitedTextRange> |
collectDelimitedTextRanges(java.util.Stack<DelimitedTextRange> ranges,
DelimitedTextRange currentRange)
Collect the sequence of delimited text ranges, where each new range is pushed onto RANGES, where default implementation collects ranges of child nodes. |
Length |
getAlignmentAdjust()
|
int |
getAlignmentBaseline()
|
Length |
getBaselineShift()
|
java.awt.Color |
getColor()
|
CommonAccessibility |
getCommonAccessibility()
Returns the accessibility properties. |
CommonBorderPaddingBackground |
getCommonBorderPaddingBackground()
|
CommonFont |
getCommonFont()
|
int |
getDominantBaseline()
|
SpaceProperty |
getLineHeight()
|
java.lang.String |
getRefId()
|
StructureTreeElement |
getStructureTreeElement()
Returns the structure tree element associated to this object. |
CommonTextDecoration |
getTextDecoration()
|
boolean |
isDelimitedTextRangeBoundary(int boundary)
Determine if node has a delimited text range boundary. |
void |
processNode(java.lang.String elementName,
org.xml.sax.Locator locator,
org.xml.sax.Attributes attlist,
PropertyList pList)
Initialize the node with its name, location information, and attributes The attributes must be used immediately as the sax attributes will be altered for the next element. |
void |
setStructureTreeElement(StructureTreeElement structureTreeElement)
Sets the structure tree element. |
protected void |
validateChildNode(org.xml.sax.Locator loc,
java.lang.String nsURI,
java.lang.String localName)
Checks to make sure, during SAX processing of input document, that the incoming node is valid for this (parent) node (e.g., checking to see that fo:table is not an immediate child of fo:root )
called from FOTreeBuilder.startElement(String, String, String, Attributes)
before constructing the child FObj . |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractPageNumberCitation(FONode parent)
parent
- FONode
that is the parent of this objectMethod Detail |
---|
public void bind(PropertyList pList) throws FOPException
bind
in class FObj
pList
- the PropertyList where the properties can be found.
FOPException
- if there is a problem binding the valuespublic void processNode(java.lang.String elementName, org.xml.sax.Locator locator, org.xml.sax.Attributes attlist, PropertyList pList) throws FOPException
processNode
in class FObj
elementName
- element name (e.g., "fo:block")locator
- Locator object (ignored by default)attlist
- Collection of attributes passed to us from the parser.pList
- the property list of the parent node
FOPException
- for errors or inconsistencies in the attributesprotected void validateChildNode(org.xml.sax.Locator loc, java.lang.String nsURI, java.lang.String localName) throws ValidationException
fo:table
is not an immediate child of fo:root
)
called from FOTreeBuilder.startElement(String, String, String, Attributes)
before constructing the child FObj
.
validateChildNode
in class FONode
loc
- location in the FO source filensURI
- namespace of incoming nodelocalName
- name of the incoming node (without namespace prefix)
ValidationException
- if incoming node not valid for parentpublic CommonAccessibility getCommonAccessibility()
getCommonAccessibility
in interface CommonAccessibilityHolder
public CommonFont getCommonFont()
CommonFont
public java.awt.Color getColor()
public CommonTextDecoration getTextDecoration()
public void setStructureTreeElement(StructureTreeElement structureTreeElement)
FONode
setStructureTreeElement
in class FONode
structureTreeElement
- set.public StructureTreeElement getStructureTreeElement()
FONode
getStructureTreeElement
in interface StructureTreeElementHolder
getStructureTreeElement
in class FONode
public Length getAlignmentAdjust()
public int getAlignmentBaseline()
public Length getBaselineShift()
public int getDominantBaseline()
public CommonBorderPaddingBackground getCommonBorderPaddingBackground()
CommonBorderPaddingBackground
public SpaceProperty getLineHeight()
public java.lang.String getRefId()
public boolean isDelimitedTextRangeBoundary(int boundary)
FONode
isDelimitedTextRangeBoundary
in class FONode
boundary
- one of {EN_BEFORE, EN_AFTER, or EN_BOTH} enumeration constants
protected java.util.Stack<DelimitedTextRange> collectDelimitedTextRanges(java.util.Stack<DelimitedTextRange> ranges, DelimitedTextRange currentRange)
FONode
collectDelimitedTextRanges
in class FONode
ranges
- a stack of delimited text rangescurrentRange
- the current range or null (if none)
|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |