Codota Logo
Chunk.setAttribute
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain Chunk
private void myMethod () {
Chunk c =
  • Codota IconString content;Font font;new Chunk(content, font)
  • Smart code suggestions by Codota
}
origin: com.itextpdf/itextpdf

/**
 * sets the hyphenation engine to this <CODE>Chunk</CODE>.
 *
 * @param hyphenation
 *            the hyphenation engine
 * @return this <CODE>Chunk</CODE>
 */
public Chunk setHyphenation(final HyphenationEvent hyphenation) {
  return setAttribute(HYPHENATION, hyphenation);
}
origin: com.itextpdf/itextg

/**
 * Sets a generic annotation to this <CODE>Chunk</CODE>.
 *
 * @param annotation
 *            the annotation
 * @return this <CODE>Chunk</CODE>
 */
public Chunk setAnnotation(final PdfAnnotation annotation) {
  return setAttribute(PDFANNOTATION, annotation);
}
origin: com.itextpdf/itextg

/**
 * Sets a local goto for this <CODE>Chunk</CODE>.
 * <P>
 * There must be a local destination matching the name.
 *
 * @param name
 *            the name of the destination to go to
 * @return this <CODE>Chunk</CODE>
 */
public Chunk setLocalGoto(final String name) {
  return setAttribute(LOCALGOTO, name);
}
origin: com.itextpdf/itextpdf

/**
 * Sets a generic annotation to this <CODE>Chunk</CODE>.
 *
 * @param annotation
 *            the annotation
 * @return this <CODE>Chunk</CODE>
 */
public Chunk setAnnotation(final PdfAnnotation annotation) {
  return setAttribute(PDFANNOTATION, annotation);
}
origin: com.itextpdf/itextpdf

/**
 * Sets a goto for a remote destination for this <CODE>Chunk</CODE>.
 *
 * @param filename
 *            the file name of the destination document
 * @param name
 *            the name of the destination to go to
 * @return this <CODE>Chunk</CODE>
 */
public Chunk setRemoteGoto(final String filename, final String name) {
  return setAttribute(REMOTEGOTO, new Object[] { filename, name });
}
origin: com.itextpdf/itextg

/**
 * Sets a new page tag..
 *
 * @return this <CODE>Chunk</CODE>
 */
public Chunk setNewPage() {
  return setAttribute(NEWPAGE, null);
}
origin: com.itextpdf/itextg

/**
 * Sets a line height tag.
 *
 * @return this <CODE>Chunk</CODE>
 */
public Chunk setLineHeight(float lineheight) {
  return setAttribute(LINEHEIGHT, lineheight);
}
origin: com.itextpdf/itextg

/**
 * Sets the generic tag <CODE>Chunk</CODE>.
 * <P>
 * The text for this tag can be retrieved with <CODE>PdfPageEvent</CODE>.
 *
 * @param text
 *            the text for the tag
 * @return this <CODE>Chunk</CODE>
 */
public Chunk setGenericTag(final String text) {
  return setAttribute(GENERICTAG, text);
}
origin: com.itextpdf/itextg

/**
 * Sets a goto for a remote destination for this <CODE>Chunk</CODE>.
 *
 * @param filename
 *            the file name of the destination document
 * @param name
 *            the name of the destination to go to
 * @return this <CODE>Chunk</CODE>
 */
public Chunk setRemoteGoto(final String filename, final String name) {
  return setAttribute(REMOTEGOTO, new Object[] { filename, name });
}
origin: com.itextpdf/itextpdf

/**
 * Sets a new page tag..
 *
 * @return this <CODE>Chunk</CODE>
 */
public Chunk setNewPage() {
  return setAttribute(NEWPAGE, null);
}
origin: com.itextpdf/itextpdf

/**
 * Sets the character spacing.
 *
 * @param charSpace the character spacing value
 * @return this <CODE>Chunk</CODE>
 */
public Chunk setCharacterSpacing(final float charSpace) {
  return setAttribute(CHAR_SPACING, new Float(charSpace));
}
origin: com.itextpdf/itextg

/**
 * Sets the word spacing.
 *
 * @param wordSpace the word spacing value
 * @return this <CODE>Chunk</CODE>
 */	
public Chunk setWordSpacing(final float wordSpace) {
  return setAttribute(WORD_SPACING, new Float(wordSpace));
}

origin: com.itextpdf/itextg

/**
 * Sets the character spacing.
 *
 * @param charSpace the character spacing value
 * @return this <CODE>Chunk</CODE>
 */
public Chunk setCharacterSpacing(final float charSpace) {
  return setAttribute(CHAR_SPACING, new Float(charSpace));
}
origin: com.itextpdf/itextpdf

/**
 * Sets the word spacing.
 *
 * @param wordSpace the word spacing value
 * @return this <CODE>Chunk</CODE>
 */	
public Chunk setWordSpacing(final float wordSpace) {
  return setAttribute(WORD_SPACING, new Float(wordSpace));
}

origin: com.itextpdf/itextpdf

/**
 * Sets the text horizontal scaling. A value of 1 is normal and a value of
 * 0.5f shrinks the text to half it's width.
 *
 * @param scale
 *            the horizontal scaling factor
 * @return this <CODE>Chunk</CODE>
 */
public Chunk setHorizontalScaling(final float scale) {
  return setAttribute(HSCALE, new Float(scale));
}
origin: com.itextpdf/itextpdf

/**
 * Sets the text displacement relative to the baseline. Positive values rise
 * the text, negative values lower the text.
 * <P>
 * It can be used to implement sub/superscript.
 *
 * @param rise
 *            the displacement in points
 * @return this <CODE>Chunk</CODE>
 */
public Chunk setTextRise(final float rise) {
  return setAttribute(SUBSUPSCRIPT, new Float(rise));
}
origin: com.itextpdf/itextpdf

/**
 * Sets an action for this <CODE>Chunk</CODE>.
 *
 * @param action
 *            the action
 * @return this <CODE>Chunk</CODE>
 */
public Chunk setAction(final PdfAction action) {
  setRole(PdfName.LINK);
  return setAttribute(ACTION, action);
}
origin: com.itextpdf/itextpdf

public static Chunk createWhitespace(final String content, final boolean preserve) {
  Chunk whitespace = null;
  if (!preserve) {
    whitespace = new Chunk(' ');
    whitespace.setAttribute(WHITESPACE, content);
  } else {
     whitespace = new Chunk(content);
  }
  return whitespace;
}
origin: com.itextpdf/itextg

public static Chunk createWhitespace(final String content, final boolean preserve) {
  Chunk whitespace = null;
  if (!preserve) {
    whitespace = new Chunk(' ');
    whitespace.setAttribute(WHITESPACE, content);
  } else {
     whitespace = new Chunk(content);
  }
  return whitespace;
}
origin: com.itextpdf/itextpdf

/**
 * Sets an anchor for this <CODE>Chunk</CODE>.
 *
 * @param url
 *            the <CODE>URL</CODE> to link to
 * @return this <CODE>Chunk</CODE>
 */
public Chunk setAnchor(final URL url) {
  setRole(PdfName.LINK);
  String urlStr = url.toExternalForm();
  setAccessibleAttribute(PdfName.ALT, new PdfString(urlStr));
  return setAttribute(ACTION, new PdfAction(urlStr));
}
com.itextpdf.textChunksetAttribute

Javadoc

Sets an arbitrary attribute.

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

  • Making http requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Menu (java.awt)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • Reference (javax.naming)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now