You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by le...@apache.org on 2004/04/05 18:18:06 UTC
cvs commit: avalon-excalibur/instrument-manager/http/src/java/org/apache/excalibur/instrument/manager/http LineChart.java
leif 2004/04/05 09:18:05
Modified: instrument-manager/http/src/java/org/apache/excalibur/instrument/manager/http
LineChart.java
Log:
Fix an overflow problem with very large values that was causing y-axis labels not
to be displayed correctly.
Revision Changes Path
1.6 +3 -3 avalon-excalibur/instrument-manager/http/src/java/org/apache/excalibur/instrument/manager/http/LineChart.java
Index: LineChart.java
===================================================================
RCS file: /home/cvs/avalon-excalibur/instrument-manager/http/src/java/org/apache/excalibur/instrument/manager/http/LineChart.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- LineChart.java 28 Feb 2004 11:47:21 -0000 1.5
+++ LineChart.java 5 Apr 2004 16:18:05 -0000 1.6
@@ -320,8 +320,8 @@
{
if( chartHeight > 0 )
{
- int horizonalLineLabeledInterval = (int)Math.ceil(
- (float)fontHeight / ( yLabelInterval * chartHeight / ( m_max - m_min ) ) );
+ int horizonalLineLabeledInterval = (int)Math.ceil( (float)fontHeight
+ / ( (long)yLabelInterval * chartHeight / ( m_max - m_min ) ) );
int horizontalLineNumber = 0;
for( int i = ( (int)Math.ceil( (float)m_min / yLabelInterval ) ) * yLabelInterval;
i < m_max; i += yLabelInterval )
---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org