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

graphics.drawArc() and graphics.fillArc() methods don't accept radians.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.2.0
    • 1.1.2
    • client-libs
    • None
    • 2d
    • 1.2beta1
    • x86
    • windows_95
    • Not verified



      Name: tb29552 Date: 06/17/97


      The graphics.drawArc() and graphics.fillArc()
      methods only accept degrees (which are integer values).
      These methods do not accept the more precise radian
      values which have decimal points.

      Therefore it is impossible to draw a pie with, say 100
      exactly equal slices, because each slice can only
      be 3degrees (not 3.6 degrees as is required). Thus
      we end up with a pie that spans only 300 degrees in
      total, rather than 360 degrees as we require to draw
      a proper circular pie chart. This problem occurs whenever
      rounding of degrees is necessary to draw an Arc (pie slice)
      in a pie chart.

      company - Honours Student - University of Cape Town , email - ###@###.###
      ======================================================================

            flar Jim Graham
            tbell Tim Bell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: