Class StandardChartSettings
- All Implemented Interfaces:
Serializable,Cloneable,ChartSettings,JRChangeEventsSupport,JRAnchor,JRCloneable,JRHyperlink
- Author:
- Sanda Zaharia (shertage@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JRExpressionprotected Colorprotected intThe bookmark level for the anchor associated with this chart.protected JRExpressionprotected Stringprotected JRExpressionprotected JRExpressionprotected List<JRHyperlinkParameter> protected JRExpressionprotected JRExpressionprotected JRExpressionprotected Colorprotected Colorprotected JRFontprotected EdgeEnumprotected Stringprotected Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected Stringprotected Booleanprotected Colorprotected JRExpressionprotected JRFontprotected Colorprotected JRExpressionprotected JRFontprotected EdgeEnumFields inherited from interface net.sf.jasperreports.engine.JRAnchor
NO_BOOKMARK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHyperlinkParameter(JRHyperlinkParameter parameter) Adds a custom hyperlink parameter.clone()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 a user specified chart customizer class name.Returns the property change support object for this instance.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 list of custom 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.voidremoveHyperlinkParameter(String parameterName) Removes a custom hyperlink parameter.voidremoveHyperlinkParameter(JRHyperlinkParameter parameter) Removes a custom hyperlink parameter.voidsetAnchorNameExpression(JRExpression anchorNameExpression) voidsetBackcolor(Color backcolor) voidsetBookmarkLevel(int bookmarkLevel) voidsetBookmarkLevelExpression(JRExpression bookmarkLevelExpression) voidsetCustomizerClass(String customizerClass) voidsetHyperlinkAnchorExpression(JRExpression hyperlinkAnchorExpression) voidsetHyperlinkPageExpression(JRExpression hyperlinkPageExpression) voidsetHyperlinkReferenceExpression(JRExpression hyperlinkReferenceExpression) voidsetHyperlinkTooltipExpression(JRExpression hyperlinkTooltipExpression) voidsetHyperlinkWhenExpression(JRExpression hyperlinkWhenExpression) voidsetLegendBackgroundColor(Color legendBackgroundColor) voidsetLegendColor(Color legendColor) voidsetLegendFont(JRFont legendFont) voidsetLegendPosition(EdgeEnum legendPosition) voidsetLinkTarget(String linkTarget) voidsetLinkType(String linkType) voidsetRenderType(String renderType) voidsetShowLegend(Boolean isShowLegend) voidsetSubtitleColor(Color subtitleColor) voidsetSubtitleExpression(JRExpression subtitleExpression) voidsetSubtitleFont(JRFont subtitleFont) voidsetTitleColor(Color titleColor) voidsetTitleExpression(JRExpression titleExpression) voidsetTitleFont(JRFont titleFont) voidsetTitlePosition(EdgeEnum titlePosition)
-
Field Details
-
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_BOOKMARK_LEVEL
- See Also:
-
PROPERTY_BACKCOLOR
- See Also:
-
PROPERTY_ANCHOR_NAME_EXPRESSION
- See Also:
-
PROPERTY_BOOKMARK_LEVEL_EXPRESSION
- See Also:
-
PROPERTY_EVALUATION_GROUP
- See Also:
-
PROPERTY_EVALUATION_TIME
- See Also:
-
PROPERTY_CHART_TYPE
- See Also:
-
PROPERTY_LEGEND_FONT
- See Also:
-
PROPERTY_SUBTITLE_EXPRESSION
- See Also:
-
PROPERTY_SUBTITLE_FONT
- See Also:
-
PROPERTY_TITLE_EXPRESSION
- See Also:
-
PROPERTY_TITLE_FONT
- See Also:
-
PROPERTY_HYPERLINK_ANCHOR_EXPRESSION
- See Also:
-
PROPERTY_HYPERLINK_PAGE_EXPRESSION
- See Also:
-
PROPERTY_HYPERLINK_REFERENCE_EXPRESSION
- See Also:
-
PROPERTY_HYPERLINK_WHEN_EXPRESSION
- See Also:
-
PROPERTY_HYPERLINK_TARGET
- See Also:
-
PROPERTY_LINK_TARGET
- See Also:
-
PROPERTY_HYPERLINK_TOOLTIP_EXPRESSION
- See Also:
-
PROPERTY_LINK_TYPE
- See Also:
-
PROPERTY_HYPERLINK_PARAMETERS
- See Also:
-
PROPERTY_CUSTOMIZER_CLASS
- See Also:
-
showLegend
-
linkType
-
linkTarget
-
hyperlinkParameters
-
backcolor
-
titleColor
-
subtitleColor
-
legendColor
-
legendBackgroundColor
-
legendPosition
-
titlePosition
-
renderType
-
titleFont
-
subtitleFont
-
legendFont
-
titleExpression
-
subtitleExpression
-
anchorNameExpression
-
bookmarkLevelExpression
-
hyperlinkReferenceExpression
-
hyperlinkWhenExpression
-
hyperlinkAnchorExpression
-
hyperlinkPageExpression
-
hyperlinkTooltipExpression
-
customizerClass
-
bookmarkLevel
protected int bookmarkLevelThe bookmark level for the anchor associated with this chart.- See Also:
-
-
Constructor Details
-
StandardChartSettings
public StandardChartSettings() -
StandardChartSettings
-
-
Method Details
-
getShowLegend
- Specified by:
getShowLegendin interfaceChartSettings
-
setShowLegend
-
getBackcolor
- Specified by:
getBackcolorin interfaceChartSettings
-
setBackcolor
-
getTitleFont
- Specified by:
getTitleFontin interfaceChartSettings
-
getTitlePosition
- Specified by:
getTitlePositionin interfaceChartSettings
-
setTitlePosition
-
getTitleColor
- Specified by:
getTitleColorin interfaceChartSettings
-
setTitleColor
-
getSubtitleFont
- Specified by:
getSubtitleFontin interfaceChartSettings
-
getSubtitleColor
- Specified by:
getSubtitleColorin interfaceChartSettings
-
setSubtitleColor
-
getLegendBackgroundColor
- Specified by:
getLegendBackgroundColorin interfaceChartSettings
-
getLegendColor
- Specified by:
getLegendColorin interfaceChartSettings
-
getLegendFont
- Specified by:
getLegendFontin interfaceChartSettings
-
setLegendBackgroundColor
-
setLegendColor
-
getLegendPosition
- Specified by:
getLegendPositionin interfaceChartSettings
-
setLegendPosition
-
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
- Specified by:
getTitleExpressionin interfaceChartSettings
-
getSubtitleExpression
- Specified by:
getSubtitleExpressionin interfaceChartSettings
-
getAnchorNameExpression
Description copied from interface:JRAnchorReturns an expression whose value represents the anchor name.- Specified by:
getAnchorNameExpressionin interfaceJRAnchor
-
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
-
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
-
getRenderType
- Specified by:
getRenderTypein interfaceChartSettings
-
setRenderType
-
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
-
setBookmarkLevel
public void setBookmarkLevel(int bookmarkLevel) -
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
-
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
-
getCustomizerClass
Description copied from interface:ChartSettingsGets a user specified chart customizer class name.- Specified by:
getCustomizerClassin interfaceChartSettings- Returns:
- the customizerClass
- See Also:
-
setLinkType
- Parameters:
linkType- the linkType to set
-
setLinkTarget
- Parameters:
linkTarget- the linkTarget to set
-
setTitleFont
- Parameters:
titleFont- the titleFont to set
-
setSubtitleFont
- Parameters:
subtitleFont- the subtitleFont to set
-
setLegendFont
- Parameters:
legendFont- the legendFont to set
-
setTitleExpression
- Parameters:
titleExpression- the titleExpression to set
-
setSubtitleExpression
- Parameters:
subtitleExpression- the subtitleExpression to set
-
setAnchorNameExpression
- Parameters:
anchorNameExpression- the anchorNameExpression to set
-
setBookmarkLevelExpression
- Parameters:
bookmarkLevelExpression- the bookmarkLevelExpression to set
-
setHyperlinkReferenceExpression
- Parameters:
hyperlinkReferenceExpression- the hyperlinkReferenceExpression to set
-
setHyperlinkWhenExpression
- Parameters:
hyperlinkWhenExpression- the hyperlinkWhenExpression to set
-
setHyperlinkAnchorExpression
- Parameters:
hyperlinkAnchorExpression- the hyperlinkAnchorExpression to set
-
setHyperlinkPageExpression
- Parameters:
hyperlinkPageExpression- the hyperlinkPageExpression to set
-
setHyperlinkTooltipExpression
- Parameters:
hyperlinkTooltipExpression- the hyperlinkTooltipExpression to set
-
setCustomizerClass
- Parameters:
customizerClass- the customizerClass to set
-
collectExpressions
-
clone
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classObject
-
getEventSupport
Description copied from interface:JRChangeEventsSupportReturns the property change support object for this instance.- Specified by:
getEventSupportin interfaceJRChangeEventsSupport- Returns:
- the property change support object for this instance
-
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
-
getHyperlinkParametersList
Returns the list of custom hyperlink parameters.- Returns:
- the list of custom hyperlink parameters
-
addHyperlinkParameter
Adds a custom hyperlink parameter.- Parameters:
parameter- the parameter to add
-
removeHyperlinkParameter
Removes a custom hyperlink parameter.- Parameters:
parameter- the parameter to remove
-
removeHyperlinkParameter
Removes a custom hyperlink parameter.If multiple parameters having the specified name exist, all of them will be removed
- Parameters:
parameterName- the parameter name
-