Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4092041

Polygon Extensions

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.2.0
    • 1.1.4
    • client-libs
    • 2d
    • 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)
      ======================================================================

            flar Jim Graham
            bklocksunw Brian Klock (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: