h_offset = -d.width / 2;
v_offset = -d.height / 2;
}
else
{
Location labelLocation = (Location)v.getUserDatum("labelLocation");
Rectangle2D bounds = vertexShapeFunction.getShape(v).getBounds2D();
if (labelLocation == null) {
labelLocation = Location.Bottom; // default location
}