Class PieSparklineType

  • All Implemented Interfaces:
    Serializable, Cloneable, org.pentaho.reporting.engine.classic.core.filter.DataSource, org.pentaho.reporting.engine.classic.core.metadata.ElementType

    public class PieSparklineType
    extends org.pentaho.reporting.engine.classic.core.filter.types.ContentType
    This class is the Element type implementation of Sparkline pie graph.
    This Element type allows the configuration of slices color, slices repartition, clockwise (or counter) drawing and the starting angle in degrees (0 the default is 12 o'clock).
    Author:
    Cedric Pronzato
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.pentaho.reporting.engine.classic.core.filter.types.ContentType

        org.pentaho.reporting.engine.classic.core.filter.types.ContentType.ContentTypeContext
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Object getDesignValue​(org.pentaho.reporting.engine.classic.core.function.ExpressionRuntime runtime, org.pentaho.reporting.engine.classic.core.ReportElement element)  
      Object getValue​(org.pentaho.reporting.engine.classic.core.function.ExpressionRuntime runtime, org.pentaho.reporting.engine.classic.core.ReportElement element)
      Returns the current value for the data source.
      • Methods inherited from class org.pentaho.reporting.engine.classic.core.filter.types.ContentType

        configureDesignTimeDefaults, createComponentDrawable, filter
      • Methods inherited from class org.pentaho.reporting.engine.classic.core.filter.types.AbstractElementType

        clone, create, equals, getId, getMetaData, hashCode
    • Constructor Detail

      • PieSparklineType

        public PieSparklineType()
    • Method Detail

      • getValue

        public Object getValue​(org.pentaho.reporting.engine.classic.core.function.ExpressionRuntime runtime,
                               org.pentaho.reporting.engine.classic.core.ReportElement element)
        Returns the current value for the data source.
        Specified by:
        getValue in interface org.pentaho.reporting.engine.classic.core.filter.DataSource
        Overrides:
        getValue in class org.pentaho.reporting.engine.classic.core.filter.types.ContentType
        Parameters:
        runtime - the expression runtime that is used to evaluate formulas and expressions when computing the value of this filter.
        element - the element for which the data is computed.
        Returns:
        the value.
      • getDesignValue

        public Object getDesignValue​(org.pentaho.reporting.engine.classic.core.function.ExpressionRuntime runtime,
                                     org.pentaho.reporting.engine.classic.core.ReportElement element)
        Specified by:
        getDesignValue in interface org.pentaho.reporting.engine.classic.core.metadata.ElementType
        Overrides:
        getDesignValue in class org.pentaho.reporting.engine.classic.core.filter.types.ContentType