Class edu.cornell.lassp.mck10.HysteresisApplet.StopButton
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class edu.cornell.lassp.mck10.HysteresisApplet.StopButton

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Button
                   |
                   +----edu.cornell.lassp.mck10.HysteresisApplet.StopButton

public class StopButton
extends Button
The StopButton class allows the user to stop the hysteresis model modeled in the HysteresisLattice class by pressing a button.

Source Code is available.

Version:
1.0
Author:
Matt Kuntz (e-mail: mck10@cornell.edu)

Constructor Index

 o StopButton(HysteresisLattice)
The StopButton(model) constructor attaches the button to a model.

Method Index

 o action(Event, Object)
The action(e,obj) method is called when the button is pressed.

Constructors

 o StopButton
  public StopButton(HysteresisLattice model)
The StopButton(model) constructor attaches the button to a model.
Parameters:
model - The model which the button will stop.

Methods

 o action
  public boolean action(Event e,
                        Object obj)
The action(e,obj) method is called when the button is pressed. It just stops the model and returns true to indicate that the event has been processed.
Parameters:
e - The event which has occurred.
obj - An unused parameter.
Overrides:
action in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index