public Paragraph < PS , SEG , S > restyle ( S style ) { return new Paragraph <> ( paragraphStyle , segmentOps , segments , StyleSpans . singleton ( style , length ( ) ) ) ; }
Restyles every segment in the paragraph to have the given style .