Package net.sf.jasperreports.charts
Interface JRChart
-
- All Superinterfaces:
Cloneable
,JRAnchor
,JRBoxContainer
,JRChild
,JRCloneable
,JRCommonElement
,JRElement
,JREvaluation
,JRHyperlink
,JRIdentifiable
,JRPropertiesHolder
,JRStyleContainer
,JRVisitable
- All Known Implementing Classes:
JRBaseChart
,JRDesignChart
,JRFillChart
,JRFillChartForAxis
public interface JRChart extends JRElement, JREvaluation, JRAnchor, JRHyperlink, JRBoxContainer
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
Fields Modifier and Type Field Description static String
PROPERTY_CHART_RENDER_TYPE
Specifies the type of chart rendering.static String
PROPERTY_CHART_THEME
Property used to specify the chart theme name.static String
RENDER_TYPE_DRAW
rendering typestatic String
RENDER_TYPE_IMAGE
static String
RENDER_TYPE_SVG
-
Fields inherited from interface net.sf.jasperreports.engine.JRAnchor
NO_BOOKMARK
-
Fields inherited from interface net.sf.jasperreports.engine.JRElement
PROPERTY_ELEMENT_TEMPLATE_POPULATE_STYLE
-
-
Method Summary
-
Methods inherited from interface net.sf.jasperreports.engine.JRAnchor
getAnchorNameExpression, getBookmarkLevel, getBookmarkLevelExpression
-
Methods inherited from interface net.sf.jasperreports.engine.JRBoxContainer
getDefaultLineColor, getLineBox
-
Methods inherited from interface net.sf.jasperreports.engine.JRCloneable
clone
-
Methods inherited from interface net.sf.jasperreports.engine.JRCommonElement
getBackcolor, getForecolor, getHeight, getKey, getMode, getOwnBackcolor, getOwnForecolor, getOwnMode, getWidth, setBackcolor, setForecolor, setMode
-
Methods inherited from interface net.sf.jasperreports.engine.JRElement
clone, collectExpressions, getElementGroup, getPositionType, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchType, getStyleExpression, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setX
-
Methods inherited from interface net.sf.jasperreports.engine.JREvaluation
getEvaluationGroup, getEvaluationTime
-
Methods inherited from interface net.sf.jasperreports.engine.JRHyperlink
getHyperlinkAnchorExpression, getHyperlinkPageExpression, getHyperlinkParameters, getHyperlinkReferenceExpression, getHyperlinkTarget, getHyperlinkTooltipExpression, getHyperlinkType, getHyperlinkWhenExpression, getLinkTarget, getLinkType
-
Methods inherited from interface net.sf.jasperreports.engine.JRIdentifiable
getUUID
-
Methods inherited from interface net.sf.jasperreports.engine.JRPropertiesHolder
getParentProperties, getPropertiesMap, hasProperties
-
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getDefaultStyleProvider, getStyle, getStyleName, getStyleNameReference
-
Methods inherited from interface net.sf.jasperreports.engine.JRVisitable
visit
-
-
-
-
Field Detail
-
PROPERTY_CHART_RENDER_TYPE
static final String PROPERTY_CHART_RENDER_TYPE
Specifies the type of chart rendering. Possible values aredraw
,image
andsvg
. If the rendering type isdraw
a vector image is constructed, using theJFreeChart
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
.- See Also:
- Constant Field Values
-
PROPERTY_CHART_THEME
static final String PROPERTY_CHART_THEME
Property used to specify the chart theme name.- See Also:
- Constant Field Values
-
RENDER_TYPE_DRAW
static final String RENDER_TYPE_DRAW
rendering type- See Also:
- Constant Field Values
-
RENDER_TYPE_IMAGE
static final String RENDER_TYPE_IMAGE
- See Also:
- Constant Field Values
-
RENDER_TYPE_SVG
static final String RENDER_TYPE_SVG
- See Also:
- Constant Field Values
-
-
Method Detail
-
getChartsStyleResolver
default ChartsStyleResolver getChartsStyleResolver()
-
getShowLegend
Boolean getShowLegend()
-
setShowLegend
void setShowLegend(Boolean isShowLegend)
-
getTitleExpression
JRExpression getTitleExpression()
Gets the expression whose evaluation will form the title.
-
getTitleFont
JRFont getTitleFont()
-
getTitlePosition
EdgeEnum getTitlePosition()
Gets the title position relative to the chart.
-
setTitlePosition
void setTitlePosition(EdgeEnum titlePosition)
Sets the title position relative to the chart.
-
getTitleColor
Color getTitleColor()
-
getOwnTitleColor
Color getOwnTitleColor()
-
setTitleColor
void setTitleColor(Color titleColor)
-
getSubtitleExpression
JRExpression getSubtitleExpression()
Gets the expression whose evaluation will form the subtitle.
-
getSubtitleFont
JRFont getSubtitleFont()
-
getSubtitleColor
Color getSubtitleColor()
-
getOwnSubtitleColor
Color getOwnSubtitleColor()
-
setSubtitleColor
void setSubtitleColor(Color subtitleColor)
-
getLegendColor
Color getLegendColor()
-
getOwnLegendColor
Color getOwnLegendColor()
-
setLegendColor
void setLegendColor(Color legendColor)
-
getOwnLegendBackgroundColor
Color getOwnLegendBackgroundColor()
-
getLegendBackgroundColor
Color getLegendBackgroundColor()
-
setLegendBackgroundColor
void setLegendBackgroundColor(Color legendBackgroundColor)
-
getLegendFont
JRFont getLegendFont()
-
getLegendPosition
EdgeEnum getLegendPosition()
-
setLegendPosition
void setLegendPosition(EdgeEnum legendPosition)
-
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
ChartTypeEnum 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:
JRChartCustomizer
-
getRenderType
String getRenderType()
-
setRenderType
void setRenderType(String renderType)
-
getTheme
String getTheme()
-
setTheme
void setTheme(String theme)
-
-