}
public EndData toEnd(Location loc, AttributeSet attrs) {
Location pt = loc.translate(dx, dy);
if (widthFixed != null) {
return new EndData(pt, widthFixed, type, exclude);
} else {
Object val = attrs.getValue(widthAttr);
if (!(val instanceof BitWidth)) {
throw new IllegalArgumentException("Width attribute not set");
}
return new EndData(pt, (BitWidth) val, type, exclude);
}
}