Package net.sf.jasperreports.engine
Interface JRChart
- All Superinterfaces:
Cloneable,JRAnchor,JRBoxContainer,JRChild,JRCloneable,JRCommonElement,JRElement,JREvaluation,JRHyperlink,JRIdentifiable,JRPropertiesHolder,JRStyleContainer,JRVisitable
- All Known Implementing Classes:
JRBaseChart,JRDesignChart,JRFillChart
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.
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final bytestatic final StringSpecifies the type of chart rendering.static final StringProperty used to specify the chart theme name.static final Stringrendering typestatic final Stringstatic final StringFields inherited from interface net.sf.jasperreports.engine.JRAnchor
NO_BOOKMARKFields inherited from interface net.sf.jasperreports.engine.JRElement
PROPERTY_ELEMENT_TEMPLATE_POPULATE_STYLE -
Method Summary
Modifier and TypeMethodDescriptionbyteGets the chart type.Gets a user specified chart customizer class name.Gets the chart dataset.getPlot()Gets the chart plot.Gets the expression whose evaluation will form the subtitle.getTheme()Gets the expression whose evaluation will form the title.Gets the title position relative to the chart.voidsetLegendBackgroundColor(Color legendBackgroundColor) voidsetLegendColor(Color legendColor) voidsetLegendPosition(EdgeEnum legendPosition) voidsetRenderType(String renderType) voidsetShowLegend(Boolean isShowLegend) voidsetSubtitleColor(Color subtitleColor) voidvoidsetTitleColor(Color titleColor) voidsetTitlePosition(EdgeEnum titlePosition) Sets the title position relative to the chart.Methods inherited from interface net.sf.jasperreports.engine.JRAnchor
getAnchorNameExpression, getBookmarkLevel, getBookmarkLevelExpressionMethods inherited from interface net.sf.jasperreports.engine.JRBoxContainer
getDefaultLineColor, getLineBoxMethods inherited from interface net.sf.jasperreports.engine.JRCloneable
cloneMethods inherited from interface net.sf.jasperreports.engine.JRCommonElement
getBackcolor, getForecolor, getHeight, getModeValue, getOwnBackcolor, getOwnForecolor, getOwnModeValue, getWidth, setBackcolor, setForecolor, setModeMethods inherited from interface net.sf.jasperreports.engine.JRElement
clone, collectExpressions, getElementGroup, getKey, getPositionTypeValue, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchTypeValue, getStyleExpression, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setXMethods inherited from interface net.sf.jasperreports.engine.JREvaluation
getEvaluationGroup, getEvaluationTimeValueMethods inherited from interface net.sf.jasperreports.engine.JRHyperlink
getHyperlinkAnchorExpression, getHyperlinkPageExpression, getHyperlinkParameters, getHyperlinkReferenceExpression, getHyperlinkTarget, getHyperlinkTargetValue, getHyperlinkTooltipExpression, getHyperlinkTypeValue, getHyperlinkWhenExpression, getLinkTarget, getLinkTypeMethods inherited from interface net.sf.jasperreports.engine.JRIdentifiable
getUUIDMethods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder
getParentProperties, getPropertiesMap, hasPropertiesMethods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleNameReferenceMethods inherited from interface net.sf.jasperreports.engine.JRVisitable
visit
-
Field Details
-
PROPERTY_CHART_RENDER_TYPE
Specifies the type of chart rendering. Possible values aredraw,imageandsvg. If the rendering type isdrawa vector image is constructed, using theJFreeChartdedicated APIs. For type image, a PNG encoded image will be generated, while for type svg, an SVG snippet will be generated.Defaults to
draw.- See Also:
-
PROPERTY_CHART_THEME
Property used to specify the chart theme name.- See Also:
-
CHART_TYPE_AREA
static final byte CHART_TYPE_AREA- See Also:
-
CHART_TYPE_BAR3D
static final byte CHART_TYPE_BAR3D- See Also:
-
CHART_TYPE_BAR
static final byte CHART_TYPE_BAR- See Also:
-
CHART_TYPE_BUBBLE
static final byte CHART_TYPE_BUBBLE- See Also:
-
CHART_TYPE_CANDLESTICK
static final byte CHART_TYPE_CANDLESTICK- See Also:
-
CHART_TYPE_HIGHLOW
static final byte CHART_TYPE_HIGHLOW- See Also:
-
CHART_TYPE_LINE
static final byte CHART_TYPE_LINE- See Also:
-
CHART_TYPE_PIE3D
static final byte CHART_TYPE_PIE3D- See Also:
-
CHART_TYPE_PIE
static final byte CHART_TYPE_PIE- See Also:
-
CHART_TYPE_SCATTER
static final byte CHART_TYPE_SCATTER- See Also:
-
CHART_TYPE_STACKEDBAR3D
static final byte CHART_TYPE_STACKEDBAR3D- See Also:
-
CHART_TYPE_STACKEDBAR
static final byte CHART_TYPE_STACKEDBAR- See Also:
-
CHART_TYPE_XYAREA
static final byte CHART_TYPE_XYAREA- See Also:
-
CHART_TYPE_XYBAR
static final byte CHART_TYPE_XYBAR- See Also:
-
CHART_TYPE_XYLINE
static final byte CHART_TYPE_XYLINE- See Also:
-
CHART_TYPE_TIMESERIES
static final byte CHART_TYPE_TIMESERIES- See Also:
-
CHART_TYPE_METER
static final byte CHART_TYPE_METER- See Also:
-
CHART_TYPE_THERMOMETER
static final byte CHART_TYPE_THERMOMETER- See Also:
-
CHART_TYPE_MULTI_AXIS
static final byte CHART_TYPE_MULTI_AXIS- See Also:
-
CHART_TYPE_STACKEDAREA
static final byte CHART_TYPE_STACKEDAREA- See Also:
-
CHART_TYPE_GANTT
static final byte CHART_TYPE_GANTT- See Also:
-
RENDER_TYPE_DRAW
rendering type- See Also:
-
RENDER_TYPE_IMAGE
- See Also:
-
RENDER_TYPE_SVG
- See Also:
-
-
Method Details
-
getShowLegend
Boolean getShowLegend() -
setShowLegend
-
getTitleExpression
JRExpression getTitleExpression()Gets the expression whose evaluation will form the title. -
getTitleFont
JRFont getTitleFont() -
getTitlePositionValue
EdgeEnum getTitlePositionValue()Gets the title position relative to the chart. -
setTitlePosition
Sets the title position relative to the chart. -
getTitleColor
Color getTitleColor() -
getOwnTitleColor
Color getOwnTitleColor() -
setTitleColor
-
getSubtitleExpression
JRExpression getSubtitleExpression()Gets the expression whose evaluation will form the subtitle. -
getSubtitleFont
JRFont getSubtitleFont() -
getSubtitleColor
Color getSubtitleColor() -
getOwnSubtitleColor
Color getOwnSubtitleColor() -
setSubtitleColor
-
getLegendColor
Color getLegendColor() -
getOwnLegendColor
Color getOwnLegendColor() -
setLegendColor
-
getOwnLegendBackgroundColor
Color getOwnLegendBackgroundColor() -
getLegendBackgroundColor
Color getLegendBackgroundColor() -
setLegendBackgroundColor
-
getLegendFont
JRFont getLegendFont() -
getLegendPositionValue
EdgeEnum getLegendPositionValue() -
setLegendPosition
-
getDataset
JRChartDataset getDataset()Gets the chart dataset. Most chart types have different dataset structures, depending on the chart type. -
getPlot
JRChartPlot getPlot()Gets the chart plot. Plots are used to define various chart visual properties, such as colors and transparency. -
getChartType
byte getChartType()Gets the chart type. It must be one of the chart type constants in this class. -
getCustomizerClass
String getCustomizerClass()Gets a user specified chart customizer class name.- See Also:
-
getRenderType
String getRenderType() -
setRenderType
-
getTheme
String getTheme() -
setTheme
-