bool addString(const string &st,const string &str) { if (idSet!=-1) { if (st==LABEL) graphBuilder->setNodeValue(idSet,"viewLabel",str); else graphBuilder->setNodeValue(idSet, st, str); } else nodeAttributeError(); return true; }
bool addBool(const string &st,const bool boolean) { if (idSet!=-1) graphBuilder->setNodeValue(idSet,st,boolean); else nodeAttributeError(); return true; }
bool addDouble(const string &st,const double real) { if (idSet!=-1) graphBuilder->setNodeValue(idSet, st, real); else nodeAttributeError(); return true; }
bool addInt(const string &st,const int id) { if (st==ID) { bool result=graphBuilder->addNode(id); if (result) idSet=id; else return false; } else { if (idSet!=-1) graphBuilder->setNodeValue(idSet, st, id); else nodeAttributeError(); } return true; }
void setColor(const Color &color) { graphBuilder->setNodeValue(idSet,"viewColor",color); }
void setCoord(const Coord &coord) { graphBuilder->setNodeValue(idSet,"viewLayout",coord); }
void setSize(const Size &size) { graphBuilder->setNodeValue(idSet,"viewSize",size); }