private static boolean overlaps_ ( String scl , int dim_a , int dim_b ) { if ( dim_a == dim_b ) { if ( dim_a != 1 ) { // Valid for area-area, Point-Point if ( scl . charAt ( 0 ) == ' ' && scl . charAt ( 1 ) == ' ' && scl . charAt ( 2 ) == ' ' && scl . charAt ( 3 ) == ' ' && scl . charAt ( 4 ) == ' ' && scl . charAt ( 5 ) == ' ' && scl . charAt ( 6 ) == ' ' && scl . charAt ( 7 ) == ' ' && scl . charAt ( 8 ) == ' ' ) return true ; return false ; } // Valid for Line-Line if ( scl . charAt ( 0 ) == ' ' && scl . charAt ( 1 ) == ' ' && scl . charAt ( 2 ) == ' ' && scl . charAt ( 3 ) == ' ' && scl . charAt ( 4 ) == ' ' && scl . charAt ( 5 ) == ' ' && scl . charAt ( 6 ) == ' ' && scl . charAt ( 7 ) == ' ' && scl . charAt ( 8 ) == ' ' ) return true ; } return false ; }
Checks whether the scl string is the overlaps relation .