Class NonGraphicViewDelegate

  extended by org.ascape.model.event.DefaultScapeListener
      extended by org.ascape.model.event.ScapeListenerDelegate
          extended by org.ascape.view.nonvis.NonGraphicViewDelegate
All Implemented Interfaces:, java.lang.Cloneable, java.util.EventListener, ScapeListener, HasName

public class NonGraphicViewDelegate
extends ScapeListenerDelegate

Manages the relationship between a nongraphic view and its scape, including listener registeration and managing calling appopriate view methods for scape events.

See Also:
Serialized Form

Field Summary
Fields inherited from class org.ascape.model.event.DefaultScapeListener
listeningToScape, name, scape
Constructor Summary
          Constructs the NonGraphicViewDelegate.
NonGraphicViewDelegate(ScapeListener scapeListener)
          Constructs the NonGraphicViewDelegate.
Method Summary
 void scapeNotification(ScapeEvent scapeEvent)
          Super method notifies this view that something has happened on the scape.
Methods inherited from class org.ascape.model.event.ScapeListenerDelegate
getScapeListener, notifyScapeUpdated, scapeRemoved, setScapeListener, toString
Methods inherited from class org.ascape.model.event.DefaultScapeListener
clone, environmentQuiting, getName, getScape, isGraphic, isLifeOfScape, isNotifyScapeAutomatically, scapeAdded, scapeClosing, scapeDeserialized, scapeInitialized, scapeIterated, scapeSetup, scapeStarted, scapeStopped, setName, setNotifyScapeAutomatically
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public NonGraphicViewDelegate()
Constructs the NonGraphicViewDelegate.


public NonGraphicViewDelegate(ScapeListener scapeListener)
Constructs the NonGraphicViewDelegate.

scapeListener - the view this delegate is managing scape relationships for
Method Detail


public void scapeNotification(ScapeEvent scapeEvent)
Super method notifies this view that something has happened on the scape. by calling updateScapeGraphics and then notifies the scape that this view has been updated.

Specified by:
scapeNotification in interface ScapeListener
scapeNotification in class ScapeListenerDelegate
scapeEvent - a scape event update

Copyright © 1998-2008 The Brookings Institution, NuTech Solutions, Metascape, LLC All Rights Reserved.