Example #1
0
 public boolean extractSelectionText(
     StringBuffer buffer,
     boolean inSelection,
     RenderablePoint startPoint,
     RenderablePoint endPoint) {
   Iterator i = this.blocks.iterator();
   while (i.hasNext()) {
     Object c = i.next();
     if (c instanceof RBlock) {
       RBlock hp = (RBlock) c;
       boolean newInSelection = hp.extractSelectionText(buffer, inSelection, startPoint, endPoint);
       if (inSelection && !newInSelection) {
         return false;
       }
       inSelection = newInSelection;
     }
   }
   return inSelection;
 }