-
Enhancement
-
Resolution: Fixed
-
P4
-
1.1.4
-
1.2beta1
-
sparc
-
solaris_2.5
-
Not verified
Name: bk70084 Date: 11/11/97
I propose that there is a limited amount of functionality to the Polygon class. It's a very useful and powerful graphical tool as it is, but it could be better.
What I request is that you add functions like:
public void resizePoly(int size) allowing you to resize the polygon. Perhaps by doing resizePoly(-1) to shrink the area by 1 or resizePoly(5) to enlarge the area by 5.
public int getPointX(int pointnumber) to get the X coordinate of the point specified. i.e. getPointX(4) would return the 4th point's X coordinate.
public int getPointY(int pointnumber) same as getPointX but returns the Y coordinate for the point.
Extended functionality would allow GUI and Graphic programmers better ways to deal with shapes.
(Review ID: 19421)
======================================================================