|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JRChart
Implementations of this interface can be used for rendering chart components. Data obtained from the report datasource can be also displayed in a chart, embedded in the report. There are a lot of chart types, each with its own dataset and characteristics. This interface only defines the common properties.
Field Summary | |
---|---|
static byte |
CHART_TYPE_AREA
|
static byte |
CHART_TYPE_BAR
|
static byte |
CHART_TYPE_BAR3D
|
static byte |
CHART_TYPE_BUBBLE
|
static byte |
CHART_TYPE_CANDLESTICK
|
static byte |
CHART_TYPE_GANTT
|
static byte |
CHART_TYPE_HIGHLOW
|
static byte |
CHART_TYPE_LINE
|
static byte |
CHART_TYPE_METER
|
static byte |
CHART_TYPE_MULTI_AXIS
|
static byte |
CHART_TYPE_PIE
|
static byte |
CHART_TYPE_PIE3D
|
static byte |
CHART_TYPE_SCATTER
|
static byte |
CHART_TYPE_STACKEDAREA
|
static byte |
CHART_TYPE_STACKEDBAR
|
static byte |
CHART_TYPE_STACKEDBAR3D
|
static byte |
CHART_TYPE_THERMOMETER
|
static byte |
CHART_TYPE_TIMESERIES
|
static byte |
CHART_TYPE_XYAREA
|
static byte |
CHART_TYPE_XYBAR
|
static byte |
CHART_TYPE_XYLINE
|
static java.lang.String |
PROPERTY_CHART_RENDER_TYPE
Specifies the type of chart rendering. |
static java.lang.String |
PROPERTY_CHART_THEME
Property used to specify the chart theme name. |
static java.lang.String |
RENDER_TYPE_DRAW
rendering type |
static java.lang.String |
RENDER_TYPE_IMAGE
|
static java.lang.String |
RENDER_TYPE_SVG
|
Fields inherited from interface net.sf.jasperreports.engine.JRAnchor |
---|
NO_BOOKMARK |
Method Summary | |
---|---|
byte |
getChartType()
Gets the chart type. |
java.lang.String |
getCustomizerClass()
Gets a user specified chart customizer class name. |
JRChartDataset |
getDataset()
Gets the chart dataset. |
JRGroup |
getEvaluationGroup()
Gets the evaluation group for this chart (only applies when evaluation time is group). |
EvaluationTimeEnum |
getEvaluationTimeValue()
Returns the evaluation time for this chart. |
java.awt.Color |
getLegendBackgroundColor()
|
java.awt.Color |
getLegendColor()
|
JRFont |
getLegendFont()
|
EdgeEnum |
getLegendPositionValue()
|
java.awt.Color |
getOwnLegendBackgroundColor()
|
java.awt.Color |
getOwnLegendColor()
|
java.awt.Color |
getOwnSubtitleColor()
|
java.awt.Color |
getOwnTitleColor()
|
JRChartPlot |
getPlot()
Gets the chart plot. |
java.lang.String |
getRenderType()
|
java.lang.Boolean |
getShowLegend()
|
java.awt.Color |
getSubtitleColor()
|
JRExpression |
getSubtitleExpression()
Gets the expression whose evaluation will form the subtitle. |
JRFont |
getSubtitleFont()
|
java.lang.String |
getTheme()
|
java.awt.Color |
getTitleColor()
|
JRExpression |
getTitleExpression()
Gets the expression whose evaluation will form the title. |
JRFont |
getTitleFont()
|
EdgeEnum |
getTitlePositionValue()
Gets the title position relative to the chart. |
void |
setLegendBackgroundColor(java.awt.Color legendBackgroundColor)
|
void |
setLegendColor(java.awt.Color legendColor)
|
void |
setLegendPosition(EdgeEnum legendPosition)
|
void |
setRenderType(java.lang.String renderType)
|
void |
setShowLegend(java.lang.Boolean isShowLegend)
|
void |
setSubtitleColor(java.awt.Color subtitleColor)
|
void |
setTheme(java.lang.String theme)
|
void |
setTitleColor(java.awt.Color titleColor)
|
void |
setTitlePosition(EdgeEnum titlePosition)
Sets the title position relative to the chart. |
Methods inherited from interface net.sf.jasperreports.engine.JRElement |
---|
collectExpressions, getElementGroup, getKey, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchTypeValue, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX |
Methods inherited from interface net.sf.jasperreports.engine.JRChild |
---|
clone |
Methods inherited from interface net.sf.jasperreports.engine.JRVisitable |
---|
visit |
Methods inherited from interface net.sf.jasperreports.engine.JRCloneable |
---|
clone |
Methods inherited from interface net.sf.jasperreports.engine.JRCommonElement |
---|
getBackcolor, getForecolor, getHeight, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setMode |
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer |
---|
getDefaultStyleProvider, getStyle, getStyleNameReference |
Methods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder |
---|
getParentProperties, getPropertiesMap, hasProperties |
Methods inherited from interface net.sf.jasperreports.engine.JRAnchor |
---|
getAnchorNameExpression, getBookmarkLevel |
Methods inherited from interface net.sf.jasperreports.engine.JRHyperlink |
---|
getHyperlinkAnchorExpression, getHyperlinkPageExpression, getHyperlinkParameters, getHyperlinkReferenceExpression, getHyperlinkTarget, getHyperlinkTooltipExpression, getHyperlinkType, getHyperlinkTypeValue, getLinkTarget, getLinkType |
Methods inherited from interface net.sf.jasperreports.engine.JRBoxContainer |
---|
getDefaultLineColor, getLineBox |
Field Detail |
---|
static final java.lang.String PROPERTY_CHART_RENDER_TYPE
draw
, image
and svg
.
If the rendering type is draw
a vector image is constructed, using the JFreeChart
dedicated APIs.
For type image, a PNG encoded image will be generated, while for type svg, an SVG snippet will be generated.
Defaults to draw
.
static final java.lang.String PROPERTY_CHART_THEME
static final byte CHART_TYPE_AREA
static final byte CHART_TYPE_BAR3D
static final byte CHART_TYPE_BAR
static final byte CHART_TYPE_BUBBLE
static final byte CHART_TYPE_CANDLESTICK
static final byte CHART_TYPE_HIGHLOW
static final byte CHART_TYPE_LINE
static final byte CHART_TYPE_PIE3D
static final byte CHART_TYPE_PIE
static final byte CHART_TYPE_SCATTER
static final byte CHART_TYPE_STACKEDBAR3D
static final byte CHART_TYPE_STACKEDBAR
static final byte CHART_TYPE_XYAREA
static final byte CHART_TYPE_XYBAR
static final byte CHART_TYPE_XYLINE
static final byte CHART_TYPE_TIMESERIES
static final byte CHART_TYPE_METER
static final byte CHART_TYPE_THERMOMETER
static final byte CHART_TYPE_MULTI_AXIS
static final byte CHART_TYPE_STACKEDAREA
static final byte CHART_TYPE_GANTT
static final java.lang.String RENDER_TYPE_DRAW
static final java.lang.String RENDER_TYPE_IMAGE
static final java.lang.String RENDER_TYPE_SVG
Method Detail |
---|
java.lang.Boolean getShowLegend()
void setShowLegend(java.lang.Boolean isShowLegend)
EvaluationTimeEnum getEvaluationTimeValue()
JRGroup getEvaluationGroup()
JRExpression getTitleExpression()
JRFont getTitleFont()
EdgeEnum getTitlePositionValue()
void setTitlePosition(EdgeEnum titlePosition)
java.awt.Color getTitleColor()
java.awt.Color getOwnTitleColor()
void setTitleColor(java.awt.Color titleColor)
JRExpression getSubtitleExpression()
JRFont getSubtitleFont()
java.awt.Color getSubtitleColor()
java.awt.Color getOwnSubtitleColor()
void setSubtitleColor(java.awt.Color subtitleColor)
java.awt.Color getLegendColor()
java.awt.Color getOwnLegendColor()
void setLegendColor(java.awt.Color legendColor)
java.awt.Color getOwnLegendBackgroundColor()
java.awt.Color getLegendBackgroundColor()
void setLegendBackgroundColor(java.awt.Color legendBackgroundColor)
JRFont getLegendFont()
EdgeEnum getLegendPositionValue()
void setLegendPosition(EdgeEnum legendPosition)
JRChartDataset getDataset()
JRChartPlot getPlot()
byte getChartType()
java.lang.String getCustomizerClass()
JRChartCustomizer
java.lang.String getRenderType()
void setRenderType(java.lang.String renderType)
java.lang.String getTheme()
void setTheme(java.lang.String theme)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |