code: public Rectangle rectangle(float top, float bottom) {
          Rectangle tmp = new Rectangle(getLeft(), getBottom(), getRight(), getTop());
          tmp.cloneNonPositionParameters(this);
          if (getTop() > top) {
              tmp.setTop(top);
              tmp.setBorder(border - (border & TOP));
          }
          if (getBottom() < bottom) {
              tmp.setBottom(bottom);
              tmp.setBorder(border - (border & BOTTOM));
          }
          return tmp;
      }
docs: Gets a Rectangle that is altered to fit on the page.
  
  @param	top		the top position
  @param	bottom	the bottom position
  @return	a <CODE>Rectangle</CODE>