public class Link extends Text
Text which contains a link annotation dictionary. The concept is largely similar to that of the
HTML anchor tag.tagProperties, textchildElements, nextRenderer, stylesproperties| Constructor and Description |
|---|
Link(String text,
PdfAction action)
Creates a Link which can execute an action.
|
Link(String text,
PdfDestination destination)
Creates a Link to another location in the document.
|
Link(String text,
PdfLinkAnnotation linkAnnotation)
Creates a Link with a fully constructed link annotation dictionary.
|
| Modifier and Type | Method and Description |
|---|---|
AccessibilityProperties |
getAccessibilityProperties()
Gets the
accessibility properties. |
PdfLinkAnnotation |
getLinkAnnotation()
Gets the link annotation dictionary associated with this link.
|
protected IRenderer |
makeNewRenderer() |
getHorizontalScaling, getText, getTextRise, setHorizontalScaling, setSkew, setText, setTextRiseaddStyle, createRendererSubTree, getChildren, getProperty, getRenderer, hasProperty, isEmpty, setAction, setNextRenderer, setPageNumberdeleteOwnProperty, getDefaultProperty, getOwnProperty, getSplitCharacters, getStrokeColor, getStrokeWidth, getTextRenderingMode, hasOwnProperty, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundImage, setBackgroundImage, setBaseDirection, setBold, setBorder, setBorderBottom, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBorderTopLeftRadius, setBorderTopRightRadius, setCharacterSpacing, setDestination, setFixedPosition, setFixedPosition, setFixedPosition, setFixedPosition, setFont, setFont, setFontColor, setFontColor, setFontFamily, setFontFamily, setFontKerning, setFontScript, setFontSize, setHorizontalAlignment, setHyphenation, setItalic, setLineThrough, setOpacity, setProperty, setRelativePosition, setSplitCharacters, setStrokeColor, setStrokeWidth, setTextAlignment, setTextRenderingMode, setUnderline, setUnderline, setUnderline, setUnderline, setWordSpacingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateRendererSubTree, getRenderer, setNextRendererdeleteOwnProperty, getDefaultProperty, getOwnProperty, getProperty, hasOwnProperty, hasProperty, setPropertypublic Link(String text, PdfLinkAnnotation linkAnnotation)
text - the textual contents of the linklinkAnnotation - a PdfLinkAnnotationpublic Link(String text, PdfAction action)
text - the textual contents of the linkaction - a PdfActionpublic Link(String text, PdfDestination destination)
text - the textual contents of the linkdestination - a PdfDestinationpublic PdfLinkAnnotation getLinkAnnotation()
PdfLinkAnnotationpublic AccessibilityProperties getAccessibilityProperties()
IAccessibleElementaccessibility properties. See also IAccessibleElement.getAccessibilityProperties in interface IAccessibleElementgetAccessibilityProperties in class Textprotected IRenderer makeNewRenderer()
makeNewRenderer in class TextCopyright © 1998–2020 iText Group NV. All rights reserved.