org.deken.game.component
Class GTextContainer
java.lang.Object
org.deken.game.sprites.Sprite
org.deken.game.component.GComponent
org.deken.game.component.GTextContainer
- All Implemented Interfaces:
- InputMouseListener, Updateable
- Direct Known Subclasses:
- GButton, GLabel, GTextEntry
public abstract class GTextContainer
- extends GComponent
Title: GTextContainer
Description: The GTextContainer is a convenience object that hold a GText and
Animation. It purpose is to allow GLabels and GButtons to be of the same type
of object.
Copyright: Copyright (c) Feb 10, 2013
- Version:
- 1.0
- Author:
- Gary Deken
Fields inherited from class org.deken.game.component.GComponent |
horizontalAlignment, id, invalid, keyPolling, mouseActions, parent, requestKeyPolling, screenHeight, screenWidth, verticalAlignment, xOffSet, yOffSet |
Methods inherited from class org.deken.game.component.GComponent |
addMouseAction, copy, copyBase, draw, getHorizontalAlignment, getMouseActions, getParent, getVerticalAlignment, getXLocation, getYLocation, isEnabled, positionHorizontalAlignment, positionVerticalAlignment, requestKeyPolling, setEnabled, setHorizontalAlignment, setKeyPolling, setMonitored, setParent, setVerticalAlignment, update, validate |
Methods inherited from class org.deken.game.sprites.Sprite |
getBounds, getDepth, getHeight, getLocation, getName, getSize, getWidth, removeFromMap, setBoundingBox, setBoundingBox, setCollisionMap, setLocation, setName, setSize, spriteCollison, toString, updateLocation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
gText
protected GText gText
baseAnimation
protected Animation baseAnimation
GTextContainer
public GTextContainer()
addGText
public abstract void addGText(GText gText)
addAnimation
public abstract void addAnimation(int id,
Animation animation)
addFontColor
public abstract void addFontColor(int id,
java.awt.Color color)
getBaseAnimation
public Animation getBaseAnimation()
getGText
public GText getGText()
hasListeners
public boolean hasListeners()
- Convenience method for determining if child has InputListeners.
- Returns:
setInvalid
public void setInvalid()
- Description copied from class:
GComponent
- Makes this GComponent invalid, so that it will be re-validated.
- Overrides:
setInvalid
in class GComponent