Polygons implicetly draw a line from the last point to the first.
This getPolygon() method appears universally unused, and I'm not sure what's purpose is/was anyway.. git-svn-id: https://samskivert.googlecode.com/svn/trunk@800 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: SwingUtil.java,v 1.11 2002/07/10 01:53:59 ray Exp $
|
// $Id: SwingUtil.java,v 1.12 2002/07/24 18:58:27 ray Exp $
|
||||||
//
|
//
|
||||||
// samskivert library - useful routines for java programs
|
// samskivert library - useful routines for java programs
|
||||||
// Copyright (C) 2001 Michael Bayne
|
// Copyright (C) 2001 Michael Bayne
|
||||||
@@ -131,7 +131,6 @@ public class SwingUtil
|
|||||||
poly.addPoint(x + d.width, y);
|
poly.addPoint(x + d.width, y);
|
||||||
poly.addPoint(x + d.width, y + d.height);
|
poly.addPoint(x + d.width, y + d.height);
|
||||||
poly.addPoint(x, y + d.height);
|
poly.addPoint(x, y + d.height);
|
||||||
poly.addPoint(x, y);
|
|
||||||
return poly;
|
return poly;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user