コード例 #1
0
 public ZLTextElementArea getEndArea(ZLTextPage page) {
   if (isEmpty()) {
     return null;
   }
   final ZLTextElementAreaVector vector = page.TextElementMap;
   final ZLTextRegion region = vector.getRegion(myRightMostRegionSoul);
   if (region != null) {
     return region.getLastArea();
   }
   final ZLTextElementArea lastArea = vector.getLastArea();
   if (lastArea != null && myRightMostRegionSoul.compareTo(lastArea) >= 0) {
     return lastArea;
   }
   return null;
 }
コード例 #2
0
 public ZLTextElementArea getStartArea(ZLTextPage page) {
   if (isEmpty()) {
     return null;
   }
   final ZLTextElementAreaVector vector = page.TextElementMap;
   final ZLTextRegion region = vector.getRegion(myLeftMostRegionSoul);
   if (region != null) {
     return region.getFirstArea();
   }
   final ZLTextElementArea firstArea = vector.getFirstArea();
   if (firstArea != null && myLeftMostRegionSoul.compareTo(firstArea) <= 0) {
     return firstArea;
   }
   return null;
 }