summaryrefslogtreecommitdiff
path: root/source/com/c2kernel/graph/model/Selection.java
diff options
context:
space:
mode:
Diffstat (limited to 'source/com/c2kernel/graph/model/Selection.java')
-rwxr-xr-xsource/com/c2kernel/graph/model/Selection.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/source/com/c2kernel/graph/model/Selection.java b/source/com/c2kernel/graph/model/Selection.java
new file mode 100755
index 0000000..dcc7b46
--- /dev/null
+++ b/source/com/c2kernel/graph/model/Selection.java
@@ -0,0 +1,35 @@
+package com.c2kernel.graph.model;
+
+import java.io.Serializable;
+
+
+
+public class Selection implements Serializable
+{
+ // Either a single edge can be selected or
+ // one or more vertices can be selected.
+ // It is impossible to select an edge and a
+ // vertex at the same time.
+ public DirectedEdge mEdge = null;
+ public Vertex[] mVertices = null;
+ public int mTopLeftX = 0;
+ public int mTopLeftY = 0;
+ public int mBottomRightX = 0;
+ public int mBottomRightY = 0;
+
+
+ public Selection(DirectedEdge edge,
+ Vertex[] vertices,
+ int topLeftX,
+ int topLeftY,
+ int bottomRightX,
+ int bottomRightY)
+ {
+ mEdge = edge;
+ mVertices = vertices;
+ mTopLeftX = topLeftX;
+ mTopLeftY = topLeftY;
+ mBottomRightX = bottomRightX;
+ mBottomRightY = bottomRightY;
+ }
+}