All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gjt.StateButton

java.lang.Object
   |
   +----java.awt.Component
           |
           +----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[])
 o StateButton(Image[], int)

Method Index

 o advanceImage()
 o nextImage()
 o state()

Constructors

 o StateButton
 public StateButton(Image images[])
 o StateButton
 public StateButton(Image images[],
                    int thickness)

Methods

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index