com.itextpdf.text.pdf.parser
Class FilteredRenderListener

java.lang.Object
  extended by com.itextpdf.text.pdf.parser.FilteredRenderListener
All Implemented Interfaces:
RenderListener
Direct Known Subclasses:
FilteredTextRenderListener

public class FilteredRenderListener
extends Object
implements RenderListener

A text render listener that filters text operations before passing them on to a delegate

Since:
5.0.1

Field Summary
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 Summary
FilteredRenderListener(RenderListener delegate, RenderFilter... filters)
          Construction
 
Method Summary
 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
 void reset()
          This class delegates this call
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

private final RenderListener delegate
The delegate that will receive the text render operation if the filters all pass


filters

private final RenderFilter[] filters
The filters to be applied

Constructor Detail

FilteredRenderListener

public FilteredRenderListener(RenderListener delegate,
                              RenderFilter... filters)
Construction

Parameters:
delegate - the delegate RenderListener that will receive filtered text operations
filters - the filter(s) to apply
Method Detail

renderText

public void renderText(TextRenderInfo renderInfo)
Applies filters, then delegates to the delegate if all filters pass

Specified by:
renderText in interface RenderListener
Parameters:
renderInfo - contains info to render text
See Also:
RenderListener.renderText(com.itextpdf.text.pdf.parser.TextRenderInfo)

beginTextBlock

public void beginTextBlock()
This class delegates this call

Specified by:
beginTextBlock in interface RenderListener
See Also:
RenderListener.beginTextBlock()

endTextBlock

public void endTextBlock()
This class delegates this call

Specified by:
endTextBlock in interface RenderListener
See Also:
RenderListener.endTextBlock()

reset

public void reset()
This class delegates this call

Specified by:
reset in interface RenderListener
See Also:
RenderListener.reset()

renderImage

public void renderImage(ImageRenderInfo renderInfo)
Applies filters, then delegates to the delegate if all filters pass

Specified by:
renderImage in interface RenderListener
Parameters:
renderInfo - information specifying what to render
Since:
5.0.1
See Also:
RenderListener.renderImage(com.itextpdf.text.pdf.parser.ImageRenderInfo)

Hosted by Hostbasket