@@ -82,9 +82,9 @@ public Button(Scene origin, Pointf location, Pointf initialSize) {
82
82
renderPath = DrawUtil .createPath (buttonCoords );
83
83
super .setCollisionPath (renderPath );
84
84
85
- this .setPaint ( DefaultFill ) ;
86
- this .setFont ( DefaultFont ) ;
87
- this .setText ( DefaultText ) ;
85
+ this .paint = DefaultFill ;
86
+ this .font = DefaultFont ;
87
+ this .text = DefaultText ;
88
88
89
89
setMetrics (FastJEngine .getDisplay ().getGraphics ());
90
90
}
@@ -105,9 +105,9 @@ public Button(SimpleManager origin, Pointf location, Pointf initialSize) {
105
105
renderPath = DrawUtil .createPath (buttonCoords );
106
106
super .setCollisionPath (renderPath );
107
107
108
- this .setPaint ( DefaultFill ) ;
109
- this .setFont ( DefaultFont ) ;
110
- this .setText ( DefaultText ) ;
108
+ this .paint = DefaultFill ;
109
+ this .font = DefaultFont ;
110
+ this .text = DefaultText ;
111
111
112
112
setMetrics (FastJEngine .getDisplay ().getGraphics ());
113
113
}
@@ -117,7 +117,7 @@ public Button(SimpleManager origin, Pointf location, Pointf initialSize) {
117
117
*
118
118
* @return The Button's {@code Paint}.
119
119
*/
120
- public Paint getPaint () {
120
+ public Paint getFill () {
121
121
return paint ;
122
122
}
123
123
@@ -127,7 +127,7 @@ public Paint getPaint() {
127
127
* @param paint The new paint for the button.
128
128
* @return The {@link Button}, for method chaining.
129
129
*/
130
- public Button setPaint (Paint paint ) {
130
+ public Button setFill (Paint paint ) {
131
131
this .paint = paint ;
132
132
return this ;
133
133
}
0 commit comments