Class FillChartSettings
- java.lang.Object
-
- net.sf.jasperreports.components.charts.FillChartSettings
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,ChartSettings,JRAnchor,JRCloneable,JRHyperlink
public class FillChartSettings extends java.lang.Object implements ChartSettings
- Author:
- Sanda Zaharia (shertage@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ChartSettingsparent-
Fields inherited from interface net.sf.jasperreports.engine.JRAnchor
NO_BOOKMARK
-
-
Constructor Summary
Constructors Constructor Description FillChartSettings(ChartSettings chartSettings, JRFillObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Objectclone()voidcollectExpressions(JRExpressionCollector collector)JRExpressiongetAnchorNameExpression()Returns an expression whose value represents the anchor name.java.awt.ColorgetBackcolor()intgetBookmarkLevel()Returns the level of the bookmark corresponding to the anchor.JRExpressiongetBookmarkLevelExpression()Returns an expression whose value represents the bookmark level (starting from 1) corresponding to this anchor.bytegetChartType()java.lang.StringgetCustomizerClass()Gets a user specified chart customizer class name.JRExpressiongetHyperlinkAnchorExpression()Returns the expression whose value represents the anchor.JRExpressiongetHyperlinkPageExpression()Returns an integer representing the page index of the link.JRHyperlinkParameter[]getHyperlinkParameters()Returns the list of hyperlink parameters.JRExpressiongetHyperlinkReferenceExpression()Returns the expression whose value represents the hyperlink reference.bytegetHyperlinkTarget()Deprecated.Replaced bygetHyperlinkTargetValue().HyperlinkTargetEnumgetHyperlinkTargetValue()Retrieves the hyperlink target for the element.JRExpressiongetHyperlinkTooltipExpression()Returns the expression which will generate the hyperlink tooltip.HyperlinkTypeEnumgetHyperlinkTypeValue()Retrieves the hyperlink type for the element.JRExpressiongetHyperlinkWhenExpression()Returns the expression that is evaluated in order to decide if the hyperlink should be displayed.java.awt.ColorgetLegendBackgroundColor()java.awt.ColorgetLegendColor()JRFontgetLegendFont()EdgeEnumgetLegendPosition()java.lang.StringgetLinkTarget()Returns the hyperlink target name.java.lang.StringgetLinkType()Returns the hyperlink type.java.lang.StringgetRenderType()java.lang.BooleangetShowLegend()java.awt.ColorgetSubtitleColor()JRExpressiongetSubtitleExpression()JRFontgetSubtitleFont()java.awt.ColorgetTitleColor()JRExpressiongetTitleExpression()JRFontgetTitleFont()EdgeEnumgetTitlePosition()
-
-
-
Field Detail
-
parent
protected ChartSettings parent
-
-
Constructor Detail
-
FillChartSettings
public FillChartSettings(ChartSettings chartSettings, JRFillObjectFactory factory)
-
-
Method Detail
-
getAnchorNameExpression
public JRExpression getAnchorNameExpression()
Description copied from interface:JRAnchorReturns an expression whose value represents the anchor name.- Specified by:
getAnchorNameExpressionin interfaceJRAnchor- See Also:
JRAnchor.getAnchorNameExpression()
-
getBookmarkLevelExpression
public JRExpression 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- See Also:
JRAnchor.getBookmarkLevelExpression()
-
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 - See Also:
JRAnchor.getBookmarkLevel()
-
clone
public java.lang.Object clone()
- Specified by:
clonein interfaceJRCloneable- Overrides:
clonein classjava.lang.Object- See Also:
Object.clone()
-
getChartType
public byte getChartType()
- Specified by:
getChartTypein interfaceChartSettings- See Also:
ChartSettings.getChartType()
-
getLegendBackgroundColor
public java.awt.Color getLegendBackgroundColor()
- Specified by:
getLegendBackgroundColorin interfaceChartSettings- See Also:
ChartSettings.getLegendBackgroundColor()
-
getLegendColor
public java.awt.Color getLegendColor()
- Specified by:
getLegendColorin interfaceChartSettings- See Also:
ChartSettings.getLegendColor()
-
getLegendFont
public JRFont getLegendFont()
- Specified by:
getLegendFontin interfaceChartSettings- See Also:
ChartSettings.getLegendFont()
-
getLegendPosition
public EdgeEnum getLegendPosition()
- Specified by:
getLegendPositionin interfaceChartSettings- See Also:
ChartSettings.getLegendPosition()
-
getRenderType
public java.lang.String getRenderType()
- Specified by:
getRenderTypein interfaceChartSettings- See Also:
ChartSettings.getRenderType()
-
getShowLegend
public java.lang.Boolean getShowLegend()
- Specified by:
getShowLegendin interfaceChartSettings- See Also:
ChartSettings.getShowLegend()
-
getSubtitleColor
public java.awt.Color getSubtitleColor()
- Specified by:
getSubtitleColorin interfaceChartSettings- See Also:
ChartSettings.getSubtitleColor()
-
getSubtitleExpression
public JRExpression getSubtitleExpression()
- Specified by:
getSubtitleExpressionin interfaceChartSettings- See Also:
ChartSettings.getSubtitleExpression()
-
getSubtitleFont
public JRFont getSubtitleFont()
- Specified by:
getSubtitleFontin interfaceChartSettings- See Also:
ChartSettings.getSubtitleFont()
-
getTitleColor
public java.awt.Color getTitleColor()
- Specified by:
getTitleColorin interfaceChartSettings- See Also:
ChartSettings.getTitleColor()
-
getTitleExpression
public JRExpression getTitleExpression()
- Specified by:
getTitleExpressionin interfaceChartSettings- See Also:
ChartSettings.getTitleExpression()
-
getTitleFont
public JRFont getTitleFont()
- Specified by:
getTitleFontin interfaceChartSettings- See Also:
ChartSettings.getTitleFont()
-
getTitlePosition
public EdgeEnum getTitlePosition()
- Specified by:
getTitlePositionin interfaceChartSettings- See Also:
ChartSettings.getTitlePosition()
-
getHyperlinkAnchorExpression
public JRExpression 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- See Also:
JRHyperlink.getHyperlinkAnchorExpression()
-
getHyperlinkPageExpression
public JRExpression 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- See Also:
JRHyperlink.getHyperlinkPageExpression()
-
getHyperlinkParameters
public JRHyperlinkParameter[] 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
- See Also:
JRHyperlink.getHyperlinkParameters()
-
getHyperlinkReferenceExpression
public JRExpression 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- See Also:
JRHyperlink.getHyperlinkReferenceExpression()
-
getHyperlinkWhenExpression
public JRExpression 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- See Also:
JRHyperlink.getHyperlinkWhenExpression()
-
getHyperlinkTarget
public byte getHyperlinkTarget()
Deprecated.Replaced bygetHyperlinkTargetValue().- Specified by:
getHyperlinkTargetin interfaceJRHyperlink
-
getHyperlinkTargetValue
public HyperlinkTargetEnum getHyperlinkTargetValue()
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:
getHyperlinkTargetValuein interfaceJRHyperlink- Returns:
- one of the hyperlink target constants
- See Also:
JRHyperlink.getHyperlinkTargetValue()
-
getHyperlinkTooltipExpression
public JRExpression 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
- See Also:
JRHyperlink.getHyperlinkTooltipExpression()
-
getHyperlinkTypeValue
public HyperlinkTypeEnum getHyperlinkTypeValue()
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:
getHyperlinkTypeValuein interfaceJRHyperlink- Returns:
- one of the hyperlink type constants
- See Also:
JRHyperlink.getHyperlinkTypeValue()
-
getLinkTarget
public java.lang.String 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
- See Also:
JRHyperlink.getLinkTarget()
-
getLinkType
public java.lang.String 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
- See Also:
JRHyperlink.getLinkType()
-
getBackcolor
public java.awt.Color getBackcolor()
- Specified by:
getBackcolorin interfaceChartSettings- See Also:
ChartSettings.getLegendColor()
-
getCustomizerClass
public java.lang.String getCustomizerClass()
Description copied from interface:ChartSettingsGets a user specified chart customizer class name.- Specified by:
getCustomizerClassin interfaceChartSettings- See Also:
ChartCustomizer
-
collectExpressions
public void collectExpressions(JRExpressionCollector collector)
-
-