mirror of
https://github.com/jneug/zeichenmaschine.git
synced 2026-04-14 14:43:33 +02:00
DrawingLayer setzt Farben nun schon als Sandardwerte und nicht erst im Konstruktor
This commit is contained in:
@@ -8,11 +8,11 @@ import java.util.Stack;
|
|||||||
|
|
||||||
public class DrawingLayer extends Layer {
|
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;
|
protected Options.StrokeType strokeType = SOLID;
|
||||||
|
|
||||||
@@ -30,11 +30,6 @@ public class DrawingLayer extends Layer {
|
|||||||
public DrawingLayer() {
|
public DrawingLayer() {
|
||||||
super();
|
super();
|
||||||
transformStack.push(new AffineTransform());
|
transformStack.push(new AffineTransform());
|
||||||
|
|
||||||
strokeColor = Color.BLACK;
|
|
||||||
fillColor = Color.WHITE;
|
|
||||||
strokeWeight = 1.0;
|
|
||||||
|
|
||||||
fontMetrics = drawing.getFontMetrics();
|
fontMetrics = drawing.getFontMetrics();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user