public boolean clashesWith ( MapElementContainer other ) { // if either of the elements is always drawn, the elements do not clash if ( Display . ALWAYS == this . display || Display . ALWAYS == other . display ) { return false ; } return this . getBoundaryAbsolute ( ) . intersects ( other . getBoundaryAbsolute ( ) ) ; }
Returns if MapElementContainers clash with each other