Class GlyphEventListener
java.lang.Object
com.itextpdf.kernel.pdf.canvas.parser.listener.GlyphEventListener
- All Implemented Interfaces:
-
IEventListener
- Direct Known Subclasses:
-
GlyphTextEventListener
This class expands each
TextRenderInfo
for EventType.RENDER_TEXT
event types into multiple TextRenderInfo
instances for each glyph occurred.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionGlyphEventListener
(IEventListener delegate) Constructs aGlyphEventListener
instance by a delegate to which the expanded text events for each glyph occurred will be passed on. -
Method Summary
Modifier and TypeMethodDescriptionvoid
eventOccurred
(IEventData data, EventType type) Called when some event occurs during parsing a content stream.Provides the set of event types this listener supports.
-
Field Details
-
delegate
-
-
Constructor Details
-
GlyphEventListener
Constructs aGlyphEventListener
instance 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 Details
-
eventOccurred
Description copied from interface:IEventListener
Called when some event occurs during parsing a content stream.- Specified by:
-
eventOccurred
in interfaceIEventListener
- Parameters:
-
data
- Combines the data required for processing corresponding event type. -
type
- Event type.
-
getSupportedEvents
Description copied from interface:IEventListener
Provides the set of event types this listener supports. Returns null if all possible event types are supported.- Specified by:
-
getSupportedEvents
in interfaceIEventListener
- Returns:
- Set of event types supported by this listener or null if all possible event types are supported.
-