public void draw(final Graphics2D g, final int width, final int height) {
		g.setBackground(Color.WHITE);
		g.clearRect(0, 0, width, height);

		g.setRenderingHint(KEY_ANTIALIASING, VALUE_ANTIALIAS_ON);
		g.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER));

		for (PolygonGene gene : this) {
			gene.allele().draw(g, width, height);
		}
	}
A simple chromosome representing a list of polygons.
jenetics.example/src/main/java/io/jenetics/example/image/PolygonChromosome.java