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

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

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

origin: com.itextpdf/itextpdf

switch (type ) {
  case 0:
    chunk.append(String.valueOf((char)(first + list.size() + 171)));
    break;
  case 1:
    chunk.append(String.valueOf((char)(first + list.size() + 181)));
    break;
  case 2:
    chunk.append(String.valueOf((char)(first + list.size() + 191)));
    break;
  default:
    chunk.append(String.valueOf((char)(first + list.size() + 201)));
chunk.append(postSymbol);
item.setListSymbol(chunk);
item.setIndentationLeft(symbolIndent, autoindent);
origin: com.itextpdf/itextg

switch (type ) {
  case 0:
    chunk.append(String.valueOf((char)(first + list.size() + 171)));
    break;
  case 1:
    chunk.append(String.valueOf((char)(first + list.size() + 181)));
    break;
  case 2:
    chunk.append(String.valueOf((char)(first + list.size() + 191)));
    break;
  default:
    chunk.append(String.valueOf((char)(first + list.size() + 201)));
chunk.append(postSymbol);
item.setListSymbol(chunk);
item.setIndentationLeft(symbolIndent, autoindent);
origin: com.itextpdf/itextpdf

int index = first + list.size();
if ( lettered )
  chunk.append(RomanAlphabetFactory.getString(index, lowercase));
else
  chunk.append(String.valueOf(index));
chunk.append(postSymbol);
item.setListSymbol(chunk);
origin: com.itextpdf/itextpdf

/**
 * Adds an <CODE>Element</CODE> to the <CODE>List</CODE>.
 *
 * @param    o    the object to add.
 * @return true if adding the object succeeded
 */
@Override
public boolean add(Element o) {
  if (o instanceof ListItem) {
    ListItem item = (ListItem) o;
    Chunk chunk = new Chunk(preSymbol, symbol.getFont());
    chunk.setAttributes(symbol.getAttributes());
    chunk.append(String.valueOf((char)zn));
    chunk.append(postSymbol);
    item.setListSymbol(chunk);
    item.setIndentationLeft(symbolIndent, autoindent);
    item.setIndentationRight(0);
    list.add(item);
  } else if (o instanceof List) {
    List nested = (List) o;
    nested.setIndentationLeft(nested.getIndentationLeft() + symbolIndent);
    first--;
    return list.add(nested);
  }
  return false;
}
origin: com.itextpdf/itextg

/**
 * Adds an <CODE>Element</CODE> to the <CODE>List</CODE>.
 *
 * @param    o    the object to add.
 * @return true if adding the object succeeded
 */
@Override
public boolean add(Element o) {
  if (o instanceof ListItem) {
    ListItem item = (ListItem) o;
    Chunk chunk = new Chunk(preSymbol, symbol.getFont());
    chunk.setAttributes(symbol.getAttributes());
    chunk.append(String.valueOf((char)zn));
    chunk.append(postSymbol);
    item.setListSymbol(chunk);
    item.setIndentationLeft(symbolIndent, autoindent);
    item.setIndentationRight(0);
    list.add(item);
  } else if (o instanceof List) {
    List nested = (List) o;
    nested.setIndentationLeft(nested.getIndentationLeft() + symbolIndent);
    first--;
    return list.add(nested);
  }
  return false;
}
origin: com.itextpdf/itextg

int index = first + list.size();
if ( lettered )
  chunk.append(RomanAlphabetFactory.getString(index, lowercase));
else
  chunk.append(String.valueOf(index));
chunk.append(postSymbol);
item.setListSymbol(chunk);
origin: com.itextpdf/itextg

/**
 * Adds an <CODE>Element</CODE> to the <CODE>List</CODE>.
 *
 * @param    o    the object to add.
 * @return true if adding the object succeeded
 */
@Override
  public boolean add(Element o) {
  if (o instanceof ListItem) {
    ListItem item = (ListItem) o;
    Chunk chunk = new Chunk(preSymbol, symbol.getFont());
    chunk.setAttributes(symbol.getAttributes());
    chunk.append(GreekAlphabetFactory.getString(first + list.size(), lowercase));
    chunk.append(postSymbol);
    item.setListSymbol(chunk);
    item.setIndentationLeft(symbolIndent, autoindent);
    item.setIndentationRight(0);
    list.add(item);
  } else if (o instanceof List) {
    List nested = (List) o;
    nested.setIndentationLeft(nested.getIndentationLeft() + symbolIndent);
    first--;
    return list.add(nested);
  }
  return false;
}
origin: com.itextpdf/itextg

/**
 * Adds an <CODE>Element</CODE> to the <CODE>List</CODE>.
 *
 * @param    o    the object to add.
 * @return true if adding the object succeeded
 */
@Override
  public boolean add(Element o) {
  if (o instanceof ListItem) {
    ListItem item = (ListItem) o;
    Chunk chunk;
    chunk = new Chunk(preSymbol, symbol.getFont());
    chunk.setAttributes(symbol.getAttributes());
    chunk.append(RomanNumberFactory.getString(first + list.size(), lowercase));
    chunk.append(postSymbol);
    item.setListSymbol(chunk);
    item.setIndentationLeft(symbolIndent, autoindent);
    item.setIndentationRight(0);
    list.add(item);
  } else if (o instanceof List) {
    List nested = (List) o;
    nested.setIndentationLeft(nested.getIndentationLeft() + symbolIndent);
    first--;
    return list.add(nested);
  }
  return false;
}
origin: com.itextpdf/itextpdf

/**
 * Adds an <CODE>Element</CODE> to the <CODE>List</CODE>.
 *
 * @param    o    the object to add.
 * @return true if adding the object succeeded
 */
@Override
  public boolean add(Element o) {
  if (o instanceof ListItem) {
    ListItem item = (ListItem) o;
    Chunk chunk = new Chunk(preSymbol, symbol.getFont());
    chunk.setAttributes(symbol.getAttributes());
    chunk.append(GreekAlphabetFactory.getString(first + list.size(), lowercase));
    chunk.append(postSymbol);
    item.setListSymbol(chunk);
    item.setIndentationLeft(symbolIndent, autoindent);
    item.setIndentationRight(0);
    list.add(item);
  } else if (o instanceof List) {
    List nested = (List) o;
    nested.setIndentationLeft(nested.getIndentationLeft() + symbolIndent);
    first--;
    return list.add(nested);
  }
  return false;
}
origin: com.itextpdf/itextpdf

/**
 * Adds an <CODE>Element</CODE> to the <CODE>List</CODE>.
 *
 * @param    o    the object to add.
 * @return true if adding the object succeeded
 */
@Override
  public boolean add(Element o) {
  if (o instanceof ListItem) {
    ListItem item = (ListItem) o;
    Chunk chunk;
    chunk = new Chunk(preSymbol, symbol.getFont());
    chunk.setAttributes(symbol.getAttributes());
    chunk.append(RomanNumberFactory.getString(first + list.size(), lowercase));
    chunk.append(postSymbol);
    item.setListSymbol(chunk);
    item.setIndentationLeft(symbolIndent, autoindent);
    item.setIndentationRight(0);
    list.add(item);
  } else if (o instanceof List) {
    List nested = (List) o;
    nested.setIndentationLeft(nested.getIndentationLeft() + symbolIndent);
    first--;
    return list.add(nested);
  }
  return false;
}
origin: com.itextpdf/itextg

  && !"".equals(previous.getContent().trim())
  && !"".equals(c.trim())) {
previous.append(c);
return true;
origin: com.itextpdf/itextpdf

  && !"".equals(previous.getContent().trim())
  && !"".equals(c.trim())) {
previous.append(c);
return true;
origin: com.itextpdf/itextpdf

BaseFont bf = ck.getFont().getBaseFont();
app.setFontAndSize(bf, usize);
StringBuffer sb = ck.append("");
for (int j = 0; j < sb.length(); ++j) {
  String c = sb.substring(j, j + 1);
origin: com.itextpdf/itextg

BaseFont bf = ck.getFont().getBaseFont();
app.setFontAndSize(bf, usize);
StringBuffer sb = ck.append("");
for (int j = 0; j < sb.length(); ++j) {
  String c = sb.substring(j, j + 1);
com.itextpdf.textChunkappend

Javadoc

appends some text to this Chunk.

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
  • createTabspace
  • createWhitespace
  • getAccessibleAttribute
  • createWhitespace,
  • getAccessibleAttribute,
  • getAccessibleAttributes,
  • getAttributes,
  • getHorizontalScaling,
  • getHyphenation,
  • getId,
  • getImage,
  • getRole

Popular in Java

  • Start an intent from android
  • setContentView (Activity)
  • findViewById (Activity)
  • compareTo (BigDecimal)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top PhpStorm plugins
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