public class InfoWindow extends InterfaceObject
Constructor and Description |
---|
InfoWindow(org.newdawn.slick.GameContainer gc,
java.lang.String textInfo)
Info window constructor
|
Modifier and Type | Method and Description |
---|---|
void |
draw(float x,
float y)
Draws window with information text split into lines
|
void |
setText(java.lang.String text)
Sets text to display
|
atCenter, draw, draw, draw, draw, draw, draw, draw, getDis, getPos, getScale, getScaledHeight, getScaledWidth, getSize, isMouseOver, setInfo, setPosition, setSize
bind, clampTexture, copy, destroy, draw, draw, draw, draw, draw, draw, drawCentered, drawEmbedded, drawEmbedded, drawEmbedded, drawFlash, drawFlash, drawFlash, drawSheared, drawSheared, drawWarped, endUse, ensureInverted, flushPixelData, getAlpha, getCenterOfRotationX, getCenterOfRotationY, getColor, getFilter, getFlippedCopy, getGraphics, getHeight, getName, getResourceReference, getRotation, getScaledCopy, getScaledCopy, getSubImage, getTexture, getTextureHeight, getTextureOffsetX, getTextureOffsetY, getTextureWidth, getWidth, isDestroyed, rotate, setAlpha, setCenterOfRotation, setColor, setColor, setFilter, setImageColor, setImageColor, setName, setRotation, setTexture, startUse, toString
public InfoWindow(org.newdawn.slick.GameContainer gc, java.lang.String textInfo) throws org.newdawn.slick.SlickException, java.io.IOException, java.awt.FontFormatException
gc
- Slick game containertextInfo
- Text for windoworg.newdawn.slick.SlickException
java.io.IOException
java.awt.FontFormatException
public void draw(float x, float y)
draw
in interface org.newdawn.slick.Renderable
draw
in class InterfaceObject
x
- Position on x axisy
- Position on y axispublic void setText(java.lang.String text)
text
- String with text