List of utility methods to do Draw Polyline
void | drawPolyLine(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; ... |
void | drawPolyLine(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]); |