javax.swing.text.html
public static class HTMLEditorKit.LinkController extends MouseAdapter implements MouseMotionListener, Serializable
Constructor and Description |
---|
HTMLEditorKit.LinkController()
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
activateLink(int pos,
JEditorPane editor)
If the given position represents a link, then linkActivated is called
on the JEditorPane.
|
void |
mouseClicked(MouseEvent e)
Dispatched when the mouse is clicked.
|
void |
mouseDragged(MouseEvent e)
Dispatched when the mouse is dragged on a component.
|
void |
mouseMoved(MouseEvent e)
Dispatched when the mouse cursor has moved into the component.
|
mouseEntered, mouseExited, mousePressed, mouseReleased
public HTMLEditorKit.LinkController()
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
mouseClicked
in class MouseAdapter
e
- - the mouse eventpublic void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
e
- - the mouse event.public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
e
- - the mouse event.protected void activateLink(int pos, JEditorPane editor)
pos
- the positioneditor
- the editor pane