protected class BasicScrollBarUI.TrackListener extends MouseAdapter implements MouseMotionListener
Modifier and Type | Field and Description |
---|---|
protected int |
currentMouseX |
protected int |
currentMouseY |
protected int |
offset |
Modifier | Constructor and Description |
---|---|
protected |
TrackListener() |
Modifier and Type | Method and Description |
---|---|
void |
mouseDragged(MouseEvent e)
将模型值设置为垂直滚动条的顶部的位置,或水平滚动条左右对齐/左右滚动条相对于轨迹原点的左/右。
|
void |
mouseExited(MouseEvent e)
当鼠标退出滚动条时调用。
|
void |
mouseMoved(MouseEvent e)
当鼠标光标移动到组件上但没有按钮被按下时调用。
|
void |
mousePressed(MouseEvent e)
如果鼠标按在“thumb”组件上方,则将滚动条值减少一页(“向上”),否则将其增加一页。
|
void |
mouseReleased(MouseEvent e)
在组件上释放鼠标按钮时调用。
|
mouseClicked, mouseEntered, mouseWheelMoved
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 void mouseDragged(MouseEvent e)
mouseDragged
在接口
MouseMotionListener
mouseDragged
在
MouseAdapter
public void mouseMoved(MouseEvent e)
MouseAdapter
mouseMoved
在界面
MouseMotionListener
mouseMoved
在
MouseAdapter
public void mouseExited(MouseEvent e)
mouseExited
在接口
MouseListener
mouseExited
在
MouseAdapter
e
- MouseEvent进一步描述事件
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.