@ Override protected boolean isBefore ( int x , int y , Rectangle innerAlloc ) { // System.err.println("isBefore: " + innerAlloc + " my bounds " + // box.getAbsoluteBounds()); // System.err.println("XY: " + x + " : " + y); innerAlloc . setBounds ( box . getAbsoluteBounds ( ) ) ; if ( majorAxis == View . X_AXIS ) { return ( x < innerAlloc . x ) ; } else { return ( y < innerAlloc . y ) ; } }
Determines if a point falls before an allocated region .