public class Link extends Object
Constructor and Description |
---|
Link(AbstractAction action,
Rectangle targetRect)
Creates a new named destination.
|
Modifier and Type | Method and Description |
---|---|
AbstractAction |
getAction()
Returns the action performed when the destination is selected.
|
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, Rectangle targetRect)
action
- the action performed when the destination is selectedtargetRect
- the target rectangle (coordinates in millipoints)public AbstractAction getAction()
public Rectangle getTargetRect()
public void setAction(AbstractAction action)
action
- the actionCopyright © 2025 Apache Software Foundation. All rights reserved.