public abstract class FOEventHandler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected FontInfo |
fontInfo
The Font information relevant for this document
|
protected FOUserAgent |
foUserAgent
The FOUserAgent for this process
|
Constructor and Description |
---|
FOEventHandler(FOUserAgent foUserAgent)
Main constructor
|
Modifier and Type | Method and Description |
---|---|
void |
character(Character c)
Process a Character.
|
void |
characters(char[] data,
int start,
int length)
Process character data.
|
void |
endBlock(Block bl) |
void |
endBlockContainer(BlockContainer blc) |
void |
endBody(TableBody body) |
void |
endCell(TableCell tc) |
void |
endColumn(TableColumn tc) |
void |
endDocument()
This method is called to indicate the end of a document run.
|
void |
endExternalDocument(ExternalDocument document)
Process the end of the external-document extension.
|
void |
endFlow(Flow fl) |
void |
endFooter(TableFooter footer) |
void |
endFootnote(Footnote footnote)
Process the ending of a footnote.
|
void |
endFootnoteBody(FootnoteBody body)
Process the ending of a footnote body.
|
void |
endHeader(TableHeader header) |
void |
endInline(Inline inl) |
void |
endLink()
Process end of a Link.
|
void |
endList(ListBlock lb) |
void |
endListBody()
Process end of a ListBody.
|
void |
endListItem(ListItem li) |
void |
endListLabel()
Process end of a ListLabel.
|
void |
endMarkup()
Process end of a Markup.
|
void |
endPageNumber(PageNumber pagenum) |
void |
endPageNumberCitation(PageNumberCitation pageCite) |
void |
endPageNumberCitationLast(PageNumberCitationLast pageLast) |
void |
endPageSequence(PageSequence pageSeq) |
void |
endRow(TableRow tr) |
void |
endStatic()
Process end of a Static.
|
void |
endTable(Table tbl) |
void |
foreignObject(InstreamForeignObject ifo)
Process an InstreamForeignObject.
|
FontInfo |
getFontInfo()
Retrieve the font information for this document
|
FOUserAgent |
getUserAgent()
Returns the User Agent object associated with this FOEventHandler.
|
void |
image(ExternalGraphic eg)
Process an ExternalGraphic.
|
void |
leader(Leader l)
Process a Leader.
|
void |
pageRef()
Process a pageRef.
|
void |
startBlock(Block bl) |
void |
startBlockContainer(BlockContainer blc) |
void |
startBody(TableBody body) |
void |
startCell(TableCell tc) |
void |
startColumn(TableColumn tc) |
void |
startDocument()
This method is called to indicate the start of a new document run.
|
void |
startExternalDocument(ExternalDocument document)
Process the start of the external-document extension.
|
void |
startFlow(Flow fl)
This method is called to indicate the start of a new fo:flow
or fo:static-content.
|
void |
startFooter(TableFooter footer) |
void |
startFootnote(Footnote footnote)
Process the start of a footnote.
|
void |
startFootnoteBody(FootnoteBody body)
Process the start of a footnote body.
|
void |
startHeader(TableHeader header) |
void |
startInline(Inline inl) |
void |
startLink(BasicLink basicLink)
Process start of a Link.
|
void |
startList(ListBlock lb) |
void |
startListBody()
Process start of a ListBody.
|
void |
startListItem(ListItem li) |
void |
startListLabel()
Process start of a ListLabel.
|
void |
startMarkup()
Process start of a Markup.
|
void |
startPageNumber(PageNumber pagenum) |
void |
startPageNumberCitation(PageNumberCitation pageCite) |
void |
startPageNumberCitationLast(PageNumberCitationLast pageLast) |
void |
startPageSequence(PageSequence pageSeq) |
void |
startRow(TableRow tr) |
void |
startStatic()
Process start of a Static.
|
void |
startTable(Table tbl) |
protected FOUserAgent foUserAgent
protected FontInfo fontInfo
public FOEventHandler(FOUserAgent foUserAgent)
foUserAgent
- the apps.FOUserAgent instance for this processpublic FOUserAgent getUserAgent()
public FontInfo getFontInfo()
public void startDocument() throws org.xml.sax.SAXException
org.xml.sax.SAXException
- In case of a problempublic void endDocument() throws org.xml.sax.SAXException
org.xml.sax.SAXException
- In case of a problempublic void startPageSequence(PageSequence pageSeq)
pageSeq
- PageSequence that is starting.public void endPageSequence(PageSequence pageSeq)
pageSeq
- PageSequence that is ending.public void startPageNumber(PageNumber pagenum)
pagenum
- PageNumber that is starting.public void endPageNumber(PageNumber pagenum)
pagenum
- PageNumber that is ending.public void startPageNumberCitation(PageNumberCitation pageCite)
pageCite
- PageNumberCitation that is starting.public void endPageNumberCitation(PageNumberCitation pageCite)
pageCite
- PageNumberCitation that is ending.public void startPageNumberCitationLast(PageNumberCitationLast pageLast)
pageLast
- PageNumberCitationLast that is starting.public void endPageNumberCitationLast(PageNumberCitationLast pageLast)
pageLast
- PageNumberCitationLast that is ending.public void startFlow(Flow fl)
fl
- Flow that is starting.public void endFlow(Flow fl)
fl
- Flow that is ending.public void startBlock(Block bl)
bl
- Block that is starting.public void endBlock(Block bl)
bl
- Block that is ending.public void startBlockContainer(BlockContainer blc)
blc
- BlockContainer that is starting.public void endBlockContainer(BlockContainer blc)
blc
- BlockContainer that is ending.public void startInline(Inline inl)
inl
- Inline that is starting.public void endInline(Inline inl)
inl
- Inline that is ending.public void startTable(Table tbl)
tbl
- Table that is starting.public void endTable(Table tbl)
tbl
- Table that is ending.public void startColumn(TableColumn tc)
tc
- TableColumn that is starting;public void endColumn(TableColumn tc)
tc
- TableColumn that is ending;public void startHeader(TableHeader header)
header
- TableHeader that is starting;public void endHeader(TableHeader header)
header
- TableHeader that is ending.public void startFooter(TableFooter footer)
footer
- TableFooter that is starting.public void endFooter(TableFooter footer)
footer
- TableFooter that is ending.public void startBody(TableBody body)
body
- TableBody that is starting.public void endBody(TableBody body)
body
- TableBody that is ending.public void startRow(TableRow tr)
tr
- TableRow that is starting.public void endRow(TableRow tr)
tr
- TableRow that is ending.public void startCell(TableCell tc)
tc
- TableCell that is starting.public void endCell(TableCell tc)
tc
- TableCell that is ending.public void startList(ListBlock lb)
lb
- ListBlock that is starting.public void endList(ListBlock lb)
lb
- ListBlock that is ending.public void startListItem(ListItem li)
li
- ListItem that is starting.public void endListItem(ListItem li)
li
- ListItem that is ending.public void startListLabel()
public void endListLabel()
public void startListBody()
public void endListBody()
public void startStatic()
public void endStatic()
public void startMarkup()
public void endMarkup()
public void startLink(BasicLink basicLink)
basicLink
- BasicLink that is endingpublic void endLink()
public void image(ExternalGraphic eg)
eg
- ExternalGraphic to process.public void pageRef()
public void foreignObject(InstreamForeignObject ifo)
ifo
- InstreamForeignObject to process.public void startFootnote(Footnote footnote)
footnote
- Footnote that is startingpublic void endFootnote(Footnote footnote)
footnote
- Footnote that is endingpublic void startFootnoteBody(FootnoteBody body)
body
- FootnoteBody that is startingpublic void endFootnoteBody(FootnoteBody body)
body
- FootnoteBody that is endingpublic void leader(Leader l)
l
- Leader to process.public void character(Character c)
c
- Character to process.public void characters(char[] data, int start, int length)
data
- Array of characters to process.start
- Offset for characters to process.length
- Portion of array to process.public void startExternalDocument(ExternalDocument document)
document
- the external-document nodepublic void endExternalDocument(ExternalDocument document)
document
- the external-document nodeCopyright 1999-2010 The Apache Software Foundation. All Rights Reserved.