diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2014-10-07 09:18:33 +0200 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2014-10-07 09:18:33 +0200 |
| commit | 5e4034b5cba89460a62fa958fc78c2b85acb3d5f (patch) | |
| tree | aa8e32f014801459ad65acdf45eee70d16008fe6 /src/main/java/org/cristalise/gui/graph/controller/Selection.java | |
| parent | a5a9d90ec6714ad6a9358c35ca7093e5868373f7 (diff) | |
Repackage to org.cristalise
Diffstat (limited to 'src/main/java/org/cristalise/gui/graph/controller/Selection.java')
| -rw-r--r-- | src/main/java/org/cristalise/gui/graph/controller/Selection.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/main/java/org/cristalise/gui/graph/controller/Selection.java b/src/main/java/org/cristalise/gui/graph/controller/Selection.java new file mode 100644 index 0000000..cf634a7 --- /dev/null +++ b/src/main/java/org/cristalise/gui/graph/controller/Selection.java @@ -0,0 +1,36 @@ +package org.cristalise.gui.graph.controller;
+
+import org.cristalise.kernel.graph.model.DirectedEdge;
+import org.cristalise.kernel.graph.model.Vertex;
+
+
+
+public class Selection
+{
+ // 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;
+ }
+}
|
