Java Utililty Methods Draw Polyline

List of utility methods to do Draw Polyline

Description

The list of methods to do Draw Polyline are organized into topic(s).

Method

voiddrawPolyLine(final Graphics g, final Collection points)
draw the points on the Graphics Context.
final int[] xpoints = new int[points.size()];
final int[] ypoints = new int[points.size()];
int npoints = 0;
final Iterator<?> iter = points.iterator();
while (iter.hasNext()) {
    Object obj = iter.next();
    if (obj instanceof Point) {
        final Point p = (Point) obj;
...
voiddrawPolyLine(Graphics g, int[] xs, int[] ys)
_more_
int i;
for (i = 1; i < xs.length; i++) {
    g.drawLine(xs[i - 1], ys[i - 1], xs[i], ys[i]);
g.drawLine(xs[i - 1], ys[i - 1], xs[0], ys[0]);