public class TryLighting extends RunViewer implements SimpleObserver
| Constructor and Description |
|---|
TryLighting() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
GetUpdate()
Returns that flag indicating whether or not Update() should be
called in response to a state object's Notify().
|
static void |
main(java.lang.String[] args) |
protected void |
printLight(int index,
LightAttributes l) |
protected void |
printLights(LightList ll) |
void |
SetUpdate(boolean val)
Sets a flag in the implementing class that determines whether or
not the Update() method should be called in response to the
state object's Notify() method being called.
|
void |
Update(AttributeSubject s)
This method is called when an object observed by this object
is modified and its observers are notified by the state object's
Notify() method.
|
protected void |
work(java.lang.String[] args) |
printUsage, runpublic void Update(AttributeSubject s)
SimpleObserverUpdate in interface SimpleObservers - The state object that caused the Update() method to
be called.public void SetUpdate(boolean val)
SimpleObserverSetUpdate in interface SimpleObserverval - true if the Update() method should be called in response to
a Notify().public boolean GetUpdate()
SimpleObserverGetUpdate in interface SimpleObserverprotected void printLights(LightList ll)
protected void printLight(int index,
LightAttributes l)
public static void main(java.lang.String[] args)