Class JRBaseChart
- All Implemented Interfaces:
Serializable,Cloneable,JRChart,JRChangeEventsSupport,JRAnchor,JRBoxContainer,JRChild,JRCloneable,JRCommonElement,JRElement,JREvaluation,JRHyperlink,JRIdentifiable,JRPropertiesHolder,JRStyleContainer,JRVisitable
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JRExpressionprotected intThe bookmark level for the anchor associated with this chart.protected JRExpressionprotected ChartTypeEnumprotected Stringprotected JRChartDatasetprotected Stringprotected EvaluationTimeEnumstatic final Stringprotected JRExpressionprotected JRExpressionprotected JRExpressionprotected JRExpressionprotected Colorprotected Colorprotected JRFontprotected EdgeEnumprotected JRLineBoxprotected Stringprotected Stringprotected JRChartPlotstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected Stringprotected Booleanprotected Colorprotected JRExpressionprotected JRFontprotected Stringprotected Colorprotected JRExpressionprotected JRFontprotected EdgeEnumFields inherited from class net.sf.jasperreports.engine.base.JRBaseElement
backcolor, defaultStyleProvider, elementGroup, forecolor, height, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, key, mode, parentStyle, parentStyleNameReference, positionType, printWhenExpression, printWhenGroupChanges, PROPERTY_POSITION_TYPE, PROPERTY_PRINT_IN_FIRST_WHOLE_BAND, PROPERTY_PRINT_REPEATED_VALUES, PROPERTY_PRINT_WHEN_DETAIL_OVERFLOWS, PROPERTY_REMOVE_LINE_WHEN_BLANK, PROPERTY_STRETCH_TYPE, PROPERTY_WIDTH, PROPERTY_X, stretchType, styleExpression, uuid, width, x, yFields inherited from interface net.sf.jasperreports.engine.JRAnchor
NO_BOOKMARKFields inherited from interface net.sf.jasperreports.charts.JRChart
PROPERTY_CHART_RENDER_TYPE, PROPERTY_CHART_THEME, RENDER_TYPE_DRAW, RENDER_TYPE_IMAGE, RENDER_TYPE_SVGFields inherited from interface net.sf.jasperreports.engine.JRElement
PROPERTY_ELEMENT_TEMPLATE_POPULATE_STYLE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJRBaseChart(JRChart chart, ChartsBaseObjectFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionclone()voidcollectExpressions(JRExpressionCollector collector) Returns an expression whose value represents the anchor name.intReturns the level of the bookmark corresponding to the anchor.Returns an expression whose value represents the bookmark level (starting from 1) corresponding to this anchor.Gets the chart type.Gets a user specified chart customizer class name.Gets the chart dataset.Gets the evaluation group for this text field.Gets the evaluation time for this text field.Returns the expression whose value represents the anchor.Returns an integer representing the page index of the link.Returns the list of hyperlink parameters.Returns the expression whose value represents the hyperlink reference.Retrieves the hyperlink target for the element.Returns the expression which will generate the hyperlink tooltip.Retrieves the hyperlink type for the element.Returns the expression that is evaluated in order to decide if the hyperlink should be displayed.Returns the hyperlink target name.Returns the hyperlink type.getMode()Returns the element transparency mode.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.voidMethods inherited from class net.sf.jasperreports.engine.base.JRBaseElement
clone, clone, getBackcolor, getBaseStyle, getDefaultStyleProvider, getElementGroup, getEventSupport, getForecolor, getHeight, getKey, getOwnBackcolor, getOwnForecolor, getOwnMode, getParentProperties, getPositionType, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertiesMap, getPropertyExpressions, getStretchType, getStyle, getStyleExpression, getStyleNameReference, getStyleResolver, getUUID, getWidth, getX, getY, hasProperties, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setBackcolor, setForecolor, setMode, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setUUID, setWidth, setXMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.jasperreports.charts.JRChart
getChartsStyleResolverMethods inherited from interface net.sf.jasperreports.engine.JRCommonElement
getBackcolor, getForecolor, getHeight, getKey, getOwnBackcolor, getOwnForecolor, getOwnMode, getWidth, setBackcolor, setForecolor, setModeMethods inherited from interface net.sf.jasperreports.engine.JRElement
clone, getElementGroup, getPositionType, getPrintWhenExpression, getPrintWhenGroupChanges, getPropertyExpressions, getStretchType, getStyleExpression, getX, getY, isPrintInFirstWholeBand, isPrintRepeatedValues, isPrintWhenDetailOverflows, isRemoveLineWhenBlank, setPositionType, setPrintInFirstWholeBand, setPrintRepeatedValues, setPrintWhenDetailOverflows, setRemoveLineWhenBlank, setStretchType, setWidth, setXMethods 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, getStyleName, getStyleNameReference
-
Field Details
-
EXCEPTION_MESSAGE_KEY_CHART_TYPE_NOT_SUPPORTED
- See Also:
-
PROPERTY_LEGEND_BACKGROUND_COLOR
- See Also:
-
PROPERTY_LEGEND_COLOR
- See Also:
-
PROPERTY_LEGEND_POSITION
- See Also:
-
PROPERTY_SHOW_LEGEND
- See Also:
-
PROPERTY_SUBTITLE_COLOR
- See Also:
-
PROPERTY_TITLE_COLOR
- See Also:
-
PROPERTY_TITLE_POSITION
- See Also:
-
PROPERTY_RENDER_TYPE
- See Also:
-
PROPERTY_THEME
- See Also:
-
chartType
-
showLegend
-
evaluationTime
-
linkType
-
linkTarget
-
titleColor
-
subtitleColor
-
legendColor
-
legendBackgroundColor
-
legendPosition
-
titlePosition
-
renderType
-
theme
-
lineBox
-
titleFont
-
subtitleFont
-
legendFont
-
customizerClass
-
evaluationGroup
-
titleExpression
-
subtitleExpression
-
anchorNameExpression
-
bookmarkLevelExpression
-
hyperlinkReferenceExpression
-
hyperlinkWhenExpression
-
hyperlinkAnchorExpression
-
hyperlinkPageExpression
-
dataset
-
plot
-
bookmarkLevel
protected int bookmarkLevelThe bookmark level for the anchor associated with this chart.- See Also:
-
-
Constructor Details
-
JRBaseChart
-
-
Method Details
-
getShowLegend
- Specified by:
getShowLegendin interfaceJRChart
-
setShowLegend
- Specified by:
setShowLegendin interfaceJRChart
-
getEvaluationTime
Description copied from interface:JREvaluationGets the evaluation time for this text field.- Specified by:
getEvaluationTimein interfaceJREvaluation- Returns:
- one of the evaluation time constants in
JRExpression
-
getEvaluationGroup
Description copied from interface:JREvaluationGets the evaluation group for this text field. Used only when evaluation time is group.- Specified by:
getEvaluationGroupin interfaceJREvaluation- See Also:
-
getLineBox
- Specified by:
getLineBoxin interfaceJRBoxContainer
-
getTitleFont
- Specified by:
getTitleFontin interfaceJRChart
-
getTitlePosition
Description copied from interface:JRChartGets the title position relative to the chart.- Specified by:
getTitlePositionin interfaceJRChart
-
setTitlePosition
Description copied from interface:JRChartSets the title position relative to the chart.- Specified by:
setTitlePositionin interfaceJRChart
-
getTitleColor
- Specified by:
getTitleColorin interfaceJRChart
-
getOwnTitleColor
- Specified by:
getOwnTitleColorin interfaceJRChart
-
setTitleColor
- Specified by:
setTitleColorin interfaceJRChart
-
getSubtitleFont
- Specified by:
getSubtitleFontin interfaceJRChart
-
getOwnSubtitleColor
- Specified by:
getOwnSubtitleColorin interfaceJRChart
-
getSubtitleColor
- Specified by:
getSubtitleColorin interfaceJRChart
-
setSubtitleColor
- Specified by:
setSubtitleColorin interfaceJRChart
-
getLegendBackgroundColor
- Specified by:
getLegendBackgroundColorin interfaceJRChart
-
getOwnLegendBackgroundColor
- Specified by:
getOwnLegendBackgroundColorin interfaceJRChart
-
getOwnLegendColor
- Specified by:
getOwnLegendColorin interfaceJRChart
-
getLegendColor
- Specified by:
getLegendColorin interfaceJRChart
-
getLegendFont
- Specified by:
getLegendFontin interfaceJRChart
-
setLegendBackgroundColor
- Specified by:
setLegendBackgroundColorin interfaceJRChart
-
setLegendColor
- Specified by:
setLegendColorin interfaceJRChart
-
getLegendPosition
- Specified by:
getLegendPositionin interfaceJRChart
-
setLegendPosition
- Specified by:
setLegendPositionin interfaceJRChart
-
getHyperlinkType
Description copied from interface:JRHyperlinkRetrieves the hyperlink type for the element.The actual hyperlink type is determined by
getLinkType(). This method can is used to determine whether the hyperlink type is one of the built-in types or a custom type. When hyperlink is of custom type,CUSTOMis returned.- Specified by:
getHyperlinkTypein interfaceJRHyperlink- Returns:
- one of the hyperlink type constants
- See Also:
-
getHyperlinkTarget
Description copied from interface:JRHyperlinkRetrieves the hyperlink target for the element.The actual hyperlink target is determined by
getLinkTarget(). This method can is used to determine whether the hyperlink target is one of the built-in target names or a custom one. When hyperlink has a custom target name,HyperlinkTargetEnum.CUSTOMis returned.- Specified by:
getHyperlinkTargetin interfaceJRHyperlink- Returns:
- one of the hyperlink target constants
- See Also:
-
getTitleExpression
Description copied from interface:JRChartGets the expression whose evaluation will form the title.- Specified by:
getTitleExpressionin interfaceJRChart
-
getSubtitleExpression
Description copied from interface:JRChartGets the expression whose evaluation will form the subtitle.- Specified by:
getSubtitleExpressionin interfaceJRChart
-
getBookmarkLevelExpression
Description copied from interface:JRAnchorReturns an expression whose value represents the bookmark level (starting from 1) corresponding to this anchor. When the expression is set and its value is not null, it will override the value of the bookmarkLevel attribute.- Specified by:
getBookmarkLevelExpressionin interfaceJRAnchor
-
getAnchorNameExpression
Description copied from interface:JRAnchorReturns an expression whose value represents the anchor name.- Specified by:
getAnchorNameExpressionin interfaceJRAnchor
-
getHyperlinkReferenceExpression
Description copied from interface:JRHyperlinkReturns the expression whose value represents the hyperlink reference. It is only used when the hyperlink type is reference or anchor- Specified by:
getHyperlinkReferenceExpressionin interfaceJRHyperlink
-
getHyperlinkWhenExpression
Description copied from interface:JRHyperlinkReturns the expression that is evaluated in order to decide if the hyperlink should be displayed. This expression always returns a boolean value.- Specified by:
getHyperlinkWhenExpressionin interfaceJRHyperlink
-
getHyperlinkAnchorExpression
Description copied from interface:JRHyperlinkReturns the expression whose value represents the anchor. It is only used when the hyperlink type is anchor.- Specified by:
getHyperlinkAnchorExpressionin interfaceJRHyperlink
-
getHyperlinkPageExpression
Description copied from interface:JRHyperlinkReturns an integer representing the page index of the link. It is only used when the hyperlink type is page. If the expression does not evaluate to an integer, an exception will be thrown.- Specified by:
getHyperlinkPageExpressionin interfaceJRHyperlink
-
getDataset
Description copied from interface:JRChartGets the chart dataset. Most chart types have different dataset structures, depending on the chart type.- Specified by:
getDatasetin interfaceJRChart
-
getPlot
Description copied from interface:JRChartGets the chart plot. Plots are used to define various chart visual properties, such as colors and transparency. -
getChartType
Description copied from interface:JRChartGets the chart type. It must be one of the chart type constants in this class.- Specified by:
getChartTypein interfaceJRChart
-
getRenderType
- Specified by:
getRenderTypein interfaceJRChart
-
setRenderType
- Specified by:
setRenderTypein interfaceJRChart
-
getTheme
-
setTheme
-
collectExpressions
- Specified by:
collectExpressionsin interfaceJRElement
-
visit
- Specified by:
visitin interfaceJRVisitable
-
getBookmarkLevel
public int getBookmarkLevel()Description copied from interface:JRAnchorReturns the level of the bookmark corresponding to the anchor.- Specified by:
getBookmarkLevelin interfaceJRAnchor- Returns:
- the level of the bookmark corresponding to the anchor (starting from 1)
or
NO_BOOKMARKif no bookmark should be created for this anchor
-
getCustomizerClass
Description copied from interface:JRChartGets a user specified chart customizer class name.- Specified by:
getCustomizerClassin interfaceJRChart- See Also:
-
getMode
Description copied from interface:JRCommonElementReturns the element transparency mode. The default value depends on the type of the report element. Graphic elements like rectangles and lines are opaque by default, but the images are transparent. Both static texts and text fields are transparent by default, and so are the subreport elements.- Specified by:
getModein interfaceJRCommonElement- Overrides:
getModein classJRBaseElement
-
getLinkType
Description copied from interface:JRHyperlinkReturns the hyperlink type.The type can be one of the built-in types (Reference, LocalAnchor, LocalPage, RemoteAnchor, RemotePage), or can be an arbitrary type.
- Specified by:
getLinkTypein interfaceJRHyperlink- Returns:
- the hyperlink type
-
getLinkTarget
Description copied from interface:JRHyperlinkReturns the hyperlink target name.The type can be one of the built-in names (Self, Blank, Top, Parent), or can be an arbitrary name.
- Specified by:
getLinkTargetin interfaceJRHyperlink- Returns:
- the hyperlink target name
-
getHyperlinkParameters
Description copied from interface:JRHyperlinkReturns the list of hyperlink parameters.The parameters can be used by custom hyperlink types to generate dynamic links.
- Specified by:
getHyperlinkParametersin interfaceJRHyperlink- Returns:
- the list of hyperlink parameters
-
getHyperlinkTooltipExpression
Description copied from interface:JRHyperlinkReturns the expression which will generate the hyperlink tooltip.- Specified by:
getHyperlinkTooltipExpressionin interfaceJRHyperlink- Returns:
- the expression which will generate the hyperlink tooltip
-
getDefaultLineColor
- Specified by:
getDefaultLineColorin interfaceJRBoxContainer
-
clone
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classJRBaseElement
-