public class TextRegionEventFilter extends Object implements IEventFilter
IEventFilter
implementation only accepts text render events within the specified rectangular region.
Constructor and Description |
---|
TextRegionEventFilter(Rectangle filterRect)
Constructs a filter instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(IEventData data, EventType type)
This method checks an event and decides whether it should be processed further (corresponds to true return value), or filtered out (corresponds to false return value).
|
public TextRegionEventFilter(Rectangle filterRect)
filterRect
- the rectangle to filter text against
public boolean accept(IEventData data, EventType type)
IEventFilter
true
return value), or filtered out (corresponds to false
return value).
accept
in interface IEventFilter
data
- event data
type
- event type
Copyright © 1998–2023 iText Group NV. All rights reserved.