Class SpiderChartXmlWriter
- java.lang.Object
-
- net.sf.jasperreports.components.spiderchart.SpiderChartXmlWriter
-
- All Implemented Interfaces:
ComponentXmlWriter
public class SpiderChartXmlWriter extends Object implements ComponentXmlWriter
- Author:
- Sanda Zaharia (shertage@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTRIBUTE_axisLineColorstatic StringATTRIBUTE_axisLineWidthstatic StringATTRIBUTE_headPercentstatic StringATTRIBUTE_interiorGapstatic StringATTRIBUTE_labelColorstatic StringATTRIBUTE_labelGapstatic StringATTRIBUTE_rotationstatic StringATTRIBUTE_startAnglestatic StringATTRIBUTE_tableOrderstatic StringATTRIBUTE_webFilledstatic StringELEMENT_chartSettingsstatic StringELEMENT_maxValueExpressionstatic StringELEMENT_spiderChartstatic StringELEMENT_spiderDatasetstatic StringELEMENT_spiderPlot
-
Constructor Summary
Constructors Constructor Description SpiderChartXmlWriter(JasperReportsContext jasperReportsContext)SpiderChartXmlWriter(JasperReportsContext jasperReportsContext, String version, VersionComparator versionComparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisNewerVersionOrEqual(String currentVersion, String oldVersion)booleanisToWrite(JRComponentElement componentElement, JRXmlWriter reportWriter)Specifies whether this component should be written out.protected voidwriteExpression(String name, XmlNamespace namespace, JRExpression expression, boolean writeClass, JRXmlWriteHelper writer)voidwriteToXml(JRComponentElement componentElement, JRXmlWriter reportWriter)Outputs the XML representation of a component.
-
-
-
Field Detail
-
ELEMENT_spiderChart
public static final String ELEMENT_spiderChart
- See Also:
- Constant Field Values
-
ELEMENT_chartSettings
public static final String ELEMENT_chartSettings
- See Also:
- Constant Field Values
-
ELEMENT_spiderDataset
public static final String ELEMENT_spiderDataset
- See Also:
- Constant Field Values
-
ELEMENT_spiderPlot
public static final String ELEMENT_spiderPlot
- See Also:
- Constant Field Values
-
ELEMENT_maxValueExpression
public static final String ELEMENT_maxValueExpression
- See Also:
- Constant Field Values
-
ATTRIBUTE_rotation
public static final String ATTRIBUTE_rotation
- See Also:
- Constant Field Values
-
ATTRIBUTE_tableOrder
public static final String ATTRIBUTE_tableOrder
- See Also:
- Constant Field Values
-
ATTRIBUTE_webFilled
public static final String ATTRIBUTE_webFilled
- See Also:
- Constant Field Values
-
ATTRIBUTE_startAngle
public static final String ATTRIBUTE_startAngle
- See Also:
- Constant Field Values
-
ATTRIBUTE_headPercent
public static final String ATTRIBUTE_headPercent
- See Also:
- Constant Field Values
-
ATTRIBUTE_interiorGap
public static final String ATTRIBUTE_interiorGap
- See Also:
- Constant Field Values
-
ATTRIBUTE_axisLineColor
public static final String ATTRIBUTE_axisLineColor
- See Also:
- Constant Field Values
-
ATTRIBUTE_axisLineWidth
public static final String ATTRIBUTE_axisLineWidth
- See Also:
- Constant Field Values
-
ATTRIBUTE_labelGap
public static final String ATTRIBUTE_labelGap
- See Also:
- Constant Field Values
-
ATTRIBUTE_labelColor
public static final String ATTRIBUTE_labelColor
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SpiderChartXmlWriter
public SpiderChartXmlWriter(JasperReportsContext jasperReportsContext)
-
SpiderChartXmlWriter
public SpiderChartXmlWriter(JasperReportsContext jasperReportsContext, String version, VersionComparator versionComparator)
-
-
Method Detail
-
isToWrite
public boolean isToWrite(JRComponentElement componentElement, JRXmlWriter reportWriter)
Description copied from interface:ComponentXmlWriterSpecifies whether this component should be written out. This is useful for versioning.- Specified by:
isToWritein interfaceComponentXmlWriter
-
writeToXml
public void writeToXml(JRComponentElement componentElement, JRXmlWriter reportWriter) throws IOException
Description copied from interface:ComponentXmlWriterOutputs the XML representation of a component.- Specified by:
writeToXmlin interfaceComponentXmlWriter- Parameters:
componentElement- the component elementreportWriter- the report writer to which output is to be written- Throws:
IOException- exceptions produced while writing to the output stream- See Also:
ComponentKey.getNamespacePrefix(),JRXmlWriter.getXmlWriteHelper()
-
isNewerVersionOrEqual
protected boolean isNewerVersionOrEqual(String currentVersion, String oldVersion)
-
writeExpression
protected void writeExpression(String name, XmlNamespace namespace, JRExpression expression, boolean writeClass, JRXmlWriteHelper writer) throws IOException
- Throws:
IOException
-
-