|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ascape.model.event.DefaultScapeListener
org.ascape.model.event.ScapeListenerDelegate
org.ascape.view.vis.ComponentViewDelegate
public class ComponentViewDelegate
Manages the relationship between a component view and its scape, including determining when updates occur and managing the graphics recorder.
| Field Summary | |
|---|---|
protected int |
currentUpdate
The update currently being drawn. |
| Fields inherited from class org.ascape.model.event.DefaultScapeListener |
|---|
listeningToScape, name, scape |
| Constructor Summary | |
|---|---|
ComponentViewDelegate()
Constructs the ComponentViewDelegate. |
|
ComponentViewDelegate(ComponentView scapeView)
Constructs the ComponentViewDelegate. |
|
| Method Summary | |
|---|---|
void |
environmentQuiting(ScapeEvent scapeEvent)
Called before the environment quits. |
protected void |
forceScapeNotify()
Used to force a notification if the scape . |
void |
scapeAdded(ScapeEvent scapeEvent)
Notifies the listener that the scape has added it. |
void |
scapeClosing(ScapeEvent scapeEvent)
Method called as the scape is about to be closed. |
void |
scapeDeserialized(ScapeEvent scapeEvent)
Notifies the delegating view that something has happened on the scape. |
void |
scapeNotification(ScapeEvent scapeEvent)
Notifies the delegating view that something has happened on the scape. |
void |
setGraphicsRecorder(MovieRecorder recorder)
Sets the recorder that can be used to record the graphics of this view. |
void |
viewPainted()
Handles anything that should occur when a componenent paint happens. |
| Methods inherited from class org.ascape.model.event.ScapeListenerDelegate |
|---|
getScapeListener, notifyScapeUpdated, scapeRemoved, setScapeListener, toString |
| Methods inherited from class org.ascape.model.event.DefaultScapeListener |
|---|
clone, getName, getScape, isGraphic, isLifeOfScape, isNotifyScapeAutomatically, scapeInitialized, scapeIterated, scapeSetup, scapeStarted, scapeStopped, setName, setNotifyScapeAutomatically |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int currentUpdate
| Constructor Detail |
|---|
public ComponentViewDelegate()
public ComponentViewDelegate(ComponentView scapeView)
scapeView - the view this delegate is managing scape relationships for| Method Detail |
|---|
public void scapeAdded(ScapeEvent scapeEvent)
throws java.util.TooManyListenersException
scapeAdded in interface ScapeListenerscapeAdded in class DefaultScapeListenerscapeEvent - the scape added notification event
java.util.TooManyListenersException - the too many listeners exception
java.util.TooManyListenersException - on attempt to add this listener to another scape when one
has already been assignedpublic void scapeClosing(ScapeEvent scapeEvent)
scapeClosing in interface ScapeListenerscapeClosing in class DefaultScapeListenerscapeEvent - the scape eventpublic void environmentQuiting(ScapeEvent scapeEvent)
environmentQuiting in interface ScapeListenerenvironmentQuiting in class DefaultScapeListenerscapeEvent - the scape eventpublic void scapeNotification(ScapeEvent scapeEvent)
scapeNotification in interface ScapeListenerscapeNotification in class ScapeListenerDelegatescapeEvent - a scape event updatepublic void scapeDeserialized(ScapeEvent scapeEvent)
scapeDeserialized in interface ScapeListenerscapeDeserialized in class DefaultScapeListenerscapeEvent - a scape event updatepublic void viewPainted()
protected void forceScapeNotify()
public void setGraphicsRecorder(MovieRecorder recorder)
recorder - the recorder
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||