Beispiel #1
0
 /**
  * Check whether layer is overlapped with a higher visible layer in the layer stack of the window
  *
  * @param l layer to check overlapping
  * @return true if overlapped, false otherwise
  */
 public boolean isOverlapped(CLayer l) {
   synchronized (layers) {
     CLayerElement le = layers.find(l);
     if (le != null) {
       CLayer l2;
       for (le = le.getUpper(); le != null; le = le.getUpper()) {
         l2 = le.getLayer();
         if (l2.isVisible() && l.intersects(l2)) {
           return true;
         }
       }
     }
   }
   return false;
 }