com.qoppa.pdf.annotations
Class Link
java.lang.Object
com.qoppa.pdf.annotations.Annotation
com.qoppa.pdf.annotations.Link
- public class Link
- extends Annotation
Class representing a Link annotation in a PDF document.
Link annotations are displayed as a rectangle on the PDF
document and when clicked, may jump to a different location
on the document or open a URL in a browser window. Use setBounds()
to set the location and size of the link on the page. Use
setActions() to set the actions when the link is activated.
- Author:
- Qoppa Software
| Fields inherited from class com.qoppa.pdf.annotations.Annotation |
BORDERSTYLE_BEVELED, BORDERSTYLE_DASHED, BORDERSTYLE_INSETS, BORDERSTYLE_SOLID, BORDERSTYLE_UNDERLINE, FLAGS_HIDDEN, FLAGS_INVISIBLE, FLAGS_LOCKED, FLAGS_NOROTATE, FLAGS_NOVIEW, FLAGS_NOZOOM, FLAGS_PRINTABLE, FLAGS_READONLY |
|
Constructor Summary |
Link()
Constructs a Link annotation. |
| Methods inherited from class com.qoppa.pdf.annotations.Annotation |
getActions, getAppearStream, getBorderStyle, getBorderWidth, getColor, getComponent, getContents, getCreationDate, getCreator, getFlags, getLayer, getName, getOpacity, getPopup, getRectangle, getTriggerActions, isHidden, isInvisible, isLocked, isNoRotate, isNoView, isNoZoom, isPrintable, isReadOnly, paint, print, setActions, setAppearStream, setBorderStyle, setBorderWidth, setColor, setComponent, setComponentVisible, setCreationDate, setCreator, setFlags, setHidden, setInvisible, setLayer, setLocked, setName, setNoRotate, setNoView, setNoZoom, setOpacity, setPopup, setPrintable, setReadOnly, setRectangle, setTriggerActions, shiftRectangle |
Link
public Link()
- Constructs a Link annotation.
getSubtype
public String getSubtype()
- Returns this annotation's subtype: "Link"
- Specified by:
getSubtype in class Annotation
- Returns:
- The annotation subtype.
createComponent
public JComponent createComponent(Point2D cropOrigin,
IPDFActionHandler actionHandler)
- Creates a JComponent object capable of displaying this
annotation.
- Specified by:
createComponent in class Annotation
- Returns:
- JComponent do display this annotation.
revalidate
public void revalidate()
- Description copied from class:
Annotation
- Revalidates this annotation.
- Specified by:
revalidate in class Annotation
paintImpl
public void paintImpl(Graphics g,
boolean hasFocus)