Interne Verwendung von Settern
Zur Verbesserung der Überschreibbarkeit.
This commit is contained in:
parent
3bdf0daf79
commit
9344fc284b
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue