Esempio n. 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));
 }
Esempio n. 2
0
 /**
  * to check if the two layouts' exact box overlapping if overlapping, then there must be at least
  * one of the vertices of box1 is inside box2 OR the other way around.
  *
  * @see binevi.View.LayoutInfo#overlapLayoutBox(LayoutInfo)
  */
 public boolean overlapLayoutBox(LayoutBox b2) {
   LayoutBox b = getExactLayoutBox();
   return b.overlapLayoutBox(b2);
 }