Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4080460
Votes 0
Synopsis Suggestion on arcTo method
Category java:classes_2d
Reported Against 1.2beta , 1.2alpha2
Release Fixed
State 6-Fix Understood, request for enhancement
Priority: 5-Very Low
Related Bugs 4089438
Submit Date 19-SEP-1997
Description




I have a  suggestion on arcTo method.


"arcTo" method has 2 types :
(1) arcCwTo  (arc clockwise)
(2) arcCCwTo (arc counter-clockwise)

public synchronized void arcCwTo(
          float x1,
          float y1,
          float x2,
          float y2)

public synchronized void arcCCwTo(
          float x1,
          float y1,
          float x2,
          float y2)

So the parameters of each methods:
x1 - the X coordinate of the 
center point 
          y1 - the Y coordinate of 
the center point 
          x2 - the X coordinate of 
the final endpoint 
          y2 - the Y coordinate of 
the final endpoint
======================================================================
Work Around
The Arc2D class provides a number of similar, though not identical, ways to
specify an arc section.  Such an arc section could then be appended to a
GeneralPath using the GeneralPath.append() methods.
Evaluation
The number of arc suggestions is growing.  I will have to see if there is some
common denominator we can provide for Beta2...

  xxxxx@xxxxx   1997-09-19
Comments
  
  Include a link with my name & email   

Submitted On 12-DEC-2001
sapex
Using the GeneralPath.append (Arc2D) DOES NOT work
because arcs are converted internally to QUAD curves.
I noticed this when I tried getBounds2D which can be completely false
(try to create a circle starting from 45 degrees...)



PLEASE NOTE: JDK6 is formerly known as Project Mustang