public class BasicSliderUI.TrackListener extends MouseInputAdapter
Foo
类中Foo
。
Modifier and Type | Field and Description |
---|---|
protected int |
currentMouseX |
protected int |
currentMouseY |
protected int |
offset |
Constructor and Description |
---|
TrackListener() |
Modifier and Type | Method and Description |
---|---|
void |
mouseDragged(MouseEvent e)
将模型值设置为拇指顶部/左侧相对于轨迹原点的位置。
|
void |
mouseMoved(MouseEvent e)
当鼠标光标移动到组件上但没有按钮被按下时调用。
|
void |
mousePressed(MouseEvent e)
如果鼠标按在“thumb”组件上方,则将滚动条值减少一页(“向上”),否则将其增加一页。
|
void |
mouseReleased(MouseEvent e)
在组件上释放鼠标按钮时调用。
|
boolean |
shouldScroll(int direction) |
mouseClicked, mouseEntered, mouseExited, mouseWheelMoved
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
mouseClicked, mouseEntered, mouseExited
protected transient int offset
protected transient int currentMouseX
protected transient int currentMouseY
public void mouseReleased(MouseEvent e)
MouseAdapter
mouseReleased
在接口
MouseListener
mouseReleased
在
MouseAdapter
public void mousePressed(MouseEvent e)
mousePressed
在界面
MouseListener
mousePressed
在
MouseAdapter
类
public boolean shouldScroll(int direction)
public void mouseDragged(MouseEvent e)
mouseDragged
在接口
MouseMotionListener
mouseDragged
在
MouseAdapter
public void mouseMoved(MouseEvent e)
MouseAdapter
mouseMoved
在接口
MouseMotionListener
mouseMoved
在
MouseAdapter