diff options
Diffstat (limited to 'source/com/c2kernel/graph/model/Graphable.java')
| -rwxr-xr-x | source/com/c2kernel/graph/model/Graphable.java | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/source/com/c2kernel/graph/model/Graphable.java b/source/com/c2kernel/graph/model/Graphable.java new file mode 100755 index 0000000..5dde105 --- /dev/null +++ b/source/com/c2kernel/graph/model/Graphable.java @@ -0,0 +1,53 @@ +package com.c2kernel.graph.model;
+
+/**
+* @version $Revision: 1.6 $ $Date: 2003/05/12 13:10:20 $
+* @author $Author: abranson $
+*/
+
+import com.c2kernel.utils.CastorHashMap;
+
+abstract public class Graphable extends Vertex
+{
+
+ protected CastorHashMap mProperties = null;
+ public GraphModel children;
+
+ public void setProperties(CastorHashMap props)
+ {
+ mProperties = props;
+ }
+
+ public CastorHashMap getProperties()
+ {
+ return mProperties;
+ }
+ /** @associates Graphable that is directly containing it*/
+ private Graphable parent;
+
+ /**
+ * Returns the parent.
+ * @return Graphable
+ */
+ public Graphable getParent()
+ {
+ return parent;
+ }
+
+ /**
+ * Sets the parent.
+ * @param parent The parent to set
+ */
+ public void setParent(Graphable parent)
+ {
+ this.parent = parent;
+ }
+ public GraphModel getChildGraphModel() {
+ return children;
+ }
+
+ public Object getCreationContext() {
+ return this;
+ }
+
+}
|
