public class VoterExperiment extends Experiment
MultiplePartsPanel.SOCRToolBarshowModelDistributionapplet, fName, graphs, mainPane, recordTable, tables, toolbar, toolbar2, toolbars| Constructor and Description |
|---|
VoterExperiment()
This method initializes the experiment, including the set of voters, the
toolbar with choices and labels.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doExperiment()
This method defines the experiment.
|
void |
itemStateChanged(java.awt.event.ItemEvent event)
This method handles the events associated with the stop choice and the
voter choice.
|
void |
mouseClicked(java.awt.event.MouseEvent event)
This method handles the mouse events that correspond to clicking on a
voter.
|
void |
mouseMoved(java.awt.event.MouseEvent event)
This method handles the mouse events that correspond moving the mouse
over the voters.
|
void |
reset()
This method resets the experiment.
|
void |
update()
This method updates the experiment, including the voters and the record
table.
|
actionPerformed, getAppletInfo, getDisplayPane, getInstance, getName, getOnlineDescription, getResultTable, getStopChoice, getStopFreq, getTime, getUpdateChoice, graphUpdate, initialize, resetUpdateCount, run, setShowModelDistribution, setStopFreq, setStopNow, step, stopaddGraph, addTable, addTool, addTool2, addToolbar, format, getMainPanel, getRecordTable, getTextPanel, mouseDragged, mouseEntered, mouseExited, mousePressed, mouseReleased, play, setApplet, setName, updatecreateComponentSetter, createValueSetter, createValueSetter, createValueSetter, createValueSetter, getComponentSetter, getComponentSetters, getValueSetter, getValueSettersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetAppletpublic VoterExperiment()
public void doExperiment()
doExperiment in interface IExperimentdoExperiment in class Experimentpublic void reset()
reset in interface IExperimentreset in class Experimentpublic void update()
update in interface IExperimentupdate in class Experimentpublic void itemStateChanged(java.awt.event.ItemEvent event)
itemStateChanged in interface java.awt.event.ItemListeneritemStateChanged in class Experimentpublic void mouseMoved(java.awt.event.MouseEvent event)
mouseMoved in interface java.awt.event.MouseMotionListenermouseMoved in class MultiplePartsPanelpublic void mouseClicked(java.awt.event.MouseEvent event)
mouseClicked in interface java.awt.event.MouseListenermouseClicked in class MultiplePartsPanel