From 5e4034b5cba89460a62fa958fc78c2b85acb3d5f Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Tue, 7 Oct 2014 09:18:33 +0200 Subject: Repackage to org.cristalise --- .../cristalise/gui/graph/controller/Selection.java | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/main/java/org/cristalise/gui/graph/controller/Selection.java (limited to 'src/main/java/org/cristalise/gui/graph/controller/Selection.java') 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; + } +} -- cgit v1.2.3