DrawingLayer setzt Farben nun schon als Sandardwerte und nicht erst im Konstruktor

This commit is contained in:
ngb
2022-01-06 22:22:10 +01:00
parent 72bc8f828f
commit 528206eda0

View File

@@ -8,11 +8,11 @@ import java.util.Stack;
public class DrawingLayer extends Layer {
protected Color strokeColor;
protected Color fillColor = STD_FILLCOLOR;
protected Color fillColor;
protected Color strokeColor = STD_STROKECOLOR;
protected double strokeWeight;
protected double strokeWeight = STD_STROKEWEIGHT;
protected Options.StrokeType strokeType = SOLID;
@@ -30,11 +30,6 @@ public class DrawingLayer extends Layer {
public DrawingLayer() {
super();
transformStack.push(new AffineTransform());
strokeColor = Color.BLACK;
fillColor = Color.WHITE;
strokeWeight = 1.0;
fontMetrics = drawing.getFontMetrics();
}