mirror of
https://github.com/jneug/zeichenmaschine.git
synced 2026-04-14 14:43:33 +02:00
Interne Verwendung von Settern
Zur Verbesserung der Überschreibbarkeit.
This commit is contained in:
@@ -15,7 +15,7 @@ public abstract class FilledShape extends StrokedShape {
|
||||
}
|
||||
|
||||
public void setFillColor( Color color, int alpha ) {
|
||||
fillColor = new Color(color, alpha);
|
||||
setFillColor(new Color(color, alpha));
|
||||
}
|
||||
|
||||
public void setFillColor( int gray ) {
|
||||
@@ -23,7 +23,7 @@ public abstract class FilledShape extends StrokedShape {
|
||||
}
|
||||
|
||||
public void noFill() {
|
||||
fillColor = null;
|
||||
setFillColor(null);
|
||||
}
|
||||
|
||||
public void setFillColor( int gray, int alpha ) {
|
||||
|
||||
@@ -27,7 +27,7 @@ public abstract class StrokedShape extends Constants implements Drawable {
|
||||
}
|
||||
|
||||
public void setStrokeColor( Color color , int alpha ) {
|
||||
this.strokeColor = new Color(color, alpha);
|
||||
setStrokeColor(new Color(color, alpha));
|
||||
}
|
||||
|
||||
public void setStrokeColor( int gray ) {
|
||||
@@ -35,7 +35,7 @@ public abstract class StrokedShape extends Constants implements Drawable {
|
||||
}
|
||||
|
||||
public void noStroke() {
|
||||
strokeColor = null;
|
||||
setStrokeColor(null);
|
||||
}
|
||||
|
||||
public void setStrokeColor( int gray, int alpha ) {
|
||||
|
||||
Reference in New Issue
Block a user