edu.ucla.stat.SOCR.games
Class HistogramGame

java.lang.Object
  extended by edu.ucla.stat.SOCR.core.SOCRValueSettable
      extended by edu.ucla.stat.SOCR.core.MultiplePartsPanel
          extended by edu.ucla.stat.SOCR.core.Game
              extended by edu.ucla.stat.SOCR.games.HistogramGame
All Implemented Interfaces:
IGame, IValueSettable, Pluginable, java.awt.event.ActionListener, java.awt.event.ItemListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener, java.util.Observer

public class HistogramGame
extends Game
implements java.awt.event.ItemListener

This class models an interactive historgram


Nested Class Summary
 
Nested classes/interfaces inherited from class edu.ucla.stat.SOCR.core.MultiplePartsPanel
MultiplePartsPanel.SOCRToolBar
 
Field Summary
 
Fields inherited from class edu.ucla.stat.SOCR.core.MultiplePartsPanel
applet, fName, graphs, mainPane, recordTable, tables, toolbar, toolbar2, toolbars
 
Constructor Summary
HistogramGame()
          This method initialize the applet
 
Method Summary
 void itemStateChanged(java.awt.event.ItemEvent event)
          This method handles the choice events associated with changes in the histogram type and changes in the type of summary statistics to display.
 void mouseClicked(java.awt.event.MouseEvent event)
          This method handles the mouse clicks that correspond to the user adding points to the data set.
 void reset()
          This method resets the applet
 void update(java.util.Observable o, java.lang.Object arg)
           
 
Methods inherited from class edu.ucla.stat.SOCR.core.Game
actionPerformed, getAppletInfo, getDisplayPane, getInstance, getOnlineDescription, performAction, setAppletInfo, updateGame
 
Methods inherited from class edu.ucla.stat.SOCR.core.MultiplePartsPanel
addGraph, addTable, addTool, addTool2, addToolbar, format, getMainPanel, getName, getRecordTable, getTextPanel, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, play, removeToolbar, setApplet, setName
 
Methods inherited from class edu.ucla.stat.SOCR.core.SOCRValueSettable
createComponentSetter, createValueSetter, createValueSetter, createValueSetter, createValueSetter, getComponentSetter, getComponentSetters, getValueSetter, getValueSetters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.ucla.stat.SOCR.core.Pluginable
getName, setApplet
 

Constructor Detail

HistogramGame

public HistogramGame()
This method initialize the applet

Method Detail

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent event)
This method handles the choice events associated with changes in the histogram type and changes in the type of summary statistics to display.

Specified by:
itemStateChanged in interface java.awt.event.ItemListener

reset

public void reset()
This method resets the applet

Specified by:
reset in interface IGame
Overrides:
reset in class Game

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent event)
This method handles the mouse clicks that correspond to the user adding points to the data set.

Specified by:
mouseClicked in interface java.awt.event.MouseListener
Overrides:
mouseClicked in class MultiplePartsPanel

update

public void update(java.util.Observable o,
                   java.lang.Object arg)
Specified by:
update in interface java.util.Observer
Overrides:
update in class MultiplePartsPanel