//-*-c++-*- #include #include using namespace std; /// class FitToLabel:public Sizes { public: FitToLabel(PropertyContext *context):Sizes(context){} ~FitToLabel(){} Size getNodeValue(const node n) { StringProxy *entryLabel=getProxy(superGraph,"viewLabel"); string tmpStr=entryLabel->getNodeValue(n); return Size(tmpStr.length()*2,1.90,1); } bool run() { sizesProxy->setAllEdgeValue(Size(0.25,0.25,1)); return true; } }; SIZESPLUGIN(FitToLabel,"Fit to label","Auber","08/08/2001","0","0","1");