예제 #1
0
		// -- FUNCTIONS --

		// finishes out the connection
		public void connect(Connection con)
		{
			if (!con.completeConnection(this)) { return; } // need actual deletion code for connection stuff?
			//maybe this function should return true if connection successful, false if not?

			// add connection to both nodes' collection
			m_connections.Add(con);
			con.getOrigin().addConnection(con);
		}
예제 #2
0
		// construction
		public ConnectionGraphic(Connection parent)
		{
			m_parent = parent;
			createDrawing();
		}
예제 #3
0
		public void removeConnection(Connection c) { m_connections.Remove(c); }
예제 #4
0
		public void addConnection(Connection c) { m_connections.Add(c); }
예제 #5
0
		// -- EVENT HANDLERS --

		private void evt_MouseDown(object sender, MouseEventArgs e)
		{
			Connection con = new Connection(m_parent);
			Master.log("Hey, creating a connection");
		}
예제 #6
0
		public static ConnectionGraphic createConnectionGraphic(Connection parent)
		{
			return new ConnectionGraphic(parent);
		}