summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/gui/graph/controller/Selection.java
diff options
context:
space:
mode:
authorabranson <abranson@PCUWE01.cern.ch>2012-07-02 14:18:15 +0200
committerabranson <abranson@PCUWE01.cern.ch>2012-07-02 14:18:15 +0200
commitba883c45793b0bc0e2f9b1744f9bff6a0060c7a5 (patch)
tree3f68db856eb3a8ff47f6866e046c7e2a84ebce52 /src/main/java/com/c2kernel/gui/graph/controller/Selection.java
parentee7dcc739652fde6bc4226cdfca3913e397895f0 (diff)
ElasticBand and associated events refactored
Fixed CompActOutcome not showing when loaded Image loader refactored from kernel resource loader
Diffstat (limited to 'src/main/java/com/c2kernel/gui/graph/controller/Selection.java')
-rw-r--r--src/main/java/com/c2kernel/gui/graph/controller/Selection.java38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/main/java/com/c2kernel/gui/graph/controller/Selection.java b/src/main/java/com/c2kernel/gui/graph/controller/Selection.java
new file mode 100644
index 0000000..a05ff7f
--- /dev/null
+++ b/src/main/java/com/c2kernel/gui/graph/controller/Selection.java
@@ -0,0 +1,38 @@
+package com.c2kernel.gui.graph.controller;
+
+import java.io.Serializable;
+
+import com.c2kernel.graph.model.DirectedEdge;
+import com.c2kernel.graph.model.Vertex;
+
+
+
+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;
+ }
+}