{
write( "JRDesignChart " + chartName + " = new JRDesignChart(jasperDesign, JRChart.CHART_TYPE_HIGHLOW);\n");
writeChart( chart, chartName);
writeHighLowDataset( (JRHighLowDataset) chart.getDataset(), chartName, "HighLowDataset");
JRHighLowPlot plot = (JRHighLowPlot) chart.getPlot();
if(plot != null)
{
String plotName = chartName + "HighLowPlot";
write( "JRDesignHighLowPlot " + plotName + " = (JRDesignHighLowPlot)" + chartName + ".getPlot();\n");
write( plotName + ".setShowOpenTicks({0});\n", getBooleanText(plot.getShowOpenTicks()));
write( plotName + ".setShowCloseTicks({0});\n", getBooleanText(plot.getShowCloseTicks()));
writePlot( plot, plotName);
writeExpression( plot.getTimeAxisLabelExpression(), plotName, "TimeAxisLabelExpression");
writeAxisFormat(
indent, plot.getTimeAxisLabelFont(), plot.getOwnTimeAxisLabelColor(),
plot.getTimeAxisTickLabelFont(), plot.getOwnTimeAxisTickLabelColor(),
plot.getTimeAxisTickLabelMask(), plot.getTimeAxisVerticalTickLabels(), plot.getOwnTimeAxisLineColor(),
plotName, "TimeAxisFormat", true
);
writeExpression( plot.getValueAxisLabelExpression(), plotName, "ValueAxisLabelExpression");
writeAxisFormat(
indent, plot.getValueAxisLabelFont(), plot.getOwnValueAxisLabelColor(),
plot.getValueAxisTickLabelFont(), plot.getOwnValueAxisTickLabelColor(),
plot.getValueAxisTickLabelMask(), plot.getValueAxisVerticalTickLabels(), plot.getOwnValueAxisLineColor(),
plotName, "ValueAxisFormat", true
);
writeExpression( plot.getDomainAxisMinValueExpression(), plotName, "DomainAxisMinValueExpression");
writeExpression( plot.getDomainAxisMaxValueExpression(), plotName, "DomainAxisMaxValueExpression");
writeExpression( plot.getRangeAxisMinValueExpression(), plotName, "RangeAxisMinValueExpression");
writeExpression( plot.getRangeAxisMaxValueExpression(), plotName, "RangeAxisMaxValueExpression");
flush();
}
flush();
}