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, text
childElements, nextRenderer, styles
properties
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, setTextRise
addStyle, createRendererSubTree, getChildren, getProperty, getRenderer, hasProperty, isEmpty, setAction, setNextRenderer, setPageNumber
deleteOwnProperty, getDefaultProperty, getOwnProperty, getSplitCharacters, getStrokeColor, getStrokeWidth, getTextRenderingMode, hasOwnProperty, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBaseDirection, setBold, setBorder, setBorderBottom, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBorderTopLeftRadius, setBorderTopRightRadius, setCharacterSpacing, setDestination, setFixedPosition, setFixedPosition, setFixedPosition, setFixedPosition, setFont, setFont, setFontColor, setFontColor, setFontKerning, setFontScript, setFontSize, setHorizontalAlignment, setHyphenation, setItalic, setLineThrough, setOpacity, setProperty, setRelativePosition, setSplitCharacters, setStrokeColor, setStrokeWidth, setTextAlignment, setTextRenderingMode, setUnderline, setUnderline, setUnderline, setUnderline, setWordSpacing
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createRendererSubTree, getRenderer, setNextRenderer
deleteOwnProperty, getDefaultProperty, getOwnProperty, getProperty, hasOwnProperty, hasProperty, setProperty
public Link(String text, PdfLinkAnnotation linkAnnotation)
text
- the textual contents of the link
linkAnnotation
- a PdfLinkAnnotation
public Link(String text, PdfAction action)
text
- the textual contents of the link
action
- a PdfAction
public Link(String text, PdfDestination destination)
text
- the textual contents of the link
destination
- a PdfDestination
public PdfLinkAnnotation getLinkAnnotation()
PdfLinkAnnotation
public AccessibilityProperties getAccessibilityProperties()
IAccessibleElement
accessibility properties
. See also IAccessibleElement
.
getAccessibilityProperties
in interface IAccessibleElement
getAccessibilityProperties
in class Text
protected IRenderer makeNewRenderer()
makeNewRenderer
in class Text
Copyright © 1998–2018 iText Group NV. All rights reserved.