public class FilteredRenderListener extends Object implements RenderListener
Modifier and Type | Field and Description |
---|---|
private RenderListener |
delegate
The delegate that will receive the text render operation if the filters all pass
|
private RenderFilter[] |
filters
The filters to be applied
|
Constructor and Description |
---|
FilteredRenderListener(RenderListener delegate,
RenderFilter... filters)
Construction
|
Modifier and Type | Method and Description |
---|---|
void |
beginTextBlock()
This class delegates this call
|
void |
endTextBlock()
This class delegates this call
|
void |
renderImage(ImageRenderInfo renderInfo)
Applies filters, then delegates to the delegate if all filters pass
|
void |
renderText(TextRenderInfo renderInfo)
Applies filters, then delegates to the delegate if all filters pass
|
private final RenderListener delegate
private final RenderFilter[] filters
public FilteredRenderListener(RenderListener delegate, RenderFilter... filters)
delegate
- the delegate RenderListener
that will receive filtered text operationsfilters
- the filter(s) to applypublic void renderText(TextRenderInfo renderInfo)
renderText
in interface RenderListener
renderInfo
- contains info to render textRenderListener.renderText(com.itextpdf.text.pdf.parser.TextRenderInfo)
public void beginTextBlock()
beginTextBlock
in interface RenderListener
RenderListener.beginTextBlock()
public void endTextBlock()
endTextBlock
in interface RenderListener
RenderListener.endTextBlock()
public void renderImage(ImageRenderInfo renderInfo)
renderImage
in interface RenderListener
renderInfo
- information specifying what to renderRenderListener.renderImage(com.itextpdf.text.pdf.parser.ImageRenderInfo)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses