public class GlyphEventListener extends Object implements IEventListener
TextRenderInfo
for EventType.RENDER_TEXT
event types into multiple TextRenderInfo
instances for each glyph occurred.
Modifier and Type | Field and Description |
---|---|
protected IEventListener |
delegate |
Constructor and Description |
---|
GlyphEventListener(IEventListener delegate)
Constructs a GlyphEventListener instance by a delegate to which the expanded text events for each glyph occurred will be passed on.
|
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.
|
protected final IEventListener delegate
public GlyphEventListener(IEventListener delegate)
GlyphEventListener
instance by a delegate to which the expanded text events for each glyph occurred will be passed on.
delegate
- delegate to pass the expanded glyph render events to.
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
Copyright © 1998–2018 iText Group NV. All rights reserved.