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

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

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

origin: com.itextpdf/itextpdf

ListItem item = (ListItem) o;
Chunk chunk = new Chunk(preSymbol, symbol.getFont());
chunk.setAttributes(symbol.getAttributes());
switch (type ) {
  case 0:
origin: com.itextpdf/itextg

ListItem item = (ListItem) o;
Chunk chunk = new Chunk(preSymbol, symbol.getFont());
chunk.setAttributes(symbol.getAttributes());
switch (type ) {
  case 0:
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/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/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;
    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

if (numbered || lettered) {
  Chunk chunk = new Chunk(preSymbol, symbol.getFont());
  chunk.setAttributes(symbol.getAttributes());
  int index = first + list.size();
  if ( lettered )
origin: com.itextpdf/itextg

if (numbered || lettered) {
  Chunk chunk = new Chunk(preSymbol, symbol.getFont());
  chunk.setAttributes(symbol.getAttributes());
  int index = first + list.size();
  if ( lettered )
origin: com.itextpdf/itextg

newChunk.setAttributes(chunk.getAttributes());
newChunk.role = chunk.getRole();
newChunk.accessibleAttributes = chunk.getAccessibleAttributes();
origin: com.itextpdf/itextpdf

newChunk.setAttributes(chunk.getAttributes());
newChunk.role = chunk.getRole();
newChunk.accessibleAttributes = chunk.getAccessibleAttributes();
com.itextpdf.textChunksetAttributes

Javadoc

Sets the attributes all at once.

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

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • compareTo (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • 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
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JTable (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Github Copilot 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