public class SparklineExpression
extends org.pentaho.reporting.engine.classic.core.function.ColumnAggregationExpression
Modifier and Type | Field and Description |
---|---|
static Color |
DEFAULT_COLOR |
static Color |
DEFAULT_HIGH_COLOR |
static Color |
DEFAULT_LAST_COLOR |
static Color |
DEFAULT_LOW_COLOR |
static Color |
DEFAULT_MEDIUM_COLOR |
Constructor and Description |
---|
SparklineExpression() |
Modifier and Type | Method and Description |
---|---|
Color |
getBackgroundColor() |
Color |
getColor() |
protected Number[] |
getData() |
Color |
getHighColor()
Returns the color for the highest bars (for bar graphs) or the color for the highest slice (for pie graphs)
|
Double |
getHighSlice()
Returns the percentage from which to end the higher slice (for pie graphs).
|
Color |
getLastColor()
Returns the color of the last bar (for bar graphs).
|
Color |
getLowColor()
Returns the color for the lower slice (for pie graphs)
|
Double |
getLowSlice()
Returns the percentage from which to end the lower slice (for pie graphs).
|
Color |
getMediumColor()
Returns the color for the medium slice (for pie graphs)
|
Double |
getMediumSlice()
Returns the percentage from which to end the medium slice (for pie graphs).
|
String |
getRawDataField() |
int |
getSpacing()
Returns the spacing between each datapoint.
|
int |
getStartAngle()
Returns the angle from which the graph should start drawing (for pie graphs).
|
String |
getType() |
Object |
getValue()
Return the current expression value.
|
boolean |
isCounterClockWise()
Returns if the graph should be drawn in counter clockwise or not (for pie graphs).
|
void |
setBackgroundColor(Color backgroundColor) |
void |
setColor(Color color) |
void |
setCounterClockWise(boolean counterClockWise)
Sets the graph drawing orientation (for pie graphs).
|
void |
setHighColor(Color highColor)
Sets the color for the highest bars (for bar graphs) or the color for the highest slice (for pie graphs)
|
void |
setHighSlice(Double highSlice)
Sets the percentage from which to end the higher slice (for pie graphs).
|
void |
setLastColor(Color lastColor)
Sets the color of the last bar (for bar graphs)
|
void |
setLowColor(Color lowColor)
Sets the color for the lower slice (for pie graphs)
|
void |
setLowSlice(Double lowSlice)
Sets the percentage from which to end the lower slice (for pie graphs).
|
void |
setMediumColor(Color mediumColor)
Sets the color for the medium slice (for pie graphs)
|
void |
setMediumSlice(Double mediumSlice)
Sets the percentage from which to end the medium slice (for pie graphs).
|
void |
setRawDataField(String rawDataField) |
void |
setSpacing(int spacing)
Sets the spacing between each datapoint.
|
void |
setStartAngle(int startAngle)
Sets the angle from which the graph should start drawing (for pie graphs).
|
void |
setType(String type)
Type can be either "bar", "line" or "pie".
|
getField, getField, getFieldCount, getFieldValues, getInstance, setField, setField
clone, getDataRow, getDependencyLevel, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setDependencyLevel, setName, setPreserve, setRuntime
public static final Color DEFAULT_COLOR
public static final Color DEFAULT_HIGH_COLOR
public static final Color DEFAULT_MEDIUM_COLOR
public static final Color DEFAULT_LOW_COLOR
public static final Color DEFAULT_LAST_COLOR
public String getType()
public void setType(String type)
type
- public String getRawDataField()
public void setRawDataField(String rawDataField)
public Color getColor()
public void setColor(Color color)
public Color getBackgroundColor()
public void setBackgroundColor(Color backgroundColor)
public Color getHighColor()
public void setHighColor(Color highColor)
highColor
- The color to use.public Color getLastColor()
public void setLastColor(Color lastColor)
lastColor
- The color to use.public Color getMediumColor()
public void setMediumColor(Color mediumColor)
mediumColor
- The color to use.public Color getLowColor()
public void setLowColor(Color lowColor)
lowColor
- The color to use.public Double getHighSlice()
public void setHighSlice(Double highSlice)
highSlice
- The begin in percentage.public Double getMediumSlice()
public void setMediumSlice(Double mediumSlice)
mediumSlice
- The begin in percentage.public Double getLowSlice()
public void setLowSlice(Double lowSlice)
lowSlice
- The begin in percentage.public boolean isCounterClockWise()
public void setCounterClockWise(boolean counterClockWise)
true
means counter clockwise.counterClockWise
- The new clockwise value.public int getStartAngle()
public void setStartAngle(int startAngle)
startAngle
- The new angle in degrees.public int getSpacing()
public void setSpacing(int spacing)
spacing
- The new spacing value to use.public Object getValue()
protected Number[] getData()
Copyright © 2017 Hitachi Vantara. All rights reserved.