public Bounds getOffsetBounds() {
   InstanceComponent c = comp;
   if (c == null) {
     return factory.getOffsetBounds(attrs);
   } else {
     Location loc = c.getLocation();
     return c.getBounds().translate(-loc.getX(), -loc.getY());
   }
 }
 public Bounds getBounds() {
   InstanceComponent c = comp;
   return c == null ? factory.getOffsetBounds(attrs) : c.getBounds();
 }