예제 #1
0
 public int compare(LayoutInfo i1, LayoutInfo i2) {
   LayoutBox box1 = i1.getExactLayoutBox();
   LayoutBox box2 = i2.getExactLayoutBox();
   return (box1.size() < box2.size() ? -1 : (box1.size() == box2.size() ? 0 : 1));
 }
예제 #2
0
 /**
  * to check if the two layouts' exact box overlapping
  *
  * @see binevi.View.LayoutInfo#overlapLayoutBox(LayoutBox)
  */
 public boolean overlapLayoutBox(LayoutInfo i) {
   LayoutBox b2 = i.getExactLayoutBox();
   return overlapLayoutBox(b2);
 }