Class BarSparklineType
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.filter.types.AbstractElementType
-
- org.pentaho.reporting.engine.classic.core.filter.types.ContentType
-
- org.pentaho.reporting.engine.classic.extensions.modules.sparklines.BarSparklineType
-
- All Implemented Interfaces:
Serializable,Cloneable,org.pentaho.reporting.engine.classic.core.filter.DataSource,org.pentaho.reporting.engine.classic.core.metadata.ElementType
public class BarSparklineType extends org.pentaho.reporting.engine.classic.core.filter.types.ContentTypeThis class is the Element type implementation of Sparkline bar graph.
This Element type allows the configuration of the default bars color, the bar color above average data points, the color of the last bar and the spacing between data points.- Author:
- Thomas Morgner
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static BarSparklineTypeINSTANCE
-
Constructor Summary
Constructors Constructor Description BarSparklineType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigureDesignTimeDefaults(org.pentaho.reporting.engine.classic.core.ReportElement element, Locale locale)ObjectgetDesignValue(org.pentaho.reporting.engine.classic.core.function.ExpressionRuntime runtime, org.pentaho.reporting.engine.classic.core.ReportElement element)ObjectgetValue(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
createComponentDrawable, filter
-
-
-
-
Field Detail
-
INSTANCE
public static final BarSparklineType INSTANCE
-
-
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:
getValuein interfaceorg.pentaho.reporting.engine.classic.core.filter.DataSource- Overrides:
getValuein classorg.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:
getDesignValuein interfaceorg.pentaho.reporting.engine.classic.core.metadata.ElementType- Overrides:
getDesignValuein classorg.pentaho.reporting.engine.classic.core.filter.types.ContentType
-
configureDesignTimeDefaults
public void configureDesignTimeDefaults(org.pentaho.reporting.engine.classic.core.ReportElement element, Locale locale)- Specified by:
configureDesignTimeDefaultsin interfaceorg.pentaho.reporting.engine.classic.core.metadata.ElementType- Overrides:
configureDesignTimeDefaultsin classorg.pentaho.reporting.engine.classic.core.filter.types.ContentType
-
-