public class Link
extends java.lang.Object
Constructor and Description |
---|
Link(AbstractAction action,
java.awt.Rectangle targetRect)
Creates a new named destination.
|
Modifier and Type | Method and Description |
---|---|
AbstractAction |
getAction()
Returns the action performed when the destination is selected.
|
java.awt.Rectangle |
getTargetRect()
Returns the target rectangle, i.e.
|
void |
setAction(AbstractAction action)
Sets the action performed when the destination is selected.
|
public Link(AbstractAction action, java.awt.Rectangle targetRect)
action
- the action performed when the destination is selectedtargetRect
- the target rectangle (coordinates in millipoints)public AbstractAction getAction()
public java.awt.Rectangle getTargetRect()
public void setAction(AbstractAction action)
action
- the actionCopyright 1999-2017 The Apache Software Foundation. All Rights Reserved.