public class TextMarginFinder extends Object implements IEventListener
Constructor and Description |
---|
TextMarginFinder() |
Modifier and Type | Method and Description |
---|---|
void |
eventOccurred(IEventData data, EventType type)
Called when some event occurs during parsing a content stream.
|
Set<EventType> |
getSupportedEvents()
Provides the set of event types this listener supports.
|
Rectangle |
getTextRectangle()
Returns the common text rectangle, containing all the text found in the stream so far, ot null , if no text has been found yet.
|
public void eventOccurred(IEventData data, EventType type)
IEventListener
eventOccurred
in interface IEventListener
data
- Combines the data required for processing corresponding event type.
type
- Event type.
public Set<EventType> getSupportedEvents()
IEventListener
getSupportedEvents
in interface IEventListener
public Rectangle getTextRectangle()
null
, if no text has been found yet.
Copyright © 1998–2020 iText Group NV. All rights reserved.