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 Location getLocation() { InstanceComponent c = comp; return c == null ? Location.create(0, 0) : c.getLocation(); }