public void put(String atrName, Object val) {
        if (atrName.equals(LABEL)) {
            v.setLabel((String) val);
        } else if (atrName.equals(SHAPE)) {
            v.setShape((GShape) val);
        } else if (atrName.equals(BORDER)) {
            v.setShapeStroke((GStroke) val);
        } else if (atrName.equals(LOCATION)) {
            v.setLocation((GraphPoint) val);
        } else if (atrName.equals(SIZE)) {
            v.setSize((GraphPoint) val);
        } else if (atrName.equals(MARK)) {
            v.setMark((Boolean) val);
        } else if (atrName.equals(SELECTED)) {
            v.setSelected((Boolean) val);
        } else if (atrName.equals(COLOR)) {
            v.setColor((Integer) val);
        } else if (atrName.equals(LABEL_LOCATION)) {
            v.setLabelLocation((GraphPoint) val);
        } else {
            v.setUserDefinedAttribute(atrName, val);
        }
    }