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

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

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

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/itextg

/**
 * 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

/**
 * 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));
}
origin: com.itextpdf/itextg

/**
 * 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));
}
origin: com.itextpdf/itextg

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

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

graphics.openMCBlock(lbl);
symbol = new Chunk(symbol);
symbol.setRole(null);
origin: com.itextpdf/itextpdf

graphics.openMCBlock(lbl);
symbol = new Chunk(symbol);
symbol.setRole(null);
origin: com.itextpdf/itextg

canvas.openMCBlock(lbl);
Chunk symbol = new Chunk(((ListItem) elementToGo).getListSymbol());
symbol.setRole(null);
ColumnText.showTextAligned(canvas, Element.ALIGN_LEFT, new Phrase(symbol), leftX + lbl.getIndentation(), firstLineY, 0);
canvas.closeMCBlock(lbl);
origin: com.itextpdf/itextpdf

canvas.openMCBlock(lbl);
Chunk symbol = new Chunk(((ListItem) elementToGo).getListSymbol());
symbol.setRole(null);
ColumnText.showTextAligned(canvas, Element.ALIGN_LEFT, new Phrase(symbol), leftX + lbl.getIndentation(), firstLineY, 0);
canvas.closeMCBlock(lbl);
com.itextpdf.textChunksetRole

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

  • 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
  • CodeWhisperer 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