Re: bounds of line2d
- From: Thorsten Kiefer <thorstenkiefer@xxxxxx>
- Date: Thu, 31 Jul 2008 14:57:22 +0200
Thorsten Kiefer wrote:
Hi,
the following code
System.err.println(new Line2D.Double(0,0,20,20).getBounds2D());
System.err.println(new Area(new
Line2D.Double(0,0,20,20)).getBounds2D());
produces the following output :
java.awt.geom.Rectangle2D$Double[x=0.0,y=0.0,w=20.0,h=20.0]
java.awt.geom.Rectangle2D$Double[x=0.0,y=0.0,w=0.0,h=0.0]
Is there a way to make the area object have the same boundaries
as the line object ?
Best Regards
Thorsten
is it a bug or a feature ?
.
- References:
- bounds of line2d
- From: Thorsten Kiefer
- bounds of line2d
- Prev by Date: Finding simple Java class for implementation of text recognition
- Next by Date: Re: delete row from SortableTableModel
- Previous by thread: bounds of line2d
- Next by thread: Re: bounds of line2d
- Index(es):