package com.c2kernel.gui.graph.controller; import com.c2kernel.graph.model.DirectedEdge; import com.c2kernel.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; } }