|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbecker.xtras.nameSurfer.SampleNameSurferModel
public final class SampleNameSurferModel
The model for the nameSurfer program specifies which names to graph.
| Constructor Summary | |
|---|---|
SampleNameSurferModel(INameList nameList)
Construct a new model. |
|
| Method Summary | |
|---|---|
void |
addView(IView view)
Add a view to a list of views. |
void |
clearGraph()
Clear the set of names to graph. |
INameInfo[] |
getNameSet()
Get the set of names to graph. |
void |
graphName(String name)
Find the popularity rankings for the given name and add it to the set of names to graph. |
void |
removeView(IView view)
Remove a specific view from the list of views. |
void |
updateAllViews()
Update all the views that have been added to this model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SampleNameSurferModel(INameList nameList)
nameList - The set of names and their popularity data.| Method Detail |
|---|
public void graphName(String name)
INameSurferModel
graphName in interface INameSurferModelname - The name to graph.public void clearGraph()
INameSurferModel
clearGraph in interface INameSurferModelpublic INameInfo[] getNameSet()
INameSurferModel
getNameSet in interface INameSurferModelpublic void addView(IView view)
IModel
addView in interface IModelview - The view to add.public void removeView(IView view)
IModel
removeView in interface IModelview - The view to remove.public void updateAllViews()
IModel
updateAllViews in interface IModel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||