*
* @param g Das Grafik-Feld.
*/
private void maleFeld(final Graphics g) {
LinkedList<Pixel> pixel;
Pixel aktPix;
Iterator<Pixel> it;
if (this.xRand == 0 && this.yRand == 0) {
this.xRand = g.getClipBounds().getX()
+ Konstanten.SIM_RAND_LINKS;
this.yRand = g.getClipBounds().getY()
+ Konstanten.SIM_RAND_OBEN;
}
this.laufendeNummer++;
this.berZuZeichnendePixel();
pixel = this.wartPixel;
it = pixel.iterator();
while (it.hasNext()) {
aktPix = (Pixel) it.next();
if (aktPix.farbe() == Konstanten.FARBE_ROB) {
g.setColor(Konstanten.C_VORDERGRUND);
} else if (aktPix.farbe() == Konstanten.FARBE_SEL) {
g.setColor(Konstanten.C_SPEZIAL);
} else if (aktPix.farbe() == Konstanten.FARBE_RAHMEN) {
g.setColor(Konstanten.C_RAHMEN);
} else if (aktPix.farbe() == Konstanten.FARBE_GGSTD) {
g.setColor(Konstanten.C_GEGENSTAND);
} else if (aktPix.farbe() >= 100 && aktPix.farbe() <= 125) {
// Benutzerfarben.
g.setColor(Konstanten.C_BENUTZER[aktPix.farbe() - 100]);
} else if (aktPix.farbe() == Konstanten.FARBE_DURCHLAESSIG) {
g.setColor(Konstanten.C_DURCHLAESSIG);
} else {
g.setColor(this.getBackground());
}