Name | Description |
---|---|
GraphEditor | Creates a simple graph control with some random nodes and connected edges. An event handler allows users to drag nodes around, keeping the edges connected. |
GraphEditor.NodeDragHandler | Simple event handler which applies the following actions to every node it is called on: * Turn node red when the mouse goes over the node * Turn node white when the mouse exits the node * Drag the node, and associated edges on mousedrag It assumes that the node's Tag references an ArrayList with a list of associated edges where each edge is a PPath which each have a Tag that references an ArrayList with a list of associated nodes. |