public class LinkListener extends DefaultFSMouseListener
BasicPanel
,
in particular to handle anchors and navigation. When a Box is clicked, if it has an anchor associated with it, the
panel will be requested to navigate to that URI.Constructor and Description |
---|
LinkListener() |
Modifier and Type | Method and Description |
---|---|
void |
linkClicked(BasicPanel panel,
java.lang.String uri)
Utility method to request the panel navigate to the given URI.
|
void |
onMouseUp(BasicPanel panel,
Box box)
Triggers the click on a box.
|
onMouseDragged, onMouseOut, onMouseOver, onMousePressed, reset
public void linkClicked(BasicPanel panel, java.lang.String uri)
panel
- the panel on which the listener is attacheduri
- the URI to navigate topublic void onMouseUp(BasicPanel panel, Box box)
onMouseUp
in interface FSMouseListener
onMouseUp
in class DefaultFSMouseListener
panel
- the panel where the mouse button has been released.box
- the box on which the mouse cursor is currently located