public void showText ( PdfTextArray text ) { if ( state . fontDetails == null ) throw new NullPointerException ( "Font and size must be set before writing any text" ) ; content . append ( "[" ) ; ArrayList arrayList = text . getArrayList ( ) ; boolean lastWasNumber = false ; for ( int k = 0 ; k < arrayList . size ( ) ; ++ k ) { Object obj = arrayList . get ( k ) ; if ( obj instanceof String ) { showText2 ( ( String ) obj ) ; lastWasNumber = false ; } else { if ( lastWasNumber ) content . append ( ' ' ) ; else lastWasNumber = true ; content . append ( ( ( Float ) obj ) . floatValue ( ) ) ; } } content . append ( "]TJ" ) . append_i ( separator ) ; }
Show an array of text .