org.deken.game.component
Class GWindow.CloseButton

java.lang.Object
  extended by org.deken.game.sprites.Sprite
      extended by org.deken.game.component.GComponent
          extended by org.deken.game.component.GTextContainer
              extended by org.deken.game.component.GButton
                  extended by org.deken.game.component.GWindow.CloseButton
All Implemented Interfaces:
InputListener, InputMouseListener, Updateable
Enclosing class:
GWindow

public class GWindow.CloseButton
extends GButton


Nested Class Summary
 
Nested classes/interfaces inherited from class org.deken.game.component.GComponent
GComponent.Alignment, GComponent.MouseActions
 
Field Summary
 
Fields inherited from class org.deken.game.component.GButton
ANIMATION_DEFAULT, ANIMATION_DIABLED, ANIMATION_PRESSED, ANIMATION_ROLLOVER, animationIndex, buttonListeners, buttonNotify
 
Fields inherited from class org.deken.game.component.GTextContainer
baseAnimation, gText
 
Fields inherited from class org.deken.game.component.GComponent
horizontalAlignment, id, invalid, keyPolling, mouseActions, parent, requestKeyPolling, screenHeight, screenWidth, verticalAlignment, xOffSet, yOffSet
 
Fields inherited from class org.deken.game.sprites.Sprite
boundingBox, collisionMap, location, size
 
Constructor Summary
GWindow.CloseButton(GLabel heading)
           
 
Method Summary
 void draw(java.awt.Graphics2D graphics, int xOffset, int yOffset)
          Draws the sprite with the current offset.
 void validate(java.awt.Graphics2D graphics)
           
 
Methods inherited from class org.deken.game.component.GButton
addAnimation, addFontColor, addGText, addInputAction, addKeyAction, addListener, copy, copyGButtonBase, getAlignment, getAnimation, getAnimation, getFontHighlightColor, getImage, getInputActionIds, getKeyAssociated, hasListeners, notifyListener, notifyListener, setAlignment, setAnimation, setEnabled, setFontHighlightColor, setGText, setKeyAssociated, setMonitored, spriteCollison, update
 
Methods inherited from class org.deken.game.component.GTextContainer
getBaseAnimation, getGText, setInvalid
 
Methods inherited from class org.deken.game.component.GComponent
addMouseAction, copyBase, getHorizontalAlignment, getMouseActions, getParent, getVerticalAlignment, getXLocation, getYLocation, isEnabled, positionHorizontalAlignment, positionVerticalAlignment, requestKeyPolling, setHorizontalAlignment, setKeyPolling, setParent, setVerticalAlignment
 
Methods inherited from class org.deken.game.sprites.Sprite
getBounds, getDepth, getHeight, getLocation, getName, getSize, getWidth, removeFromMap, setBoundingBox, setBoundingBox, setCollisionMap, setLocation, setName, setSize, toString, updateLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GWindow.CloseButton

public GWindow.CloseButton(GLabel heading)
Method Detail

draw

public void draw(java.awt.Graphics2D graphics,
                 int xOffset,
                 int yOffset)
Description copied from class: GComponent
Draws the sprite with the current offset.

Overrides:
draw in class GButton

validate

public void validate(java.awt.Graphics2D graphics)
Overrides:
validate in class GButton