}
//---if we are generating an ImageMap, store the image coordinates
if( axisChart.getGenerateImageMapFlag() )
{
axisChart.getImageMap().addImageMapArea( new CircleMapArea( line.x1,
line.y1,
iStockChartDataSet.getLowValue( i ),
label,
iStockChartDataSet.getLegendLabel( StockChartDataType.LOW.getInt() ) ) );
axisChart.getImageMap().addImageMapArea( new CircleMapArea( line.x2,
line.y2,
iStockChartDataSet.getHighValue( i ),
label,
iStockChartDataSet.getLegendLabel( StockChartDataType.HIGH.getInt() ) ) );
}
g2d.setPaint( iStockChartDataSet.getPaint( StockChartDataType.HIGH.getInt() ) );
g2d.setStroke( stockChartProperties.getHiLowStroke() );
g2d.draw( line );
line.x1+=axisChart.getXAxis().getScalePixelWidth();
line.x2=line.x1;
if( openLine != null )
{
if( iStockChartDataSet.getOpenValue( i ) != Double.NaN )
{
openLine.y1= axisChart.getYAxis().computeAxisCoordinate( axisChart.getYAxis().getOrigin(),
iStockChartDataSet.getOpenValue( i ),
axisChart.getYAxis().getScaleCalculator().getMinValue() );
openLine.y2=openLine.y1;
g2d.setPaint( iStockChartDataSet.getPaint( StockChartDataType.OPEN.getInt() ) );
g2d.setStroke( stockChartProperties.getOpenStroke() );
g2d.draw( openLine );
//---if we are generating an ImageMap, store the image coordinates
if( axisChart.getGenerateImageMapFlag() )
{
axisChart.getImageMap().addImageMapArea( new CircleMapArea( openLine.x1,
openLine.y1,
iStockChartDataSet.getOpenValue( i ),
label,
iStockChartDataSet.getLegendLabel( StockChartDataType.OPEN.getInt() ) ) );
}
openLine.x1+=axisChart.getXAxis().getScalePixelWidth();
openLine.x2+=axisChart.getXAxis().getScalePixelWidth();
}
}
if( closeLine != null )
{
if( iStockChartDataSet.getOpenValue( i ) != Double.NaN )
{
closeLine.y1= axisChart.getYAxis().computeAxisCoordinate( axisChart.getYAxis().getOrigin(),
iStockChartDataSet.getCloseValue( i ),
axisChart.getYAxis().getScaleCalculator().getMinValue() );
closeLine.y2=closeLine.y1;
g2d.setPaint( iStockChartDataSet.getPaint( StockChartDataType.CLOSE.getInt() ) );
g2d.setStroke( stockChartProperties.getCloseStroke() );
g2d.draw( closeLine );
//---if we are generating an ImageMap, store the image coordinates
if( axisChart.getGenerateImageMapFlag() )
{
axisChart.getImageMap().addImageMapArea( new CircleMapArea( closeLine.x2,
closeLine.y2,
iStockChartDataSet.getCloseValue( i ),
label,
iStockChartDataSet.getLegendLabel( StockChartDataType.CLOSE.getInt() ) ) );
}