|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.rubecula.darwin.visualization.swing.Visualization_ com.rubecula.darwin.visualization.swing.Visualization_VisualizableListener com.rubecula.darwin.examples.pepperedmoth.Visualization_PepperedMoth
public final class Visualization_PepperedMoth
Lifespan: permanent.
Implementer of VisualizableListener
which updates a visualization
model, and which is specific to the peppered moth application in that it
chooses to ignore the control population for display purposes.
Field Summary |
---|
Fields inherited from class com.rubecula.darwin.visualization.swing.Visualization_ |
---|
LOG |
Constructor Summary | |
---|---|
Visualization_PepperedMoth(VisualizationFactory factory,
boolean verbose)
Constructor for a new Visualization_PepperedMoth |
Method Summary | |
---|---|
void |
onChange(Visualizable source,
java.lang.Object context)
if verbose, then we write out the current number of moths. |
Methods inherited from class com.rubecula.darwin.visualization.swing.Visualization_ |
---|
getVisualizerTabs, setVisualizerTabs, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Visualization_PepperedMoth(VisualizationFactory factory, boolean verbose)
Visualization_PepperedMoth
factory
- verbose
- true if caller wants extra information printed on each
population change.Method Detail |
---|
public void onChange(Visualizable source, java.lang.Object context)
onChange
in interface VisualizableListener
onChange
in class Visualization_VisualizableListener
source
- the source of the change, usually a population.context
- XXXVisualization_VisualizableListener.onChange(Visualizable,
Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |