Class Link
- All Implemented Interfaces:
IAbstractElement, IElement, ILeafElement, IPropertyContainer, IAccessibleElement
A clickable piece of
Text which contains a link annotation dictionary. The concept is largely similar to that of the
HTML anchor tag.-
Field Summary
Fields inherited from class Text
tagProperties, textFields inherited from class AbstractElement
childElements, nextRenderer, stylesFields inherited from class ElementPropertyContainer
properties -
Constructor Summary
ConstructorsConstructorDescriptionCreates a Link which can execute an action.Link(String text, PdfLinkAnnotation linkAnnotation) Creates a Link with a fully constructed link annotation dictionary.Link(String text, PdfDestination destination) Creates a Link to another location in the document. -
Method Summary
Modifier and TypeMethodDescriptionGets theaccessibility properties.Gets the link annotation dictionary associated with this link.protected IRendererCreates a new renderer instance.Methods inherited from class Text
disableOtfFeatures, getHorizontalScaling, getText, getTextRise, setHorizontalScaling, setNeutralRole, setSkew, setText, setTextRiseMethods inherited from class AbstractElement
addStyle, createRendererSubTree, getChildren, getProperty, getRenderer, hasProperty, isEmpty, setAction, setNextRenderer, setPageNumberMethods inherited from class ElementPropertyContainer
deleteOwnProperty, getDefaultProperty, getOwnProperty, getSplitCharacters, getStrokeColor, getStrokeWidth, getTextRenderingMode, getTransparentStrokeColor, hasOwnProperty, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundImage, setBackgroundImage, setBaseDirection, setBorder, setBorderBottom, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBorderTopLeftRadius, setBorderTopRightRadius, setCharacterSpacing, setDashPattern, setDestination, setFixedPosition, setFixedPosition, setFixedPosition, setFixedPosition, setFont, setFontColor, setFontColor, setFontColor, setFontFamily, setFontFamily, setFontKerning, setFontScript, setFontSize, setHorizontalAlignment, setHyphenation, setLineThrough, setOpacity, setProperty, setRelativePosition, setSplitCharacters, setStrokeColor, setStrokeColor, setStrokeColor, setStrokeWidth, setTextAlignment, setTextRenderingMode, setUnderline, setUnderline, setUnderline, setUnderline, setUnderline, setWordSpacing, simulateBold, simulateItalicMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IElement
createRendererSubTree, getRenderer, setNextRendererMethods inherited from interface IPropertyContainer
deleteOwnProperty, getDefaultProperty, getOwnProperty, getProperty, hasOwnProperty, hasProperty, setProperty
-
Constructor Details
-
Link
Creates a Link with a fully constructed link annotation dictionary.- Parameters:
text- the textual contents of the linklinkAnnotation- aPdfLinkAnnotation
-
Link
-
-
Method Details
-
getLinkAnnotation
Gets the link annotation dictionary associated with this link.- Returns:
- a
PdfLinkAnnotation
-
getAccessibilityProperties
Description copied from interface:IAccessibleElementGets theaccessibility properties. See alsoIAccessibleElement.- Specified by:
getAccessibilityPropertiesin interfaceIAccessibleElement- Overrides:
getAccessibilityPropertiesin classText- Returns:
- an interface that allows to specify properties of a tagged element in Tagged PDF.
-
makeNewRenderer
Description copied from class:AbstractElementCreates a new renderer instance.- Overrides:
makeNewRendererin classText- Returns:
- new
IRenderer
-