All pastes #439059 Raw Edit

Miscellany

public java v1 · immutable
·published 2007-04-14 00:53 UTC
rendered paste body
// Our arc classpublic class ArcParameters {	public int x, y,width, height, startAngle, arcAngle;	public ArcParameters(int x, int y, int width, int height, int startAngle, int arcAngle) {		this.x = x;		this.y = y;		this.width = width;		this.height = height;		this.startAngle = startAngle;		this.arcAngle = arcAngle;	}}// and wherever you draw the arcs...ArcParameters[] arcs = new ArcParameters[] { new ArcParameters(0, 0, 0, 0, 0, 0),						    new ArcParameters(0, 0, 0, 0, 0, 0),						    etc..... };for (ArcParameters a : arcs) {	graphics.drawArc(a.x, a.y, a.width, a.height, a.startAngle, a.arcAngle);}