Class GlyphEventListener
- java.lang.Object
-
- com.itextpdf.kernel.pdf.canvas.parser.listener.GlyphEventListener
-
- All Implemented Interfaces:
IEventListener
- Direct Known Subclasses:
GlyphTextEventListener
public class GlyphEventListener extends java.lang.Object implements IEventListener
This class expands eachTextRenderInfoforEventType.RENDER_TEXTevent types into multipleTextRenderInfoinstances for each glyph occurred.
-
-
Field Summary
Fields Modifier and Type Field Description protected IEventListenerdelegate
-
Constructor Summary
Constructors Constructor Description GlyphEventListener(IEventListener delegate)Constructs aGlyphEventListenerinstance by a delegate to which the expanded text events for each glyph occurred will be passed on.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voideventOccurred(IEventData data, EventType type)Called when some event occurs during parsing a content stream.java.util.Set<EventType>getSupportedEvents()Provides the set of event types this listener supports.
-
-
-
Field Detail
-
delegate
protected final IEventListener delegate
-
-
Constructor Detail
-
GlyphEventListener
public GlyphEventListener(IEventListener delegate)
Constructs aGlyphEventListenerinstance by a delegate to which the expanded text events for each glyph occurred will be passed on.- Parameters:
delegate- delegate to pass the expanded glyph render events to.
-
-
Method Detail
-
eventOccurred
public void eventOccurred(IEventData data, EventType type)
Description copied from interface:IEventListenerCalled when some event occurs during parsing a content stream.- Specified by:
eventOccurredin interfaceIEventListener- Parameters:
data- Combines the data required for processing corresponding event type.type- Event type.
-
getSupportedEvents
public java.util.Set<EventType> getSupportedEvents()
Description copied from interface:IEventListenerProvides the set of event types this listener supports. Returns null if all possible event types are supported.- Specified by:
getSupportedEventsin interfaceIEventListener- Returns:
- Set of event types supported by this listener or null if all possible event types are supported.
-
-