Package com.itextpdf.commons.actions
Class AbstractStatisticsEvent
java.lang.Object
com.itextpdf.commons.actions.AbstractITextEvent
com.itextpdf.commons.actions.AbstractProductITextEvent
com.itextpdf.commons.actions.AbstractStatisticsEvent
- All Implemented Interfaces:
-
IEvent
- Direct Known Subclasses:
-
NumberOfPagesStatisticsEvent
,SizeOfPdfStatisticsEvent
Abstract class which defines statistics event. Only for internal usage.
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractStatisticsEvent
(ProductData productData) Creates instance of abstract statistics iText event based on passed product data. -
Method Summary
Modifier and TypeMethodDescriptioncreateStatisticsAggregatorFromName
(String statisticsName) Creates statistics aggregator based on provided statistics name.Gets all statistics names related to this event.Methods inherited from class com.itextpdf.commons.actions.AbstractProductITextEvent
getProductData, getProductName
-
Constructor Details
-
AbstractStatisticsEvent
Creates instance of abstract statistics iText event based on passed product data. Only for internal usage.- Parameters:
-
productData
- is a description of the product which has generated an event
-
-
Method Details
-
createStatisticsAggregatorFromName
Creates statistics aggregator based on provided statistics name. By default prints log warning and returnsnull
.- Parameters:
-
statisticsName
- name of statistics based on which aggregator will be created. Shall be one of those returned fromgetStatisticsNames()
- Returns:
-
new instance of
AbstractStatisticsAggregator
-
getStatisticsNames
Gets all statistics names related to this event.- Returns:
-
List
of statistics names
-