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

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

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

origin: com.itextpdf/itextpdf

HashMap<String, Object> attr = chunk.getAttributes();
if (attr != null) {
  for (Map.Entry<String, Object>entry: attr.entrySet()) {
origin: com.itextpdf/itextg

HashMap<String, Object> attr = chunk.getAttributes();
if (attr != null) {
  for (Map.Entry<String, Object>entry: attr.entrySet()) {
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/itextpdf

  writeAttributes(chunk.getImage());
} else {
  HashMap<String, Object> attr = chunk.getAttributes();
  if (attr != null){
    this.setAttribute(PdfName.O, PdfName.LAYOUT);
origin: com.itextpdf/itextg

  writeAttributes(chunk.getImage());
} else {
  HashMap<String, Object> attr = chunk.getAttributes();
  if (attr != null){
    this.setAttribute(PdfName.O, PdfName.LAYOUT);
origin: com.itextpdf/itextpdf

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

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

Javadoc

Gets the attributes for this Chunk.

It may be null.

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,
  • getHorizontalScaling,
  • getHyphenation,
  • getId,
  • getImage,
  • getRole

Popular in Java

  • Start an intent from android
  • setScale (BigDecimal)
  • getApplicationContext (Context)
  • putExtra (Intent)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • 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
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JButton (javax.swing)
  • JLabel (javax.swing)
  • From CI to AI: The AI layer in your organization
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