constructor param tag type diagram creat tab diagram tag tag set layout border layout graph dn dj graph graph set draw size todo updat size diagram content global set statu bar statu bar adapt panel panel set layout border layout set border etch border etch border lower add graph border layout center add border layout center graph add graph select listen graph add mode chang listen 