Class FillSpiderChart
- java.lang.Object
-
- net.sf.jasperreports.engine.component.BaseFillComponent
-
- net.sf.jasperreports.components.spiderchart.FillSpiderChart
-
- All Implemented Interfaces:
FillComponent,JRFillCloneable
public class FillSpiderChart extends BaseFillComponent implements JRFillCloneable
- Author:
- Sanda Zaharia (shertage@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description protected ChartCustomizerchartCustomizerstatic java.lang.StringEXCEPTION_MESSAGE_KEY_CUSTOMIZER_INSTANCE_ERROR-
Fields inherited from class net.sf.jasperreports.engine.component.BaseFillComponent
fillContext, printElementOriginator
-
-
Constructor Summary
Constructors Constructor Description FillSpiderChart(SpiderChartComponent chartComponent, JRFillObjectFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcopy(JRPrintImage printImage)JRFillCloneablecreateClone(JRFillCloneFactory factory)Creates a working clone of itself.voidevaluate(byte evaluation)Evaluates the fill component.voidevaluateDelayedElement(JRPrintElement element, byte evaluation)The default implementation throwsUnsupportedOperationException.protected voidevaluateRenderer(byte evaluation)JRPrintElementfill()Fills the component by creating a print element which will be included in the generated report.java.lang.StringgetAnchorName()intgetBookmarkLevel()FillChartSettingsgetChartSettings()FillSpiderDatasetgetDataset()JRFillExpressionEvaluatorgetExpressionEvaluator()java.lang.StringgetHyperlinkAnchor()java.lang.IntegergetHyperlinkPage()JRPrintHyperlinkParametersgetHyperlinkParameters()protected ChartHyperlinkProvidergetHyperlinkProvider()java.lang.StringgetHyperlinkReference()java.lang.StringgetHyperlinkTooltip()java.lang.StringgetLinkTarget()java.lang.StringgetLinkType()java.lang.DoublegetMaxValue()FillSpiderPlotgetPlot()RenderablegetRenderable()java.lang.StringgetSubtitleText()java.lang.StringgetTitleText()protected booleanisEvaluateNow()FillPrepareResultprepare(int availableHeight)Prepares to fill the component by deciding whether the component will print, and how much vertical space it will require.-
Methods inherited from class net.sf.jasperreports.engine.component.BaseFillComponent
deduplicate, evaluateExpression, initialize, rewind
-
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_CUSTOMIZER_INSTANCE_ERROR
public static final java.lang.String EXCEPTION_MESSAGE_KEY_CUSTOMIZER_INSTANCE_ERROR
- See Also:
- Constant Field Values
-
chartCustomizer
protected ChartCustomizer chartCustomizer
-
-
Constructor Detail
-
FillSpiderChart
public FillSpiderChart(SpiderChartComponent chartComponent, JRFillObjectFactory factory)
-
-
Method Detail
-
isEvaluateNow
protected boolean isEvaluateNow()
-
evaluate
public void evaluate(byte evaluation) throws JRExceptionDescription copied from interface:FillComponentEvaluates the fill component.This method would evaluate the component expressions and store the results to be used in
FillComponent.fill().If the component needs to delay the evaluation of some of its expressions, it would call
FillContext.registerDelayedEvaluation(JRPrintElement, EvaluationTimeEnum, String)to register a delayed evaluation print element, and perform the delayed evaluations onFillComponent.evaluateDelayedElement(JRPrintElement, byte).- Specified by:
evaluatein interfaceFillComponent- Parameters:
evaluation- the evaluation type- Throws:
JRException- See Also:
FillContext.evaluate(net.sf.jasperreports.engine.JRExpression, byte)
-
evaluateRenderer
protected void evaluateRenderer(byte evaluation) throws JRException- Throws:
JRException
-
fill
public JRPrintElement fill()
Description copied from interface:FillComponentFills the component by creating a print element which will be included in the generated report.This method will get called only if
FillComponent.prepare(int)returned a result that indicated that the component will print.- Specified by:
fillin interfaceFillComponent- Returns:
- the print element generated by the component
-
prepare
public FillPrepareResult prepare(int availableHeight)
Description copied from interface:FillComponentPrepares to fill the component by deciding whether the component will print, and how much vertical space it will require.- Specified by:
preparein interfaceFillComponent- Parameters:
availableHeight- the amount of vertical space available for the component, starting from the top of the component element.- Returns:
- the result of the preparation, which specifies whether the component will print and how much it will stretch vertically.
-
createClone
public JRFillCloneable createClone(JRFillCloneFactory factory)
Description copied from interface:JRFillCloneableCreates a working clone of itself.- Specified by:
createClonein interfaceJRFillCloneable- Parameters:
factory- the clone factory to use while creating the clone- Returns:
- a working clone of itself
-
evaluateDelayedElement
public void evaluateDelayedElement(JRPrintElement element, byte evaluation) throws JRException
Description copied from class:BaseFillComponentThe default implementation throwsUnsupportedOperationException.If a component supports delayed evaluation, it needs to override this method.
- Specified by:
evaluateDelayedElementin interfaceFillComponent- Overrides:
evaluateDelayedElementin classBaseFillComponent- Parameters:
element- the print element for which delayed evaluation has been registeredevaluation- the evaluation type- Throws:
JRException- See Also:
FillComponent.evaluate(byte)
-
copy
protected void copy(JRPrintImage printImage)
-
getHyperlinkProvider
protected ChartHyperlinkProvider getHyperlinkProvider()
-
getChartSettings
public FillChartSettings getChartSettings()
- Returns:
- the chartSettings
-
getDataset
public FillSpiderDataset getDataset()
- Returns:
- the dataset
-
getPlot
public FillSpiderPlot getPlot()
- Returns:
- the plot
-
getMaxValue
public java.lang.Double getMaxValue()
- Returns:
- the maxValue
-
getTitleText
public java.lang.String getTitleText()
- Returns:
- the titleText
-
getSubtitleText
public java.lang.String getSubtitleText()
- Returns:
- the subtitleText
-
getAnchorName
public java.lang.String getAnchorName()
- Returns:
- the anchorName
-
getHyperlinkReference
public java.lang.String getHyperlinkReference()
- Returns:
- the hyperlinkReference
-
getHyperlinkAnchor
public java.lang.String getHyperlinkAnchor()
- Returns:
- the hyperlinkAnchor
-
getHyperlinkPage
public java.lang.Integer getHyperlinkPage()
- Returns:
- the hyperlinkPage
-
getHyperlinkTooltip
public java.lang.String getHyperlinkTooltip()
- Returns:
- the hyperlinkTooltip
-
getBookmarkLevel
public int getBookmarkLevel()
- Returns:
- the bookmark level
-
getExpressionEvaluator
public JRFillExpressionEvaluator getExpressionEvaluator()
- Returns:
- the expressionEvaluator
-
getRenderable
public Renderable getRenderable()
- Returns:
- the renderer
-
getLinkType
public java.lang.String getLinkType()
-
getLinkTarget
public java.lang.String getLinkTarget()
-
getHyperlinkParameters
public JRPrintHyperlinkParameters getHyperlinkParameters()
- Returns:
- the hyperlinkParameters
-
-