* See the License for the specific language governing permissions and\r
* limitations under the License.\r
******************************************************************************/\r
+\r
package com.badlogic.gdx.scenes.scene2d.actors;\r
\r
import com.badlogic.gdx.graphics.g2d.BitmapFont;\r
}\r
}\r
\r
- @Override public void draw (SpriteBatch batch, float parentAlpha) {\r
+ @Override\r
+ public void draw (SpriteBatch batch, float parentAlpha) {\r
cache.setColor(color.r, color.g, color.b, color.a * parentAlpha);\r
switch (valign) {\r
case TOP:\r
cache.draw(batch);\r
}\r
\r
- @Override public boolean touchDown (float x, float y, int pointer) {\r
+ @Override\r
+ public boolean touchDown (float x, float y, int pointer) {\r
if (!touchable) return false;\r
return x > 0 && y > 0 && x < width && y < height;\r
}\r
\r
- @Override public boolean touchUp (float x, float y, int pointer) {\r
+ @Override\r
+ public boolean touchUp (float x, float y, int pointer) {\r
if (!touchable) return false;\r
return x > 0 && y > 0 && x < width && y < height;\r
}\r
\r
- @Override public boolean touchDragged (float x, float y, int pointer) {\r
+ @Override\r
+ public boolean touchDragged (float x, float y, int pointer) {\r
if (!touchable) return false;\r
return x > 0 && y > 0 && x < width && y < height;\r
}\r
\r
- @Override public Actor hit (float x, float y) {\r
+ @Override\r
+ public Actor hit (float x, float y) {\r
return x > 0 && y > 0 && x < width && y < height ? this : null;\r
}\r
\r