public abstract class LinkMouseListenerBase<T> extends ClickListener implements java.awt.event.MouseMotionListener
Constructor and Description |
---|
LinkMouseListenerBase() |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
getTagAt(java.awt.event.MouseEvent e) |
protected void |
handleTagClick(T tag,
java.awt.event.MouseEvent event) |
void |
installOn(java.awt.Component component) |
static void |
installSingleTagOn(SimpleColoredComponent component) |
void |
mouseDragged(java.awt.event.MouseEvent e) |
void |
mouseMoved(java.awt.event.MouseEvent e) |
boolean |
onClick(java.awt.event.MouseEvent e,
int clickCount) |
installOn, uninstall
public static void installSingleTagOn(SimpleColoredComponent component)
protected abstract T getTagAt(java.awt.event.MouseEvent e)
public boolean onClick(java.awt.event.MouseEvent e, int clickCount)
onClick
in class ClickListener
protected void handleTagClick(T tag, java.awt.event.MouseEvent event)
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void installOn(java.awt.Component component)
installOn
in class ClickListener