iText 8.0.2 API
iText.Commons.Actions.AbstractStatisticsEvent Class Referenceabstract

Abstract class which defines statistics event. More...

Inheritance diagram for iText.Commons.Actions.AbstractStatisticsEvent:
iText.Commons.Actions.AbstractProductITextEvent iText.Commons.Actions.AbstractITextEvent iText.Commons.Actions.IEvent iText.Kernel.Pdf.Statistics.NumberOfPagesStatisticsEvent iText.Kernel.Pdf.Statistics.SizeOfPdfStatisticsEvent

Public Member Functions

virtual AbstractStatisticsAggregator  CreateStatisticsAggregatorFromName (String statisticsName)
  Creates statistics aggregator based on provided statistics name. More...
 
abstract IList< String >  GetStatisticsNames ()
  Gets all statistics names related to this event. More...
 
- Public Member Functions inherited from iText.Commons.Actions.AbstractProductITextEvent
virtual ProductData  GetProductData ()
  Gets a product data which generated the event. More...
 
virtual String  GetProductName ()
  Gets a name of product which generated the event. More...
 

Detailed Description

Abstract class which defines statistics event.

Abstract class which defines statistics event. Only for internal usage.

Member Function Documentation

◆ CreateStatisticsAggregatorFromName()

virtual AbstractStatisticsAggregator iText.Commons.Actions.AbstractStatisticsEvent.CreateStatisticsAggregatorFromName ( String  statisticsName )
inlinevirtual

Creates statistics aggregator based on provided statistics name.

Creates statistics aggregator based on provided statistics name. By default prints log warning and returns null.

Parameters
statisticsName name of statistics based on which aggregator will be created. Shall be one of those returned from GetStatisticsNames()
Returns
new instance of AbstractStatisticsAggregator

Reimplemented in iText.Kernel.Pdf.Statistics.NumberOfPagesStatisticsEvent, and iText.Kernel.Pdf.Statistics.SizeOfPdfStatisticsEvent.

◆ GetStatisticsNames()

abstract IList iText.Commons.Actions.AbstractStatisticsEvent.GetStatisticsNames ( )
pure virtual

Gets all statistics names related to this event.

Returns

System.Collections.IList of statistics names

Implemented in iText.Kernel.Pdf.Statistics.NumberOfPagesStatisticsEvent, and iText.Kernel.Pdf.Statistics.SizeOfPdfStatisticsEvent.