}
public void paint(Graphics g) {
for (int i = 0; i < pitWidth; i++) {
for (int j = 0; j < pitHeight; j++) {
GlyphType type = (GlyphType)TYPEMAP.get(new Segment(i, j));
if (type == null) { type = GlyphType.PIT; }
Color color = colorMap.getColorFor(type);
g.setColor(color);
g.fillRect((scale * i), (scale * j), scale, scale);
}