Tabnine Logo
Chunk.setAttribute
Code IndexAdd Tabnine 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)

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 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/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/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/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/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 line height tag.
 *
 * @return this <CODE>Chunk</CODE>
 */
public Chunk setLineHeight(float lineheight) {
  return setAttribute(LINEHEIGHT, lineheight);
}
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 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 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 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 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

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • compareTo (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Top plugins for WebStorm
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