Class TextRegionEventFilter
- java.lang.Object
-
- com.itextpdf.kernel.pdf.canvas.parser.filter.TextRegionEventFilter
-
- All Implemented Interfaces:
IEventFilter
public class TextRegionEventFilter extends java.lang.Object implements IEventFilter
ThisIEventFilter
implementation only accepts text render events within the specified rectangular region.
-
-
Field Summary
Fields Modifier and Type Field Description private Rectangle
filterRect
-
Constructor Summary
Constructors Constructor Description TextRegionEventFilter(Rectangle filterRect)
Constructs a filter instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(IEventData data, EventType type)
This method checks an event and decides whether it should be processed further (corresponds totrue
return value), or filtered out (corresponds tofalse
return value).
-
-
-
Field Detail
-
filterRect
private final Rectangle filterRect
-
-
Constructor Detail
-
TextRegionEventFilter
public TextRegionEventFilter(Rectangle filterRect)
Constructs a filter instance.- Parameters:
filterRect
- the rectangle to filter text against
-
-
Method Detail
-
accept
public boolean accept(IEventData data, EventType type)
Description copied from interface:IEventFilter
This method checks an event and decides whether it should be processed further (corresponds totrue
return value), or filtered out (corresponds tofalse
return value).- Specified by:
accept
in interfaceIEventFilter
- Parameters:
data
- event datatype
- event type- Returns:
- true to process event further, false to filter event out
-
-