Beispiel #1
0
 /**
  * Determine if the provided bounding box intersects with an existing element on the page. Returns
  * true if an intersection occurs, false if not.
  *
  * @param bounds The bounding box to check
  * @return If an intersection occurs
  */
 public Element intersectsElement(ObjectBounds bounds) {
   for (Element element : staticElements)
     if (element.bounds() != null && element.bounds().intersects(bounds)) return element;
   return null;
 }
Beispiel #2
0
 /**
  * Push an element onto the page, unchecked.
  *
  * @param element The element to push
  */
 public void push(Element element) {
   if (!element.canCompileRender()) dynamicElements.add(element);
   else staticElements.add(element);
 }