|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.newdawn.slick.util.InputAdapter org.newdawn.slick.gui.AbstractComponent org.newdawn.slick.gui.BasicComponent
public abstract class BasicComponent
Renamed to provide backwards compatibility
Field Summary | |
---|---|
protected int |
height
Deprecated. The height of the component |
protected int |
width
Deprecated. The width of the component |
protected int |
x
Deprecated. The x position of the component |
protected int |
y
Deprecated. The y position of the component |
Fields inherited from class org.newdawn.slick.gui.AbstractComponent |
---|
container, input, listeners |
Constructor Summary | |
---|---|
BasicComponent(GUIContext container)
Deprecated. Create a new component |
Method Summary | |
---|---|
int |
getHeight()
Deprecated. Get the height of the component |
int |
getWidth()
Deprecated. Get the width of the component |
int |
getX()
Deprecated. Returns the position in the X coordinate |
int |
getY()
Deprecated. Returns the position in the Y coordinate |
void |
render(GUIContext container,
Graphics g)
Deprecated. Render this component to the screen |
abstract void |
renderImpl(GUIContext container,
Graphics g)
Deprecated. Allow the sub-component to render |
void |
setLocation(int x,
int y)
Deprecated. Moves the component. |
Methods inherited from class org.newdawn.slick.gui.AbstractComponent |
---|
addListener, consumeEvent, hasFocus, mouseReleased, notifyListeners, removeListener, setFocus |
Methods inherited from class org.newdawn.slick.util.InputAdapter |
---|
controllerButtonPressed, controllerButtonReleased, controllerDownPressed, controllerDownReleased, controllerLeftPressed, controllerLeftReleased, controllerRightPressed, controllerRightReleased, controllerUpPressed, controllerUpReleased, inputEnded, inputStarted, isAcceptingInput, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mousePressed, mouseWheelMoved, setAcceptingInput, setInput |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int x
protected int y
protected int width
protected int height
Constructor Detail |
---|
public BasicComponent(GUIContext container)
container
- The container displaying this componentMethod Detail |
---|
public int getHeight()
AbstractComponent
getHeight
in class AbstractComponent
AbstractComponent.getHeight()
public int getWidth()
AbstractComponent
getWidth
in class AbstractComponent
AbstractComponent.getWidth()
public int getX()
AbstractComponent
getX
in class AbstractComponent
AbstractComponent.getX()
public int getY()
AbstractComponent
getY
in class AbstractComponent
AbstractComponent.getY()
public abstract void renderImpl(GUIContext container, Graphics g)
container
- The container holding the GUIg
- The graphics context into which we should renderpublic void render(GUIContext container, Graphics g) throws SlickException
AbstractComponent
render
in class AbstractComponent
container
- The container displaying this componentg
- The graphics context used to render to the display
SlickException
- If there has been an error rendering the componentAbstractComponent.render(org.newdawn.slick.gui.GUIContext, org.newdawn.slick.Graphics)
public void setLocation(int x, int y)
AbstractComponent
setLocation
in class AbstractComponent
x
- X coordinatey
- Y coordinateAbstractComponent.setLocation(int, int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |