public class InfoField extends InterfaceObject
Constructor and Description |
---|
InfoField(float width,
float height,
org.newdawn.slick.GameContainer gc)
Information field constructor
|
InfoField(float width,
float height,
java.lang.String label,
org.newdawn.slick.GameContainer gc)
Information field constructor
|
Modifier and Type | Method and Description |
---|---|
void |
draw(float x,
float y,
boolean scaledPos)
Draws object
|
void |
draw(float x,
float y,
float width,
float height,
boolean scaledPos)
Draws object with specific width and height
|
void |
setText(java.lang.String text)
Sets specified text as field info
|
atCenter, 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 InfoField(float width, float height, java.lang.String label, org.newdawn.slick.GameContainer gc) throws org.newdawn.slick.SlickException, java.io.IOException, java.awt.FontFormatException
width
- Field widthheight
- Field heightlabel
- String with info textgc
- Slick game containerorg.newdawn.slick.SlickException
java.io.IOException
java.awt.FontFormatException
public InfoField(float width, float height, org.newdawn.slick.GameContainer gc) throws org.newdawn.slick.SlickException, java.io.IOException, java.awt.FontFormatException
width
- Field widthheight
- Field heightgc
- Slick game containerorg.newdawn.slick.SlickException
java.io.IOException
java.awt.FontFormatException
public void draw(float x, float y, boolean scaledPos)
InterfaceObject
draw
in class InterfaceObject
x
- Position on x axisy
- Position on y axisscaledPos
- True if object position should be scaledpublic void draw(float x, float y, float width, float height, boolean scaledPos)
InterfaceObject
draw
in class InterfaceObject
x
- Position on x axisy
- Position on y axiswidth
- Width for objectheight
- Height for objectscaledPos
- True if object position should be scaledpublic void setText(java.lang.String text)
text
- String with text