Klasse Constants kommentiert und refactored

This commit is contained in:
ngb
2022-07-12 23:22:35 +02:00
parent ec8e5cea91
commit 740bb37279
11 changed files with 1086 additions and 234 deletions

View File

@@ -1,7 +1,5 @@
package schule.ngb.zm;
import schule.ngb.zm.shapes.ShapesLayer;
import java.awt.Canvas;
import java.awt.Graphics;
import java.awt.Graphics2D;
@@ -37,12 +35,12 @@ public class Zeichenleinwand extends Canvas {
super.setSize(width, height);
this.setPreferredSize(this.getSize());
this.setMinimumSize(this.getSize());
this.setBackground(Constants.STD_BACKGROUND.getJavaColor());
this.setBackground(Constants.DEFAULT_BACKGROUND.getJavaColor());
// Liste der Ebenen initialisieren und die Standardebenen einfügen
layers = new LinkedList<>();
synchronized( layers ) {
layers.add(new ColorLayer(width, height, Constants.STD_BACKGROUND));
layers.add(new ColorLayer(width, height, Constants.DEFAULT_BACKGROUND));
}
}