krysalis-jcharts/src/java/org/krysalis/jcharts Legend.java,1.10,1.11
"Nathaniel G. Auvil" <[email protected]> Mon, 31 May 2004 21:11:54 +0000
| Newsgroups | gmane.comp.krysalis.jcharts.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32131/src/java/org/krysalis/jcharts
Modified Files:
Legend.java
Log Message:
Index: Legend.java
===================================================================
RCS file: /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/Legend.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** Legend.java 31 May 2004 16:26:13 -0000 1.10
--- Legend.java 31 May 2004 21:11:51 -0000 1.11
***************
*** 335,351 ****
{
//---get the bounds of the shape
! try
! {
! Double shapeWidthDouble = new Double( ( ( (Shape) this.shapes.get( i ) ).getBounds2D().getWidth() ) );
! float shapeWidth = shapeWidthDouble.floatValue();
! this.iconSide = Math.max(this.iconSide, shapeWidth);
! }
! catch (NullPointerException npe)
! {
! // Looks like in 0.74 it was quite acceptable to make shape = null
! // we should probably catch all these and render a "null" shape to the legend
! System.err.println("Warning: legend shape is null");
! npe.printStackTrace();
! }
}
}
--- 335,351 ----
{
//---get the bounds of the shape
! try
! {
! Double shapeWidthDouble = new Double( ( ( (Shape) this.shapes.get( i ) ).getBounds2D().getWidth() ) );
! float shapeWidth = shapeWidthDouble.floatValue();
! this.iconSide = Math.max(this.iconSide, shapeWidth);
! }
! catch (NullPointerException npe)
! {
! // Looks like in 0.74 it was quite acceptable to make shape = null
! // we should probably catch all these and render a "null" shape to the legend
! System.err.println("Warning: legend shape is null");
! npe.printStackTrace();
! }
}
}
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click