public void paint(Graphics g, PathState state) {
		Color oldColor = g.getColor();
		g.setColor(state.fillColor);
		g.fillPolygon(state.region.xpoints, state.region.ypoints, state.region.npoints);
		g.setColor(oldColor);
		g.drawPolygon(state.region.xpoints, state.region.ypoints, state.region.npoints);
		state.region = null;
	}