Author: allain.lalonde
Date: Tue Jul 14 12:19:36 2009
New Revision: 465
Modified:
piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/PLayerTest.java
Log:
Slight modification to MockPCamera for extensibility.
Modified:
piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/PLayerTest.java
==============================================================================
---
piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/PLayerTest.java
(original)
+++
piccolo2d.java/trunk/core/src/test/java/edu/umd/cs/piccolo/PLayerTest.java
Tue Jul 14 12:19:36 2009
@@ -112,20 +112,22 @@
class MockPCamera extends PCamera {
class Notification {
+ String type;
PBounds bounds;
//this should really be PLayer
PNode layer;
- Notification(PBounds bounds, PNode layer) {
+ Notification(String type, PBounds bounds, PNode layer) {
this.bounds = bounds;
this.layer = layer;
+ this.type = type;
}
}
List notifications = new ArrayList();
public void repaintFromLayer(PBounds bounds, PNode layer) {
- notifications.add(new Notification(bounds, layer));
+ notifications.add(new Notification("repaintFromLayer",
bounds, layer));
super.repaintFromLayer(bounds, layer);
}
}
--~--~---------~--~----~------------~-------~--~----~
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en
-~----------~----~----~----~------~----~------~--~---