public class DefaultChartTheme extends java.lang.Object implements ChartTheme
| Modifier and Type | Field and Description |
|---|---|
static ChartThemeBundle |
BUNDLE |
static java.lang.String |
EXCEPTION_MESSAGE_KEY_UNSUPPORTED_CHART_TYPE |
static java.lang.String |
PROPERTY_DIAL_LABEL |
static java.lang.String |
PROPERTY_DIAL_VALUE_DISPLAY_VISIBLE |
static java.lang.String |
PROPERTY_DOMAIN_AXIS_INTEGER_UNIT |
static java.lang.String |
PROPERTY_DOMAIN_AXIS_TICK_COUNT |
static java.lang.String |
PROPERTY_DOMAIN_AXIS_TICK_INTERVAL |
static java.lang.String |
PROPERTY_RANGE_AXIS_INTEGER_UNIT |
static java.lang.String |
PROPERTY_RANGE_AXIS_TICK_COUNT |
static java.lang.String |
PROPERTY_RANGE_AXIS_TICK_INTERVAL |
protected static java.awt.Color |
TRANSPARENT_PAINT |
| Constructor and Description |
|---|
DefaultChartTheme() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
calculateTickUnits(Axis axis,
boolean isRangeAxis)
For a given axis, adjust the tick unit size, in order to
have a customizable number of ticks on that axis
|
protected void |
configureAxis(Axis axis,
JRFont labelFont,
java.awt.Color labelColor,
JRFont tickLabelFont,
java.awt.Color tickLabelColor,
java.lang.String tickLabelMask,
java.lang.Boolean verticalTickLabels,
java.awt.Color lineColor,
boolean isRangeAxis,
java.lang.Comparable<?> axisMinValue,
java.lang.Comparable<?> axisMaxValue)
Sets all the axis formatting options.
|
protected void |
configureChart(JFreeChart jfreeChart) |
protected void |
configurePlot(Plot plot) |
protected MeterInterval |
convertInterval(JRMeterInterval interval)
Converts a JasperReports meter interval to one that JFreeChart understands.
|
protected Range |
convertRange(JRDataRange dataRange)
Converts a JasperReport data range into one understood by JFreeChart.
|
protected JFreeChart |
createAreaChart() |
protected JFreeChart |
createBar3DChart() |
protected JFreeChart |
createBarChart() |
protected JFreeChart |
createBubbleChart() |
protected JFreeChart |
createCandlestickChart() |
JFreeChart |
createChart(ChartContext chartContext) |
protected JFreeChart |
createDialChart() |
protected JFreeChart |
createGanttChart() |
protected JFreeChart |
createHighLowChart() |
protected JFreeChart |
createLineChart() |
protected JFreeChart |
createMeterChart() |
protected JFreeChart |
createPie3DChart() |
protected JFreeChart |
createPieChart() |
protected JFreeChart |
createScatterChart() |
protected JFreeChart |
createStackedAreaChart() |
protected JFreeChart |
createStackedBar3DChart() |
protected JFreeChart |
createStackedBarChart() |
protected JFreeChart |
createThermometerChart()
Build and run a thermometer chart.
|
protected JFreeChart |
createTimeSeriesChart() |
protected JFreeChart |
createXyAreaChart() |
protected JFreeChart |
createXYBarChart() |
protected JFreeChart |
createXyLineChart() |
protected java.lang.Object |
evaluateExpression(JRExpression expression) |
protected java.lang.String |
evaluateTextExpression(JRExpression expression) |
protected JRChart |
getChart() |
protected AxisLocation |
getChartAxisLocation(JRChartAxis chartAxis)
Specifies the axis location.
|
protected Dataset |
getDataset() |
protected JRFont |
getFont(JRFont font) |
protected java.lang.Object |
getLabelGenerator() |
protected java.util.Locale |
getLocale() |
protected JRChartPlot |
getPlot() |
protected boolean |
isShowLegend()
Specifies whether a chart legend should be visible or no by default.
|
protected void |
setAxisBounds(Axis axis,
boolean isRangeAxis,
java.lang.Comparable<?> axisMinValue,
java.lang.Comparable<?> axisMaxValue) |
public static final java.lang.String EXCEPTION_MESSAGE_KEY_UNSUPPORTED_CHART_TYPE
public static final java.lang.String PROPERTY_DIAL_VALUE_DISPLAY_VISIBLE
public static final java.lang.String PROPERTY_DIAL_LABEL
public static final java.lang.String PROPERTY_RANGE_AXIS_TICK_COUNT
public static final java.lang.String PROPERTY_RANGE_AXIS_TICK_INTERVAL
public static final java.lang.String PROPERTY_RANGE_AXIS_INTEGER_UNIT
public static final java.lang.String PROPERTY_DOMAIN_AXIS_TICK_COUNT
public static final java.lang.String PROPERTY_DOMAIN_AXIS_TICK_INTERVAL
public static final java.lang.String PROPERTY_DOMAIN_AXIS_INTEGER_UNIT
protected static final java.awt.Color TRANSPARENT_PAINT
public static final ChartThemeBundle BUNDLE
protected JRChart getChart()
protected JRChartPlot getPlot()
protected Dataset getDataset()
protected java.lang.Object getLabelGenerator()
protected java.util.Locale getLocale()
protected final java.lang.String evaluateTextExpression(JRExpression expression) throws JRException
JRExceptionprotected final java.lang.Object evaluateExpression(JRExpression expression) throws JRException
JRExceptionpublic JFreeChart createChart(ChartContext chartContext) throws JRException
createChart in interface ChartThemeorg.jfree.chart.JFreeChart object representing the chartJRExceptionprotected void configureChart(JFreeChart jfreeChart)
throws JRException
JRExceptionprotected void configurePlot(Plot plot)
protected void configureAxis(Axis axis,
JRFont labelFont,
java.awt.Color labelColor,
JRFont tickLabelFont,
java.awt.Color tickLabelColor,
java.lang.String tickLabelMask,
java.lang.Boolean verticalTickLabels,
java.awt.Color lineColor,
boolean isRangeAxis,
java.lang.Comparable<?> axisMinValue,
java.lang.Comparable<?> axisMaxValue)
axis - the axis to formatlabelFont - the font to use for the axis labellabelColor - the color of the axis labeltickLabelFont - the font to use for each tick mark value labeltickLabelColor - the color of each tick mark value labeltickLabelMask - formatting mask for the label. If the axis is a NumberAxis then
the mask should be java.text.DecimalFormat mask, and
if it is a DateAxis then the mask should be a
java.text.SimpleDateFormat mask.verticalTickLabels - flag to draw tick labels at 90 degreeslineColor - color to use when drawing the axis line and any tick marksprotected JFreeChart createAreaChart()
throws JRException
JRExceptionprotected JFreeChart createBar3DChart()
throws JRException
JRExceptionprotected JFreeChart createBarChart()
throws JRException
JRExceptionprotected JFreeChart createBubbleChart()
throws JRException
JRExceptionprotected JFreeChart createCandlestickChart()
throws JRException
JRExceptionprotected JFreeChart createHighLowChart()
throws JRException
JRExceptionprotected JFreeChart createLineChart()
throws JRException
JRExceptionprotected JFreeChart createPie3DChart()
throws JRException
JRExceptionprotected JFreeChart createPieChart()
throws JRException
JRExceptionprotected JFreeChart createScatterChart()
throws JRException
JRExceptionprotected JFreeChart createStackedBar3DChart()
throws JRException
JRExceptionprotected JFreeChart createStackedBarChart()
throws JRException
JRExceptionprotected JFreeChart createStackedAreaChart()
throws JRException
JRExceptionprotected JFreeChart createXyAreaChart()
throws JRException
JRExceptionprotected JFreeChart createXYBarChart()
throws JRException
JRExceptionprotected JFreeChart createXyLineChart()
throws JRException
JRExceptionprotected JFreeChart createTimeSeriesChart()
throws JRException
JRExceptionprotected JFreeChart createGanttChart()
throws JRException
JRExceptionprotected Range convertRange(JRDataRange dataRange) throws JRException
dataRange - the JasperReport version of the rangeJRException - thrown when the low value of the range is greater than the
high valueprotected MeterInterval convertInterval(JRMeterInterval interval) throws JRException
interval - the JasperReports definition of an intervalJRException - thrown when the interval contains an invalid rangeprotected JFreeChart createMeterChart()
throws JRException
JRExceptionprotected JFreeChart createThermometerChart()
throws JRException
JRExceptionprotected JFreeChart createDialChart()
throws JRException
JRExceptionprotected AxisLocation getChartAxisLocation(JRChartAxis chartAxis)
protected void setAxisBounds(Axis axis,
boolean isRangeAxis,
java.lang.Comparable<?> axisMinValue,
java.lang.Comparable<?> axisMaxValue)
protected void calculateTickUnits(Axis axis,
boolean isRangeAxis)
protected boolean isShowLegend()
© 2001-2014 TIBCO Software Inc. www.jaspersoft.com