public void paint(Graphics g) {
		if (vertexList.size() == 0) return;
		Polygon p = getPolygon();
		if (isFilled()) {
			g.setColor(getFillColor());
			g.fillPolygon(p.xpoints, p.ypoints, p.npoints);
			g.setColor(getColor());
		}
		g.drawPolygon(p.xpoints, p.ypoints, p.npoints);
	}