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