Package games.stendhal.client.sprite
Class TextSprite
java.lang.Object
games.stendhal.client.sprite.ImageSprite
games.stendhal.client.sprite.TextSprite
- All Implemented Interfaces:
Sprite
Outlined text representation of a string.
-
Method Summary
Modifier and TypeMethodDescriptionstatic TextSprite
createTextSprite(String text, Color textColor)
Create a newTextSprite
Methods inherited from class games.stendhal.client.sprite.ImageSprite
createRegion, draw, draw, getFrame, getGC, getGraphics, getHeight, getReference, getWidth, isConstant
-
Method Details
-
createTextSprite
Create a newTextSprite
- Parameters:
text
- The text to be renderedtextColor
- Color of the text- Returns:
- TextSprite with the wanted text
-