private void isWideTable ( TableCandidate tc ) { float docWidth = m_docInfo . getMaxX ( ) - m_docInfo . getMinX ( ) ; if ( ( ( ( tc . getCaptionX ( ) > ( ( docWidth - 30 ) / ( float ) 4.0 ) + m_docInfo . getMinX ( ) ) ) && ( tc . getCaptionX ( ) < docWidth / 2.5 ) ) || ( tc . getCaptonEndX ( ) - tc . getCaptionX ( ) > docWidth / ( float ) 1.85 ) ) { tc . setWideTable ( true ) ; // System.out.println(); // System.out.println("This is a wide table? " + tc.isWideTable()); } else { // System.out.println(); // System.out.println("This is a single-doc-column table!"); } }
Judges whether a table is a wide table or not by considering the width of the table