org.pdfclown.documents.interaction.annotations
Class Link
java.lang.Object
org.pdfclown.objects.PdfObjectWrapper<PdfDictionary>
org.pdfclown.documents.interaction.annotations.Annotation
org.pdfclown.documents.interaction.annotations.Link
- All Implemented Interfaces:
- Cloneable, ILayerable, ILink, IPdfObjectWrapper
@PDF(value=PDF10)
public final class Link
- extends Annotation
- implements ILink
Link annotation [PDF:1.6:8.4.5].
It represents either a hypertext link to a destination elsewhere in the document
or an action to be performed.
- Since:
- 0.0.7
- Version:
- 0.1.2, 12/21/12
- Author:
- Stefano Chizzolini (http://www.stefanochizzolini.it)
Methods inherited from class org.pdfclown.documents.interaction.annotations.Annotation |
delete, getAction, getActions, getAppearance, getBorder, getBox, getColor, getFlags, getLayer, getModificationDate, getName, getPage, getText, isPrintable, isVisible, setActions, setAppearance, setBorder, setBox, setColor, setFlags, setLayer, setModificationDate, setName, setPrintable, setText, setVisible, wrap |
Methods inherited from class org.pdfclown.objects.PdfObjectWrapper |
checkCompatibility, equals, exists, getBaseDataObject, getBaseObject, getBaseObject, getContainer, getDataContainer, getDocument, getFile, getMetadata, retrieveName, retrieveNamedBaseObject, setBaseObject, setMetadata |
Link
public Link(Page page,
Rectangle2D box,
String text,
PdfObjectWrapper<?> target)
clone
public Link clone(Document context)
- Description copied from class:
PdfObjectWrapper
- Gets a clone of the object, registered inside the given document context.
- Overrides:
clone
in class Annotation
- Parameters:
context
- Which document the clone has to be registered in.
setAction
public void setAction(Action value)
- Overrides:
setAction
in class Annotation
- See Also:
Annotation.getAction()
getTarget
public PdfObjectWrapper<?> getTarget()
- Description copied from interface:
ILink
- Gets the link target.
- Specified by:
getTarget
in interface ILink
- Returns:
- Either a
Destination
or an Action
.
setTarget
public void setTarget(PdfObjectWrapper<?> value)
- Specified by:
setTarget
in interface ILink
- See Also:
ILink.getTarget()
Project home page
Copyright © 2006-2013 Stefano Chizzolini. Some Rights Reserved.
This documentation is available under the terms of the GNU Free Documentation License.