From ba883c45793b0bc0e2f9b1744f9bff6a0060c7a5 Mon Sep 17 00:00:00 2001 From: abranson Date: Mon, 2 Jul 2012 14:18:15 +0200 Subject: ElasticBand and associated events refactored Fixed CompActOutcome not showing when loaded Image loader refactored from kernel resource loader --- .../c2kernel/gui/graph/controller/Selection.java | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/main/java/com/c2kernel/gui/graph/controller/Selection.java (limited to 'src/main/java/com/c2kernel/gui/graph/controller/Selection.java') 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; + } +} -- cgit v1.2.3