JDK-4077518 : need Polyline2D class and Polygon2D class in awt.geom package
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.2.0,1.2.2
  • Priority: P5
  • Status: Open
  • Resolution: Unresolved
  • OS: generic,windows
  • CPU: generic,x86
  • Submitted: 1997-09-08
  • Updated: 2018-09-05
Related Reports
Duplicate :  
Description

Name: pc7213			Date: 09/08/97


Why not Polyline2D class nor Polygon2D class in awt.geom package.
whreas Polyline class and Polygon class in java.awt package.

  I need to handle Float or Double coordinates for polylines and polygons.
  Polylines and polygons help to improve the performance
becuase such a collective method is faster than drawing lines and arcs
separatly
======================================================================

Comments
WORK AROUND Name: pc7213 Date: 09/08/97 ======================================================================
11-06-2004

EVALUATION The customer should be using the GeneralPath class to implement floating point polylines and polygons. A pair of Poly*2D classes might provide a small amount of value for cases when you know up front that a path contains only straight line segments, but it also duplicates functionality that is already provided by GeneralPath. jim.graham@Eng 1997-09-09
09-09-1997