Use {@link Path2D.Float} when dealing with data that can be representedand used with floating point precision. Use {@link Path2D.Double}for data that requires the accuracy or range of double precision.
{@code Path2D} provides exactly those facilities required forbasic construction and management of a geometric path and implementation of the above interfaces with little added interpretation. If it is useful to manipulate the interiors of closed geometric shapes beyond simple hit testing then the {@link Area} class provides additional capabilitiesspecifically targeted at closed figures. While both classes nominally implement the {@code Shape}interface, they differ in purpose and together they provide two useful views of a geometric shape where {@code Path2D}deals primarily with a trajectory formed by path segments and {@code Area} deals more with interpretation and manipulationof enclosed regions of 2D geometric space.
The {@link PathIterator} interface has more detailed descriptionsof the types of segments that make up a path and the winding rules that control how to determine which regions are inside or outside the path. @author Jim Graham @since 1.6
Use {@link Path2D.Float} when dealing with data that can be representedand used with floating point precision. Use {@link Path2D.Double}for data that requires the accuracy or range of double precision.
{@code Path2D} provides exactly those facilities required forbasic construction and management of a geometric path and implementation of the above interfaces with little added interpretation. If it is useful to manipulate the interiors of closed geometric shapes beyond simple hit testing then the {@link Area} class provides additional capabilitiesspecifically targeted at closed figures. While both classes nominally implement the {@code Shape}interface, they differ in purpose and together they provide two useful views of a geometric shape where {@code Path2D}deals primarily with a trajectory formed by path segments and {@code Area} deals more with interpretation and manipulationof enclosed regions of 2D geometric space.
The {@link PathIterator} interface has more detailed descriptionsof the types of segments that make up a path and the winding rules that control how to determine which regions are inside or outside the path. @version 1.4, 04/19/06 @author Jim Graham @since 1.6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|