|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jasperreports.engine.xml.JRXmlBaseWriter
net.sf.jasperreports.engine.xml.JRXmlWriter
public class JRXmlWriter
A writer that produces the JRXML representation of an in-memory report.
Field Summary | |
---|---|
static XmlNamespace |
JASPERREPORTS_NAMESPACE
|
Fields inherited from class net.sf.jasperreports.engine.xml.JRXmlBaseWriter |
---|
writer |
Constructor Summary | |
---|---|
protected |
JRXmlWriter(JRReport report,
java.lang.String encoding)
|
Method Summary | |
---|---|
protected XmlNamespace |
getNamespace()
|
java.io.Writer |
getUnderlyingWriter()
Returns the underlying stream to which this writer outputs to. |
JRXmlWriteHelper |
getXmlWriteHelper()
Returns the XML write helper used by this report writer. |
protected boolean |
toWriteConditionalStyles()
Decides whether conditional styles are to be written. |
void |
writeAreaChart(JRChart chart)
|
void |
writeAxisFormat(JRFont axisLabelFont,
java.awt.Color axisLabelColor,
JRFont axisTickLabelFont,
java.awt.Color axisTickLabelColor,
java.lang.String axisTickLabelMask,
java.lang.Boolean axisVerticalTickLabels,
java.awt.Color axisLineColor)
Writes out the axis format block for a chart axis. |
void |
writeAxisFormat(java.lang.String axisFormatElementName,
JRFont axisLabelFont,
java.awt.Color axisLabelColor,
JRFont axisTickLabelFont,
java.awt.Color axisTickLabelColor,
java.lang.String axisTickLabelMask,
java.lang.Boolean axisVerticalTickLabels,
java.awt.Color axisLineColor)
Writes out the axis format block for a chart axis. |
void |
writeBar3DChart(JRChart chart)
|
void |
writeBar3DPlot(JRBar3DPlot plot)
|
void |
writeBarChart(JRChart chart)
|
void |
writeBreak(JRBreak breakElement)
|
void |
writeBubbleChart(JRChart chart)
|
protected void |
writeBucket(JRCrosstabBucket bucket)
|
void |
writeCandlestickChart(JRChart chart)
|
void |
writeCategoryAxisFormat(JRFont axisLabelFont,
java.awt.Color axisLabelColor,
JRFont axisTickLabelFont,
java.awt.Color axisTickLabelColor,
java.lang.String axisTickLabelMask,
java.lang.Boolean axisVerticalTickLabels,
java.lang.Double labelRotation,
java.awt.Color axisLineColor)
Writes out the category axis format block. |
protected void |
writeCellContents(JRCellContents contents)
|
void |
writeChartTag(JRChart chart)
|
void |
writeChildElements(JRElementGroup elementContainer)
Writes the contents (child elements) of an element container. |
void |
writeComponentElement(JRComponentElement componentElement)
|
void |
writeCrosstab(JRCrosstab crosstab)
|
protected void |
writeCrosstabCell(JRCrosstabCell cell)
|
protected void |
writeCrosstabColumnGroup(JRCrosstabColumnGroup group)
|
protected void |
writeCrosstabMeasure(JRCrosstabMeasure measure)
|
protected void |
writeCrosstabParameter(JRCrosstabParameter parameter)
|
protected void |
writeCrosstabRowGroup(JRCrosstabRowGroup group)
|
void |
writeDataRange(JRDataRange dataRange)
Writes a data range block to the output stream. |
void |
writeDataset(JRDataset dataset)
|
protected void |
writeDatasetContents(JRDataset dataset)
|
void |
writeDatasetRun(JRDatasetRun datasetRun)
Outputs the XML representation of a subdataset run object. |
void |
writeElementDataset(JRElementDataset dataset)
Writes the JRXML representation of an element dataset . |
void |
writeElementDataset(JRElementDataset dataset,
boolean skipIfEmpty)
Writes the JRXML representation of an element dataset . |
void |
writeElementDataset(JRElementDataset dataset,
ResetTypeEnum defaultResetType,
boolean skipIfEmpty)
Writes the JRXML representation of an element dataset . |
void |
writeElementGroup(JRElementGroup elementGroup)
|
void |
writeEllipse(JREllipse ellipse)
|
void |
writeFrame(JRFrame frame)
|
void |
writeGanttChart(JRChart chart)
|
void |
writeGenericElement(JRGenericElement element)
|
void |
writeHighLowChart(JRChart chart)
|
void |
writeHighLowDataset(JRHighLowDataset dataset)
|
void |
writeHyperlink(java.lang.String tagName,
JRHyperlink hyperlink)
|
void |
writeHyperlink(java.lang.String tagName,
XmlNamespace namespace,
JRHyperlink hyperlink)
|
protected void |
writeHyperlinkParameter(JRHyperlinkParameter parameter)
|
protected void |
writeHyperlinkParameters(JRHyperlinkParameter[] parameters)
|
void |
writeImage(JRImage image)
|
void |
writeItemLabel(JRItemLabel itemLabel)
Writes the description of how to display item labels in a category plot. |
void |
writeLine(JRLine line)
|
void |
writeLineChart(JRChart chart)
|
void |
writeMeterChart(JRChart chart)
Writes the definition of a meter chart to the output stream. |
void |
writeMultiAxisChart(JRChart chart)
Writes the definition of a multiple axis chart to the output stream. |
void |
writePie3DChart(JRChart chart)
|
void |
writePieChart(JRChart chart)
|
void |
writePieDataset(JRPieDataset dataset)
|
protected void |
writePropertyExpression(JRPropertyExpression propertyExpression)
|
protected void |
writePropertyExpressions(JRPropertyExpression[] propertyExpressions)
|
void |
writeRectangle(JRRectangle rectangle)
|
static void |
writeReport(JRReport report,
java.io.OutputStream outputStream,
java.lang.String encoding)
|
static java.lang.String |
writeReport(JRReport report,
java.lang.String encoding)
|
static void |
writeReport(JRReport report,
java.lang.String destFileName,
java.lang.String encoding)
|
protected void |
writeReport(java.io.Writer out)
|
void |
writeScatterChart(JRChart chart)
|
protected void |
writeSection(JRSection section)
|
void |
writeStackedAreaChart(JRChart chart)
|
void |
writeStackedBar3DChart(JRChart chart)
|
void |
writeStackedBarChart(JRChart chart)
|
void |
writeStaticText(JRStaticText staticText)
|
void |
writeSubreport(JRSubreport subreport)
|
protected void |
writeTemplate(JRReportTemplate template)
|
protected void |
writeTemplates()
|
void |
writeTextField(JRTextField textField)
|
void |
writeThermometerChart(JRChart chart)
Writes the description of a thermometer chart to the output stream. |
void |
writeTimeSeriesChart(JRChart chart)
|
void |
writeValueDataset(JRValueDataset dataset)
Writes the description of a value dataset to the output stream. |
void |
writeValueDisplay(JRValueDisplay valueDisplay)
Writes the description of how to display a value in a valueDataset. |
void |
writeXyAreaChart(JRChart chart)
|
void |
writeXyBarChart(JRChart chart)
|
void |
writeXyLineChart(JRChart chart)
|
Methods inherited from class net.sf.jasperreports.engine.xml.JRXmlBaseWriter |
---|
useWriter, writeBox, writeBox, writeConditionalStyle, writePen, writeStyle, writeStyleReferenceAttr |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final XmlNamespace JASPERREPORTS_NAMESPACE
Constructor Detail |
---|
protected JRXmlWriter(JRReport report, java.lang.String encoding)
Method Detail |
---|
public static java.lang.String writeReport(JRReport report, java.lang.String encoding)
public static void writeReport(JRReport report, java.lang.String destFileName, java.lang.String encoding) throws JRException
JRException
public static void writeReport(JRReport report, java.io.OutputStream outputStream, java.lang.String encoding) throws JRException
JRException
protected void writeReport(java.io.Writer out) throws java.io.IOException
java.io.IOException
protected void writeTemplates() throws java.io.IOException
java.io.IOException
protected void writeTemplate(JRReportTemplate template) throws java.io.IOException
java.io.IOException
protected void writeSection(JRSection section) throws java.io.IOException
java.io.IOException
public void writeChildElements(JRElementGroup elementContainer)
elementContainer
- the element containerpublic void writeElementGroup(JRElementGroup elementGroup) throws java.io.IOException
java.io.IOException
public void writeBreak(JRBreak breakElement) throws java.io.IOException
java.io.IOException
public void writeLine(JRLine line) throws java.io.IOException
java.io.IOException
protected void writePropertyExpressions(JRPropertyExpression[] propertyExpressions) throws java.io.IOException
java.io.IOException
protected void writePropertyExpression(JRPropertyExpression propertyExpression) throws java.io.IOException
java.io.IOException
public void writeRectangle(JRRectangle rectangle) throws java.io.IOException
java.io.IOException
public void writeEllipse(JREllipse ellipse) throws java.io.IOException
java.io.IOException
public void writeImage(JRImage image) throws java.io.IOException
java.io.IOException
public void writeStaticText(JRStaticText staticText) throws java.io.IOException
java.io.IOException
public void writeTextField(JRTextField textField) throws java.io.IOException
java.io.IOException
public void writeSubreport(JRSubreport subreport) throws java.io.IOException
java.io.IOException
public void writeElementDataset(JRElementDataset dataset) throws java.io.IOException
element dataset
.
The method produces a <dataset>
XML element.
dataset
- the element dataset
java.io.IOException
- any I/O exception that occurred while writing the
XML outputpublic void writeElementDataset(JRElementDataset dataset, boolean skipIfEmpty) throws java.io.IOException
element dataset
.
The method produces a <dataset>
XML element.
dataset
- the element datasetskipIfEmpty
- if set, no output will be produced if the element dataset
only has default attribute values
java.io.IOException
- any I/O exception that occurred while writing the
XML outputpublic void writeElementDataset(JRElementDataset dataset, ResetTypeEnum defaultResetType, boolean skipIfEmpty) throws java.io.IOException
element dataset
.
The method produces a <dataset>
XML element.
dataset
- the element datasetdefaultResetType
- the default dataset reset typeskipIfEmpty
- if set, no output will be produced if the element dataset
only has default attribute values
java.io.IOException
- any I/O exception that occurred while writing the
XML outputpublic void writePieDataset(JRPieDataset dataset) throws java.io.IOException
java.io.IOException
public void writeValueDataset(JRValueDataset dataset) throws java.io.IOException
dataset
- the value dataset to persist
java.io.IOException
public void writeValueDisplay(JRValueDisplay valueDisplay) throws java.io.IOException
valueDisplay
- the description to save
java.io.IOException
public void writeItemLabel(JRItemLabel itemLabel) throws java.io.IOException
itemLabel
- the description to save
java.io.IOException
public void writeDataRange(JRDataRange dataRange) throws java.io.IOException
dataRange
- the range to write
java.io.IOException
public void writePieChart(JRChart chart) throws java.io.IOException
java.io.IOException
public void writePie3DChart(JRChart chart) throws java.io.IOException
java.io.IOException
public void writeCategoryAxisFormat(JRFont axisLabelFont, java.awt.Color axisLabelColor, JRFont axisTickLabelFont, java.awt.Color axisTickLabelColor, java.lang.String axisTickLabelMask, java.lang.Boolean axisVerticalTickLabels, java.lang.Double labelRotation, java.awt.Color axisLineColor) throws java.io.IOException
axisLabelFont
- font to use for the axis labelaxisLabelColor
- color to use for the axis labelaxisTickLabelFont
- font to use for the label of each tick markaxisTickLabelColor
- color to use for the label of each tick markaxisTickLabelMask
- formatting mask to use for the label of each tick markaxisVerticalTickLabels
- flag to render tick labels at 90 degreeslabelRotation
- label rotation angleaxisLineColor
- the color to use for the axis line and any tick marks
java.io.IOException
public void writeAxisFormat(java.lang.String axisFormatElementName, JRFont axisLabelFont, java.awt.Color axisLabelColor, JRFont axisTickLabelFont, java.awt.Color axisTickLabelColor, java.lang.String axisTickLabelMask, java.lang.Boolean axisVerticalTickLabels, java.awt.Color axisLineColor) throws java.io.IOException
axisFormatElementName
- the name of the axis format element being writtenaxisLabelFont
- font to use for the axis labelaxisLabelColor
- color to use for the axis labelaxisTickLabelFont
- font to use for the label of each tick markaxisTickLabelColor
- color to use for the label of each tick markaxisTickLabelMask
- formatting mask to use for the label of each tick markaxisVerticalTickLabels
- flag to render tick labels at 90 degreesaxisLineColor
- the color to use for the axis line and any tick marks
java.io.IOException
public void writeAxisFormat(JRFont axisLabelFont, java.awt.Color axisLabelColor, JRFont axisTickLabelFont, java.awt.Color axisTickLabelColor, java.lang.String axisTickLabelMask, java.lang.Boolean axisVerticalTickLabels, java.awt.Color axisLineColor) throws java.io.IOException
axisLabelFont
- font to use for the axis labelaxisLabelColor
- color to use for the axis labelaxisTickLabelFont
- font to use for the label of each tick markaxisTickLabelColor
- color to use for the label of each tick markaxisTickLabelMask
- formatting mask to use for the label of each tick markaxisVerticalTickLabels
- flag to render tick labels at 90 degreesaxisLineColor
- the color to use for the axis line and any tick marks
java.io.IOException
public void writeBar3DPlot(JRBar3DPlot plot) throws java.io.IOException
java.io.IOException
public void writeBarChart(JRChart chart) throws java.io.IOException
java.io.IOException
public void writeBar3DChart(JRChart chart) throws java.io.IOException
java.io.IOException
public void writeBubbleChart(JRChart chart) throws java.io.IOException
java.io.IOException
public void writeStackedBarChart(JRChart chart) throws java.io.IOException
java.io.IOException
public void writeStackedBar3DChart(JRChart chart) throws java.io.IOException
java.io.IOException
public void writeLineChart(JRChart chart) throws java.io.IOException
java.io.IOException
public void writeTimeSeriesChart(JRChart chart) throws java.io.IOException
java.io.IOException
public void writeHighLowDataset(JRHighLowDataset dataset) throws java.io.IOException
java.io.IOException
public void writeHighLowChart(JRChart chart) throws java.io.IOException
java.io.IOException
public void writeGanttChart(JRChart chart) throws java.io.IOException
java.io.IOException
public void writeCandlestickChart(JRChart chart) throws java.io.IOException
java.io.IOException
public void writeAreaChart(JRChart chart) throws java.io.IOException
java.io.IOException
public void writeScatterChart(JRChart chart) throws java.io.IOException
java.io.IOException
public void writeXyAreaChart(JRChart chart) throws java.io.IOException
java.io.IOException
public void writeXyBarChart(JRChart chart) throws java.io.IOException
java.io.IOException
public void writeXyLineChart(JRChart chart) throws java.io.IOException
java.io.IOException
public void writeMeterChart(JRChart chart) throws java.io.IOException
chart
- the meter chart to write
java.io.IOException
public void writeThermometerChart(JRChart chart) throws java.io.IOException
chart
- the thermometer chart to write
java.io.IOException
public void writeMultiAxisChart(JRChart chart) throws java.io.IOException
chart
- the multiple axis chart to write
java.io.IOException
public void writeStackedAreaChart(JRChart chart) throws java.io.IOException
java.io.IOException
public void writeChartTag(JRChart chart) throws java.io.IOException
java.io.IOException
public void writeCrosstab(JRCrosstab crosstab) throws java.io.IOException
java.io.IOException
protected void writeCrosstabRowGroup(JRCrosstabRowGroup group) throws java.io.IOException
java.io.IOException
protected void writeCrosstabColumnGroup(JRCrosstabColumnGroup group) throws java.io.IOException
java.io.IOException
protected void writeBucket(JRCrosstabBucket bucket) throws java.io.IOException
java.io.IOException
protected void writeCrosstabMeasure(JRCrosstabMeasure measure) throws java.io.IOException
java.io.IOException
protected void writeCrosstabCell(JRCrosstabCell cell) throws java.io.IOException
java.io.IOException
protected void writeCellContents(JRCellContents contents) throws java.io.IOException
java.io.IOException
protected void writeCrosstabParameter(JRCrosstabParameter parameter) throws java.io.IOException
java.io.IOException
public void writeDataset(JRDataset dataset) throws java.io.IOException
java.io.IOException
protected void writeDatasetContents(JRDataset dataset) throws java.io.IOException
java.io.IOException
public void writeDatasetRun(JRDatasetRun datasetRun) throws java.io.IOException
datasetRun
- the subdataset run
java.io.IOException
public void writeFrame(JRFrame frame) throws java.io.IOException
java.io.IOException
protected void writeHyperlinkParameters(JRHyperlinkParameter[] parameters) throws java.io.IOException
java.io.IOException
protected void writeHyperlinkParameter(JRHyperlinkParameter parameter) throws java.io.IOException
java.io.IOException
public void writeHyperlink(java.lang.String tagName, JRHyperlink hyperlink) throws java.io.IOException
java.io.IOException
public void writeHyperlink(java.lang.String tagName, XmlNamespace namespace, JRHyperlink hyperlink) throws java.io.IOException
java.io.IOException
protected boolean toWriteConditionalStyles()
JRXmlBaseWriter
toWriteConditionalStyles
in class JRXmlBaseWriter
public JRXmlWriteHelper getXmlWriteHelper()
public java.io.Writer getUnderlyingWriter()
public void writeComponentElement(JRComponentElement componentElement) throws java.io.IOException
java.io.IOException
protected XmlNamespace getNamespace()
public void writeGenericElement(JRGenericElement element) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |