Class gjt.StateButton
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gjt.StateButton

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----gjt.ImageButton
                           |
                           +----gjt.StateButton

public class StateButton
extends ImageButton
An ImageButton that cycles through a series of images. The image advances to the next image in the series every time the button is activated.

Note that the cycling is actually performed by the buttons' controller - a StateButtonController.

See Also:
ImageButton, StateButtonController, StateButtonTest

Constructor Index

 o StateButton(Image[])

Method Index

 o nextImage()
 o state()

Constructors

 o StateButton
  public StateButton(Image images[])

Methods

 o nextImage
  public Image nextImage()
 o state
  public int state()

All Packages  Class Hierarchy  This Package  Previous  Next  Index