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 ChartCustomizer
chartCustomizer
static String
EXCEPTION_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, ChartsFillObjectFactory factory)
-
Method Summary
-
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 String EXCEPTION_MESSAGE_KEY_CUSTOMIZER_INSTANCE_ERROR
- See Also:
- Constant Field Values
-
chartCustomizer
protected ChartCustomizer chartCustomizer
-
-
Constructor Detail
-
FillSpiderChart
public FillSpiderChart(SpiderChartComponent chartComponent, ChartsFillObjectFactory factory)
-
-
Method Detail
-
isEvaluateNow
protected boolean isEvaluateNow()
-
evaluate
public void evaluate(byte evaluation) throws JRException
Description copied from interface:FillComponent
Evaluates 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:
evaluate
in 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:FillComponent
Fills 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:
fill
in interfaceFillComponent
- Returns:
- the print element generated by the component
-
prepare
public FillPrepareResult prepare(int availableHeight)
Description copied from interface:FillComponent
Prepares to fill the component by deciding whether the component will print, and how much vertical space it will require.- Specified by:
prepare
in 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:JRFillCloneable
Creates a working clone of itself.- Specified by:
createClone
in 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:BaseFillComponent
The default implementation throwsUnsupportedOperationException
.If a component supports delayed evaluation, it needs to override this method.
- Specified by:
evaluateDelayedElement
in interfaceFillComponent
- Overrides:
evaluateDelayedElement
in 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 Double getMaxValue()
- Returns:
- the maxValue
-
getTitleText
public String getTitleText()
- Returns:
- the titleText
-
getSubtitleText
public String getSubtitleText()
- Returns:
- the subtitleText
-
getAnchorName
public String getAnchorName()
- Returns:
- the anchorName
-
getHyperlinkReference
public String getHyperlinkReference()
- Returns:
- the hyperlinkReference
-
getHyperlinkAnchor
public String getHyperlinkAnchor()
- Returns:
- the hyperlinkAnchor
-
getHyperlinkPage
public Integer getHyperlinkPage()
- Returns:
- the hyperlinkPage
-
getHyperlinkTooltip
public 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 String getLinkType()
-
getLinkTarget
public String getLinkTarget()
-
getHyperlinkParameters
public JRPrintHyperlinkParameters getHyperlinkParameters()
- Returns:
- the hyperlinkParameters
-
-