Tabnine Logo
Chunk.isWhitespace
Code IndexAdd Tabnine to your IDE (free)

How to use
isWhitespace
method
in
com.itextpdf.text.Chunk

Best Java code snippets using com.itextpdf.text.Chunk.isWhitespace (Showing top 2 results out of 315)

origin: com.itextpdf/itextg

public boolean trim() {
  while (this.size() > 0) {
    Element firstChunk = this.get(0);
    if (firstChunk instanceof Chunk && ((Chunk)firstChunk).isWhitespace()) {
      this.remove(firstChunk);
    } else {
      break;
    }
  }
  while (this.size() > 0) {
    Element lastChunk = this.get(this.size() - 1);
    if (lastChunk instanceof Chunk && ((Chunk)lastChunk).isWhitespace()) {
      this.remove(lastChunk);
    } else {
      break;
    }
  }
  return size() > 0;
}
origin: com.itextpdf/itextpdf

public boolean trim() {
  while (this.size() > 0) {
    Element firstChunk = this.get(0);
    if (firstChunk instanceof Chunk && ((Chunk)firstChunk).isWhitespace()) {
      this.remove(firstChunk);
    } else {
      break;
    }
  }
  while (this.size() > 0) {
    Element lastChunk = this.get(this.size() - 1);
    if (lastChunk instanceof Chunk && ((Chunk)lastChunk).isWhitespace()) {
      this.remove(lastChunk);
    } else {
      break;
    }
  }
  return size() > 0;
}
com.itextpdf.textChunkisWhitespace

Popular methods of Chunk

  • <init>
    Constructs a chunk of text with a certain content and a certain Font.
  • setBackground
    Sets the color and the size of the background Chunk.
  • getContent
    Returns the content of this Chunk.
  • getWidthPoint
    Gets the width of the Chunk in points.
  • setGenericTag
    Sets the generic tag Chunk. The text for this tag can be retrieved with PdfPageEvent.
  • getFont
    Gets the font of this Chunk.
  • setFont
    Sets the font of this Chunk.
  • setLocalDestination
    Sets a local destination for this Chunk.
  • setTextRise
    Sets the text displacement relative to the baseline. Positive values rise the text, negative values
  • append
    appends some text to this Chunk.
  • createTabspace
  • createWhitespace
  • createTabspace,
  • createWhitespace,
  • getAccessibleAttribute,
  • getAccessibleAttributes,
  • getAttributes,
  • getHorizontalScaling,
  • getHyphenation,
  • getId,
  • getImage,
  • getRole

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setScale (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • scheduleAtFixedRate (Timer)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • JButton (javax.swing)
  • Join (org.hibernate.mapping)
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now