The sample below uses decorated tables to display diagram entities. Tables have anchor points associated with each row, defining where incoming and outgoing connections dock to tables. There are also ShapeNode objects attached to the bottom of each table that act as buttons - try clicking any of those!