A C D E G I P R S U

A

actionPerformed(ActionEvent) - Method in class unl.cusack.estimator.EstimatorController
From the ActionListener interface.
addEstimatorListener(EstimatorListener) - Method in class unl.cusack.estimator.EstimatorModel
Add a listener the the list

C

computePiEstimate(int) - Method in class unl.cusack.estimator.PiEstimatorModel
Computes the partial sum to estimate pi.

D

dataChanged() - Method in class unl.cusack.estimator.EstimatorModel
If any of the data in the model changes, this method takes care of recalculating the estimates, and informing the listeners of the fact that the model has changed.
drawData() - Method in class unl.cusack.estimator.EstimatorView1
Get the data from the model and draw it on the panel.

E

estimates - Variable in class unl.cusack.estimator.EstimatorModel
 
EstimatorController - class unl.cusack.estimator.EstimatorController.
The controller class for use with an EstimatorModel class, and any associated view(s).
EstimatorController(EstimatorModel) - Constructor for class unl.cusack.estimator.EstimatorController
The constructor
estimatorDataChanged(EstimatorEvent) - Method in class unl.cusack.estimator.EstimatorView2
From EstimatorListener interface Re-draw the data
estimatorDataChanged(EstimatorEvent) - Method in class unl.cusack.estimator.EstimatorView1
From EstimatorListener interface Simple re-draw the data.
estimatorDataChanged(EstimatorEvent) - Method in interface unl.cusack.estimator.EstimatorListener
 
EstimatorEvent - class unl.cusack.estimator.EstimatorEvent.
The class which represents events in the Estimator Model.
EstimatorEvent(Object) - Constructor for class unl.cusack.estimator.EstimatorEvent
The constructor
EstimatorListener - interface unl.cusack.estimator.EstimatorListener.
The interface that must be implemented to listen for events associated with the EstimatorModel.
estimatorListeners - Variable in class unl.cusack.estimator.EstimatorModel
 
EstimatorModel - class unl.cusack.estimator.EstimatorModel.
The EstimatorModel is the model of an estimator.
EstimatorModel() - Constructor for class unl.cusack.estimator.EstimatorModel
The constructor, assuming an empty model
EstimatorView1 - class unl.cusack.estimator.EstimatorView1.
A text view to go along with an EstimatorModel and EstimatorController.
EstimatorView1() - Constructor for class unl.cusack.estimator.EstimatorView1
The constructor.
EstimatorView2 - class unl.cusack.estimator.EstimatorView2.
A graphical view to be used with EstimatorModel and EstimatorController.
EstimatorView2() - Constructor for class unl.cusack.estimator.EstimatorView2
The plain-jane constructor

G

getEstimate(int) - Method in class unl.cusack.estimator.EstimatorModel
Get the nth estimate from the list
getEstimatorInterval() - Method in class unl.cusack.estimator.EstimatorModel
 
getFirstEstimate() - Method in class unl.cusack.estimator.EstimatorModel
Get the index of the first stored estimate
getMaximumEstimate() - Method in class unl.cusack.estimator.EstimatorModel
 
getMinimumEstimate() - Method in class unl.cusack.estimator.EstimatorModel
 
getNumberOfEstimates() - Method in class unl.cusack.estimator.EstimatorModel
 
getSource() - Method in class unl.cusack.estimator.EstimatorEvent
Get the source of the event

I

init() - Method in class unl.cusack.estimator.PiEstimator
The init() from JApplet Set up the model, controller, and 2 views.

P

paintComponent(Graphics) - Method in class unl.cusack.estimator.EstimatorView2
Overriden paintComponent, used to display the graph on the panel.
PiEstimator - class unl.cusack.estimator.PiEstimator.
The PiEstimator, which brings the model, view, and controller together to form the final applet.
PiEstimator() - Constructor for class unl.cusack.estimator.PiEstimator
 
PiEstimatorModel - class unl.cusack.estimator.PiEstimatorModel.
A subclass of EstimatorModel that estimates the value of PI by using the formula pi=4-(4/3)+(4/5)-(4/7)+...
PiEstimatorModel() - Constructor for class unl.cusack.estimator.PiEstimatorModel
The plain-jane constructor.

R

recalculateEstimates() - Method in class unl.cusack.estimator.PiEstimatorModel
From the abstract classs recalculates each of the estimates, based on the formula, and the parameters.
recalculateEstimates() - Method in class unl.cusack.estimator.EstimatorModel
 

S

setEstimateInterval(int) - Method in class unl.cusack.estimator.EstimatorModel
Set the desired interval between estimates to n
setFirstEstimate(int) - Method in class unl.cusack.estimator.EstimatorModel
Set the index of the first estimate to n
setNumberOfEstimates(int) - Method in class unl.cusack.estimator.EstimatorModel
Sets the number of estimates to n
setParameters(int, int, int) - Method in class unl.cusack.estimator.EstimatorModel
Set all of the parameters of the model
setSource(Object) - Method in class unl.cusack.estimator.EstimatorEvent
Set the source of the event

U

unl.cusack.estimator - package unl.cusack.estimator
The package unl.cusack.estimator is a group of files that demonstrates the basics of a model-view-controller applet.

A C D E G I P R S U