<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Flower Landscape" language="groovy" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
	<property name="ireport.zoom" value="1.0"/>
	<property name="ireport.x" value="47"/>
	<property name="ireport.y" value="451"/>
	<style name="Title" isDefault="false" forecolor="#FFFFFF" fontName="Times New Roman" fontSize="50" isBold="false" pdfFontName="Times-Bold"/>
	<style name="SubTitle" isDefault="false" forecolor="#666666" fontName="Times New Roman" fontSize="18" isBold="false" pdfFontName="Times-Roman"/>
	<style name="Column header" isDefault="false" forecolor="#666666" fontName="Times New Roman" fontSize="14" isBold="true" pdfFontName="Times-Roman"/>
	<style name="Detail" isDefault="false" mode="Transparent" fontName="Times New Roman" pdfFontName="Times-Roman"/>
	<style name="Row" isDefault="false" mode="Transparent" fontName="Times New Roman" pdfFontName="Times-Roman">
		<conditionalStyle>
			<conditionExpression><![CDATA[$V{REPORT_COUNT}%2 == 0]]></conditionExpression>
			<style isDefault="false" style="Row" mode="Opaque" backcolor="#F0EFEF"/>
		</conditionalStyle>
	</style>
	<subDataset name="PieChartDataset"/>
	<group name="Group1">
		<groupExpression><![CDATA[(int)($V{REPORT_COUNT}/15)]]></groupExpression>
		<groupHeader>
			<band height="31">
				<frame>
					<reportElement mode="Opaque" x="229" y="7" width="573" height="24" forecolor="#B89F7D" backcolor="#70A9C6"/>
					<textField isStretchWithOverflow="true" isBlankWhenNull="true">
						<reportElement style="SubTitle" isPrintRepeatedValues="false" x="2" y="1" width="263" height="23" forecolor="#FFFFFF"/>
						<textElement>
							<font fontName="Arial" isBold="false" pdfFontName="Helvetica"/>
						</textElement>
						<textFieldExpression class="java.lang.String"><![CDATA["GroupField"]]></textFieldExpression>
					</textField>
				</frame>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="6"/>
		</groupFooter>
	</group>
	<group name="Group2">
		<groupExpression><![CDATA[(int)($V{REPORT_COUNT}/5)]]></groupExpression>
		<groupHeader>
			<band height="24">
				<textField isBlankWhenNull="true">
					<reportElement positionType="Float" x="231" y="4" width="571" height="20" forecolor="#000000"/>
					<textElement>
						<font fontName="Arial" size="16" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA["GroupField"]]></textFieldExpression>
				</textField>
			</band>
		</groupHeader>
	</group>
	<background>
		<band height="555" splitType="Stretch">
			<pie3DChart>
				<chart isShowLegend="false" evaluationTime="Report">
					<reportElement x="-18" y="406" width="229" height="139"/>
					<chartTitle/>
					<chartSubtitle/>
					<chartLegend/>
				</chart>
				<pieDataset>
					<dataset>
						<datasetRun subDataset="PieChartDataset">
							<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.JREmptyDataSource(5)]]></dataSourceExpression>
						</datasetRun>
					</dataset>
					<keyExpression><![CDATA[/* Replace with your key expression here */
$V{REPORT_COUNT}]]></keyExpression>
					<valueExpression><![CDATA[new Double(200*Math.random()*5)]]></valueExpression>
				</pieDataset>
				<pie3DPlot>
					<plot backgroundAlpha="0.5" foregroundAlpha="0.8">
						<seriesColor seriesOrder="0" color="#3399FF"/>
						<seriesColor seriesOrder="1" color="#00CCFF"/>
						<seriesColor seriesOrder="2" color="#0066CC"/>
						<seriesColor seriesOrder="3" color="#6699FF"/>
						<seriesColor seriesOrder="4" color="#004A94"/>
						<seriesColor seriesOrder="5" color="#00356A"/>
					</plot>
					<itemLabel color="#000000" backgroundColor="#FFFFFF"/>
				</pie3DPlot>
			</pie3DChart>
			<image>
				<reportElement x="-20" y="65" width="229" height="250">
					<printWhenExpression><![CDATA[$V{PAGE_NUMBER} == 1]]></printWhenExpression>
				</reportElement>
				<imageExpression class="java.lang.String"><![CDATA["flower1.png"]]></imageExpression>
			</image>
			<image>
				<reportElement x="-20" y="-20" width="229" height="250">
					<printWhenExpression><![CDATA[$V{PAGE_NUMBER} > 1]]></printWhenExpression>
				</reportElement>
				<imageExpression class="java.lang.String"><![CDATA["flower1.png"]]></imageExpression>
			</image>
			<staticText>
				<reportElement mode="Opaque" x="318" y="315" width="239" height="181" backcolor="#FFFFCC">
					<printWhenExpression><![CDATA[Boolean.FALSE]]></printWhenExpression>
				</reportElement>
				<box topPadding="4" leftPadding="4" bottomPadding="4" rightPadding="4">
					<pen lineWidth="1.0" lineColor="#CC9900"/>
					<topPen lineWidth="1.0" lineColor="#CC9900"/>
					<leftPen lineWidth="1.0" lineColor="#CC9900"/>
					<bottomPen lineWidth="1.0" lineColor="#CC9900"/>
					<rightPen lineWidth="1.0" lineColor="#CC9900"/>
				</box>
				<textElement>
					<font size="12"/>
				</textElement>
				<text><![CDATA[Each chart is populated on each page.
The 3 pie charts are currently using an empty datasource and the values are
generated using a random generator.

This rectangle element is not printed (see the print when expression of this
element)]]></text>
			</staticText>
			<line>
				<reportElement x="201" y="431" width="117" height="1">
					<printWhenExpression><![CDATA[Boolean.FALSE]]></printWhenExpression>
				</reportElement>
				<graphicElement>
					<pen lineWidth="3.0" lineStyle="Dotted" lineColor="#996600"/>
				</graphicElement>
			</line>
			<staticText>
				<reportElement mode="Opaque" x="275" y="-10" width="240" height="181" backcolor="#FFFFCC">
					<printWhenExpression><![CDATA[Boolean.FALSE]]></printWhenExpression>
				</reportElement>
				<box topPadding="4" leftPadding="4" bottomPadding="4" rightPadding="4">
					<pen lineWidth="1.0" lineColor="#CC9900"/>
					<topPen lineWidth="1.0" lineColor="#CC9900"/>
					<leftPen lineWidth="1.0" lineColor="#CC9900"/>
					<bottomPen lineWidth="1.0" lineColor="#CC9900"/>
					<rightPen lineWidth="1.0" lineColor="#CC9900"/>
				</box>
				<textElement markup="none">
					<font size="12"/>
				</textElement>
				<text><![CDATA[Flowers

There are two flowers, the first one is printed only starting from the second page, the other one only in the first page.]]></text>
			</staticText>
			<line>
				<reportElement x="72" y="37" width="204" height="1">
					<printWhenExpression><![CDATA[Boolean.FALSE]]></printWhenExpression>
				</reportElement>
				<graphicElement>
					<pen lineWidth="3.0" lineStyle="Dotted" lineColor="#996600"/>
				</graphicElement>
			</line>
		</band>
	</background>
	<title>
		<band height="94" splitType="Stretch">
			<staticText>
				<reportElement style="SubTitle" x="336" y="65" width="449" height="29"/>
				<textElement textAlignment="Right">
					<font size="22" isBold="false"/>
				</textElement>
				<text><![CDATA[Flower SubTitle]]></text>
			</staticText>
			<frame>
				<reportElement mode="Opaque" x="-20" y="0" width="822" height="65" forecolor="#006699" backcolor="#006699"/>
				<staticText>
					<reportElement style="Title" x="231" y="0" width="578" height="65"/>
					<textElement textAlignment="Right">
						<font size="54" isBold="false"/>
					</textElement>
					<text><![CDATA[Flower Title]]></text>
				</staticText>
			</frame>
		</band>
	</title>
	<pageHeader>
		<band splitType="Stretch"/>
	</pageHeader>
	<columnHeader>
		<band height="14" splitType="Stretch">
			<frame>
				<reportElement x="227" y="0" width="575" height="14"/>
				<staticText>
					<reportElement style="Column header" positionType="Float" x="0" y="0" width="132" height="14" forecolor="#000000"/>
					<textElement>
						<font fontName="Arial" size="12" isBold="true" pdfFontName="Helvetica"/>
					</textElement>
					<text><![CDATA[Label]]></text>
				</staticText>
			</frame>
		</band>
	</columnHeader>
	<detail>
		<band height="15" splitType="Stretch">
			<line>
				<reportElement positionType="FixRelativeToBottom" x="227" y="14" width="575" height="1"/>
			</line>
			<frame>
				<reportElement x="227" y="0" width="575" height="14"/>
				<textField isStretchWithOverflow="true" isBlankWhenNull="true">
					<reportElement style="Detail" positionType="Float" x="0" y="0" width="172" height="14"/>
					<textElement>
						<font fontName="Arial" size="12" isBold="false" pdfFontName="Helvetica"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA["Field"]]></textFieldExpression>
				</textField>
			</frame>
		</band>
	</detail>
	<columnFooter>
		<band height="7" splitType="Stretch">
			<line>
				<reportElement positionType="FixRelativeToBottom" x="0" y="3" width="555" height="1"/>
				<graphicElement>
					<pen lineWidth="0.5" lineColor="#999999"/>
				</graphicElement>
			</line>
		</band>
	</columnFooter>
	<pageFooter>
		<band height="16" splitType="Stretch">
			<frame>
				<reportElement mode="Opaque" x="2" y="0" width="800" height="16" forecolor="#D0B48E" backcolor="#006699"/>
				<textField evaluationTime="Report">
					<reportElement style="Column header" x="753" y="0" width="40" height="16" forecolor="#FFFFFF"/>
					<textElement verticalAlignment="Middle">
						<font fontName="Arial" size="12" isBold="false" pdfFontName="Helvetica"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
				</textField>
				<textField>
					<reportElement style="Column header" x="673" y="0" width="80" height="16" forecolor="#FFFFFF"/>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font fontName="Arial" size="12" isBold="false" pdfFontName="Helvetica"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression>
				</textField>
				<textField pattern="EEEEE dd MMMMM yyyy">
					<reportElement style="Column header" x="2" y="0" width="197" height="16" forecolor="#FFFFFF"/>
					<textElement verticalAlignment="Middle">
						<font fontName="Arial" size="12" isBold="false" pdfFontName="Helvetica"/>
					</textElement>
					<textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
				</textField>
			</frame>
		</band>
	</pageFooter>
	<summary>
		<band splitType="Stretch"/>
	</summary>
</jasperReport>
