If the width of this line is less than or equal to one, returns the starting and ending coordinates as a 2-point Polygon, or, if the width is greater than one, returns an outline of the line as a 4-point Polygon. @see #getFloatPolygon @see #getPoints
()
| 510 | * @see #getPoints |
| 511 | */ |
| 512 | public Polygon getPolygon() { |
| 513 | FloatPolygon p = getFloatPolygon(); |
| 514 | return new Polygon(toIntR(p.xpoints), toIntR(p.ypoints), p.npoints); |
| 515 | } |
| 516 | |
| 517 | /** If the width of this line is less than or equal to one, returns the |
| 518 | * starting and ending coordinates as a 2-point FloatPolygon, or, if |
no test coverage detected