public abstract class BaseButtonBehavior
extends java.lang.Object
Constructor and Description |
---|
BaseButtonBehavior(javax.swing.JComponent component) |
BaseButtonBehavior(javax.swing.JComponent component,
TimedDeadzone.Length mouseDeadzoneTime) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
execute(java.awt.event.MouseEvent e) |
boolean |
isHovered() |
boolean |
isPressedByMouse() |
protected void |
pass(java.awt.event.MouseEvent e) |
protected void |
repaint(java.awt.Component c) |
protected void |
repaintComponent() |
void |
setActionTrigger(int trigger) |
void |
setMouseDeadzone(TimedDeadzone.Length deadZone) |
public BaseButtonBehavior(javax.swing.JComponent component)
public BaseButtonBehavior(javax.swing.JComponent component, TimedDeadzone.Length mouseDeadzoneTime)
public void setActionTrigger(int trigger)
public final boolean isHovered()
public final boolean isPressedByMouse()
public void setMouseDeadzone(TimedDeadzone.Length deadZone)
protected void repaintComponent()
protected void repaint(java.awt.Component c)
protected abstract void execute(java.awt.event.MouseEvent e)
protected void pass(java.awt.event.MouseEvent e)