public abstract class CategoricalChartExpression extends AbstractChartExpression implements org.pentaho.reporting.engine.classic.core.LegacyUpdateHandler
EMPTY_STROKE, LINE_STYLE_DASH_STR, LINE_STYLE_DASHDOT_STR, LINE_STYLE_DASHDOTDOT_STR, LINE_STYLE_DOT_STR, LINE_STYLE_SOLID_STR
Modifier | Constructor and Description |
---|---|
protected |
CategoricalChartExpression() |
Modifier and Type | Method and Description |
---|---|
protected org.jfree.chart.JFreeChart |
computeCategoryChart(org.jfree.data.category.CategoryDataset dataset) |
protected org.jfree.chart.JFreeChart |
computeChart(org.jfree.data.general.Dataset dataset) |
protected org.jfree.chart.plot.PlotOrientation |
computePlotOrientation() |
protected void |
configureChart(org.jfree.chart.JFreeChart chart) |
protected void |
configureLogarithmicAxis(org.jfree.chart.plot.CategoryPlot plot) |
protected void |
configureRangeAxis(org.jfree.chart.plot.CategoryPlot cpl,
Font labelFont) |
protected org.jfree.chart.axis.CategoryLabelPosition |
createUpRotationCategoryLabelPosition(org.pentaho.plugin.jfreereport.reportcharts.CategoricalChartExpression.PlaneDirection axisPosition,
double labelAngle)
Used instead of
org.jfree.chart.axis.CategoryLabelPosition.createUpRotationLabelPositions . |
String |
getCategoricalAxisMessageFormat() |
Double |
getCategoricalItemLabelRotation() |
Double |
getCategoricalItemLabelRotationDeg() |
String |
getCategoricalLabelDateFormat() |
String |
getCategoricalLabelDecimalFormat() |
String |
getCategoricalLabelFormat() |
String |
getCategoryAxisLabel() |
Double |
getCategoryMargin() |
Font |
getCategoryTickFont() |
Font |
getCategoryTitleFont() |
org.jfree.chart.JFreeChart |
getChart(org.jfree.data.category.CategoryDataset categoryDataset)
Deprecated.
should not be public and should not be a getter. In fact. it will be removed in PRD-4.0
|
protected int |
getDateUnitAsInt(Class domainTimePeriod) |
org.pentaho.reporting.engine.classic.core.function.Expression |
getInstance()
Return a completly separated copy of this function.
|
Double |
getLabelRotation() |
Double |
getLabelRotationDeg() |
Double |
getLowerMargin() |
Float |
getMaxCategoryLabelWidthRatio() |
double |
getRangeMaximum()
Return the range axis' maximum value
|
double |
getRangeMinimum()
Return the range axis' minimum value
|
double |
getRangePeriodCount() |
Font |
getRangeTickFont()
Return the java.awt.Font to be used to display the range axis tick labels
|
NumberFormat |
getRangeTickFormat() |
String |
getRangeTickFormatString() |
Class |
getRangeTimePeriod() |
Font |
getRangeTitleFont() |
double |
getScaleFactor() |
protected org.pentaho.plugin.jfreereport.reportcharts.CategoricalChartExpression.PlaneDirection |
getTextAnchorDirectionOfAngle(double angle)
Chooses a proper anchor for a text label at a chart axis tick.
|
Double |
getUpperMargin() |
String |
getValueAxisLabel() |
boolean |
isAutoRange() |
boolean |
isHorizontal() |
boolean |
isHumanReadableLogarithmicFormat() |
boolean |
isLogarithmicAxis() |
boolean |
isRangeIncludesZero() |
boolean |
isRangeStickyZero() |
boolean |
isShowGridlines() |
void |
reconfigureForCompatibility(int versionTag) |
void |
setAutoRange(boolean autoRange) |
void |
setCategoricalAxisMessageFormat(String categoricalAxisMessageFormat) |
void |
setCategoricalItemLabelRotation(Double value) |
void |
setCategoricalItemLabelRotationDeg(Double value) |
void |
setCategoricalLabelDateFormat(String value) |
void |
setCategoricalLabelDecimalFormat(String value) |
void |
setCategoricalLabelFormat(String value) |
void |
setCategoryAxisLabel(String categoryAxisLabel) |
void |
setCategoryMargin(Double categoryMargin) |
void |
setCategoryTickFont(Font categoryTickFont) |
void |
setCategoryTitleFont(Font categoryTitleFont) |
void |
setHorizontal(boolean value) |
void |
setHumanReadableLogarithmicFormat(boolean humanReadableLogarithmicFormat) |
void |
setLabelRotation(Double value) |
void |
setLabelRotationDeg(Double value) |
void |
setLogarithmicAxis(boolean logarithmicAxis) |
void |
setLowerMargin(Double lowerMargin) |
void |
setMaxCategoryLabelWidthRatio(Float value) |
void |
setRangeIncludesZero(boolean rangeIncludesZero) |
void |
setRangeMaximum(double rangeMaximum) |
void |
setRangeMinimum(double rangeMinimum) |
void |
setRangePeriodCount(double rangePeriodCount) |
void |
setRangeStickyZero(boolean rangeStickyZero) |
void |
setRangeTickFont(Font rangeTickFont) |
void |
setRangeTickFormat(NumberFormat rangeTickFormat) |
void |
setRangeTickFormatString(String rangeTickFormatString) |
void |
setRangeTimePeriod(Class rangeTimePeriod) |
void |
setRangeTitleFont(Font rangeTitleFont) |
void |
setScaleFactor(double scaleFactor) |
void |
setShowGridlines(boolean value) |
void |
setUpperMargin(Double upperMargin) |
void |
setValueAxisLabel(String valueAxisLabel) |
addExpression, computeTitle, getBackgroundColor, getBackgroundImage, getBorderColor, getChartDirectory, getChartFile, getChartFromCache, getChartHeight, getChartUrlMask, getChartWidth, getColorFromString, getDataSource, getDependencyLevel, getExpressionMap, getHyperlinkFormulas, getItemLabelFont, getItemsLabelVisible, getLabelFont, getLegendBackgroundColor, getLegendFont, getLegendLocation, getLegendTextColor, getNoDataMessage, getPlotBackgroundAlpha, getPlotBackgroundColor, getPlotForegroundAlpha, getPossibleExpressionStringValue, getPostProcessingLanguage, getPostProcessingScript, getSeriesColor, getSeriesColor, getSeriesColorCount, getSeriesColors, getTitle, getTitleField, getTitleFont, getTitleText, getTooltipFormula, getUrlFormula, getValue, isAntiAlias, isChartSectionOutline, isDrawLegendBorder, isReturnFileNameOnly, isReturnImageReference, isShowBorder, isShowLegend, isThreeD, isUseDrawable, loadChartFromCache, parseColorFromString, postProcessChart, putChartInCache, removeExpression, setAntiAlias, setBackgroundColor, setBackgroundImage, setBorderColor, setChartDirectory, setChartFile, setChartHeight, setChartSectionOutline, setChartUrlMask, setChartWidth, setDataSource, setDependencyLevel, setDrawLegendBorder, setExpressionMap, setItemLabelFont, setItemsLabelVisible, setLabelFont, setLegendBackgroundColor, setLegendFont, setLegendLocation, setLegendTextColor, setNoDataMessage, setPlotBackgroundAlpha, setPlotBackgroundColor, setPlotForegroundAlpha, setPostProcessingLanguage, setPostProcessingScript, setReturnFileNameOnly, setReturnImageReference, setSeriesColor, setSeriesColor, setShowBorder, setShowLegend, setThreeD, setTitle, setTitleField, setTitleFont, setTitleText, setTooltipFormula, setUrlFormula, setUseDrawable, standardTickUnitsApplyFormat, storeChartInCache, translateEdge, translateLineStyle
clone, getDataRow, getName, getReportConfiguration, getResourceBundleFactory, getRuntime, isActive, isDeepTraversing, isPreserve, setActive, setName, setPreserve, setRuntime
public Font getCategoryTitleFont()
public void setCategoryTitleFont(Font categoryTitleFont)
public Font getCategoryTickFont()
public void setCategoryTickFont(Font categoryTickFont)
public String getRangeTickFormatString()
public void setRangeTickFormatString(String rangeTickFormatString)
public String getCategoricalAxisMessageFormat()
public void setCategoricalAxisMessageFormat(String categoricalAxisMessageFormat)
public Font getRangeTickFont()
public void setRangeTickFont(Font rangeTickFont)
rangeTickFont
- The rangeTitleFont to set.public double getRangeMinimum()
public void setRangeMinimum(double rangeMinimum)
rangeMinimum
- Set the minimum value of the range axis.public double getRangeMaximum()
public void setRangeMaximum(double rangeMaximum)
rangeMaximum
- Set the maximum value of the range axis.public Font getRangeTitleFont()
public void setRangeTitleFont(Font rangeTitleFont)
rangeTitleFont
- The rangeTitleFont to set.public NumberFormat getRangeTickFormat()
public void setRangeTickFormat(NumberFormat rangeTickFormat)
rangeTickFormat
- The range tick number format to set.public boolean isRangeIncludesZero()
public void setRangeIncludesZero(boolean rangeIncludesZero)
rangeIncludesZero
- The domainIncludesZero to set.public boolean isRangeStickyZero()
public void setRangeStickyZero(boolean rangeStickyZero)
rangeStickyZero
- The rangeStickyZero to set.public boolean isLogarithmicAxis()
public void setLogarithmicAxis(boolean logarithmicAxis)
public boolean isHumanReadableLogarithmicFormat()
public void setHumanReadableLogarithmicFormat(boolean humanReadableLogarithmicFormat)
public Double getLowerMargin()
public void setLowerMargin(Double lowerMargin)
public Double getUpperMargin()
public void setUpperMargin(Double upperMargin)
public Double getCategoryMargin()
public void setCategoryMargin(Double categoryMargin)
public Double getLabelRotationDeg()
public void setLabelRotationDeg(Double value)
public Double getLabelRotation()
public void setLabelRotation(Double value)
public Double getCategoricalItemLabelRotationDeg()
public void setCategoricalItemLabelRotationDeg(Double value)
public Double getCategoricalItemLabelRotation()
public void setCategoricalItemLabelRotation(Double value)
public void setMaxCategoryLabelWidthRatio(Float value)
public Float getMaxCategoryLabelWidthRatio()
public boolean isShowGridlines()
public void setShowGridlines(boolean value)
public boolean isHorizontal()
public void setHorizontal(boolean value)
public String getValueAxisLabel()
public void setValueAxisLabel(String valueAxisLabel)
public String getCategoryAxisLabel()
public void setCategoryAxisLabel(String categoryAxisLabel)
public void setCategoricalLabelFormat(String value)
public String getCategoricalLabelFormat()
public void setCategoricalLabelDecimalFormat(String value)
public String getCategoricalLabelDecimalFormat()
public void setCategoricalLabelDateFormat(String value)
public String getCategoricalLabelDateFormat()
public boolean isAutoRange()
public void setAutoRange(boolean autoRange)
public double getScaleFactor()
public void setScaleFactor(double scaleFactor)
protected org.jfree.chart.JFreeChart computeChart(org.jfree.data.general.Dataset dataset)
computeChart
in class AbstractChartExpression
protected org.jfree.chart.JFreeChart computeCategoryChart(org.jfree.data.category.CategoryDataset dataset)
public org.jfree.chart.JFreeChart getChart(org.jfree.data.category.CategoryDataset categoryDataset)
categoryDataset
- the dataset.protected org.jfree.chart.plot.PlotOrientation computePlotOrientation()
protected void configureChart(org.jfree.chart.JFreeChart chart)
configureChart
in class AbstractChartExpression
protected void configureRangeAxis(org.jfree.chart.plot.CategoryPlot cpl, Font labelFont)
protected void configureLogarithmicAxis(org.jfree.chart.plot.CategoryPlot plot)
public Class getRangeTimePeriod()
public void setRangeTimePeriod(Class rangeTimePeriod)
public double getRangePeriodCount()
public void setRangePeriodCount(double rangePeriodCount)
public org.pentaho.reporting.engine.classic.core.function.Expression getInstance()
getInstance
in interface org.pentaho.reporting.engine.classic.core.function.Expression
getInstance
in class AbstractChartExpression
protected int getDateUnitAsInt(Class domainTimePeriod)
public void reconfigureForCompatibility(int versionTag)
reconfigureForCompatibility
in interface org.pentaho.reporting.engine.classic.core.LegacyUpdateHandler
protected org.jfree.chart.axis.CategoryLabelPosition createUpRotationCategoryLabelPosition(org.pentaho.plugin.jfreereport.reportcharts.CategoricalChartExpression.PlaneDirection axisPosition, double labelAngle)
org.jfree.chart.axis.CategoryLabelPosition.createUpRotationLabelPositions
.
It additionally takes into consideration the axis position.
axisPosition
- labelAngle
- protected org.pentaho.plugin.jfreereport.reportcharts.CategoricalChartExpression.PlaneDirection getTextAnchorDirectionOfAngle(double angle)
E.g.
Axis position is LEFT, label rotation = 0. So angle = 0.
Axis position is BOTTOM, label rotation = 90. So angle = 0.
Axis position is BOTTOM, label rotation = 0. So angle = pi/2 (90 degrees).
angle
- can be assumed as the label-relative direction to the axis.Copyright © 2002–2017 Pentaho Corporation. All rights reserved.