Interne Verwendung von Settern

Zur Verbesserung der Überschreibbarkeit.
This commit is contained in:
ngb
2022-06-29 22:28:40 +02:00
parent 3bdf0daf79
commit 9344fc284b
2 changed files with 4 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ public abstract class FilledShape extends StrokedShape {
} }
public void setFillColor( Color color, int alpha ) { public void setFillColor( Color color, int alpha ) {
fillColor = new Color(color, alpha); setFillColor(new Color(color, alpha));
} }
public void setFillColor( int gray ) { public void setFillColor( int gray ) {
@@ -23,7 +23,7 @@ public abstract class FilledShape extends StrokedShape {
} }
public void noFill() { public void noFill() {
fillColor = null; setFillColor(null);
} }
public void setFillColor( int gray, int alpha ) { public void setFillColor( int gray, int alpha ) {

View File

@@ -27,7 +27,7 @@ public abstract class StrokedShape extends Constants implements Drawable {
} }
public void setStrokeColor( Color color , int alpha ) { public void setStrokeColor( Color color , int alpha ) {
this.strokeColor = new Color(color, alpha); setStrokeColor(new Color(color, alpha));
} }
public void setStrokeColor( int gray ) { public void setStrokeColor( int gray ) {
@@ -35,7 +35,7 @@ public abstract class StrokedShape extends Constants implements Drawable {
} }
public void noStroke() { public void noStroke() {
strokeColor = null; setStrokeColor(null);
} }
public void setStrokeColor( int gray, int alpha ) { public void setStrokeColor( int gray, int alpha ) {