Author: kono
Date: 2009-11-26 01:03:55 -0800 (Thu, 26 Nov 2009)
New Revision: 18598
Modified:
corelibs/trunk/giny/src/giny/model/NestedNetworkChangeEvent.java
corelibs/trunk/giny/src/giny/model/NestedNetworkChangeEventListener.java
Log:
Changed NestedNetworkEvent from interface to concrete class.
Modified: corelibs/trunk/giny/src/giny/model/NestedNetworkChangeEvent.java
===================================================================
--- corelibs/trunk/giny/src/giny/model/NestedNetworkChangeEvent.java
2009-11-26 07:38:00 UTC (rev 18597)
+++ corelibs/trunk/giny/src/giny/model/NestedNetworkChangeEvent.java
2009-11-26 09:03:55 UTC (rev 18598)
@@ -1,5 +1,7 @@
package giny.model;
+import java.util.EventObject;
+
import giny.view.GraphView;
/**
@@ -8,19 +10,38 @@
* @author kono
*
*/
-public interface NestedNetworkChangeEvent {
+public class NestedNetworkChangeEvent extends EventObject {
/**
*
+ */
+ private static final long serialVersionUID = -4279473805735358503L;
+
+ private final Node parentNode;
+ private final GraphView graphView;
+
+ public NestedNetworkChangeEvent(Object source, Node parentNode,
GraphView nestedGraphView) {
+ super(source);
+ this.parentNode = parentNode;
+ this.graphView = nestedGraphView;
+ }
+
+
+ /**
+ *
* @return Node points to the nested network.
*/
- public Node getNestedNode();
+ public Node getNestedNode() {
+ return parentNode;
+ }
+
/**
* Nested network view pointed by a node in other network.
* This can be null because network view may not be available at this
point.
*
* @return nested network.
*/
- public GraphView getNestedNetworkView();
-
+ public GraphView getNestedNetworkView() {
+ return this.graphView;
+ }
}
Modified:
corelibs/trunk/giny/src/giny/model/NestedNetworkChangeEventListener.java
===================================================================
--- corelibs/trunk/giny/src/giny/model/NestedNetworkChangeEventListener.java
2009-11-26 07:38:00 UTC (rev 18597)
+++ corelibs/trunk/giny/src/giny/model/NestedNetworkChangeEventListener.java
2009-11-26 09:03:55 UTC (rev 18598)
@@ -1,5 +1,7 @@
package giny.model;
+import java.util.EventListener;
+
/**
* Listener for nested network change events.
* <p>
@@ -8,7 +10,7 @@
* @author kono
*
*/
-public interface NestedNetworkChangeEventListener {
+public interface NestedNetworkChangeEventListener extends EventListener {
public void nestedNetworkChanged(NestedNetworkChangeEvent evt);
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.