code: public void clipAbsoluteBounds(Rectangle clip)
      {
          Rectangle inter = absbounds.intersection(clip);
          if (inter.width == 0 && inter.height == 0)
              displayed = false;
          else
              absbounds = inter;
      }
docs: Adjusts the absolute bounds width and height in order to fit into the clip.
  If the box doesn't fit at all, it is marked as invisible.