public class BrowserMouseEvent
extends java.lang.Object
Browser.forwardMouseEvent(BrowserMouseEvent)
method.
Modifier and Type | Class and Description |
---|---|
static class |
BrowserMouseEvent.BrowserMouseEventBuilder |
static class |
BrowserMouseEvent.MouseButtonType
Represents mouse button type
表示鼠标按钮类型 |
static class |
BrowserMouseEvent.MouseEventType
Represents mouse event type
表示鼠标事件类型 |
static class |
BrowserMouseEvent.MouseScrollType
Represents mouse scroll type
表示鼠标滚动类型 |
Modifier and Type | Method and Description |
---|---|
BrowserMouseEvent.MouseButtonType |
getButtonType()
Returns the button type of current event.
返回当前事件的按钮类型。 |
int |
getClickCount()
Returns the click count of current event.
返回当前事件的点击计数。 |
BrowserMouseEvent.MouseEventType |
getEventType()
Returns the event type of current event.
返回当前事件的事件类型。 |
int |
getGlobalX()
Returns the absolute horizontal x position of the event.
返回事件的绝对水平x位置。 |
int |
getGlobalY()
Returns the absolute vertical x position of the event.
返回事件的绝对垂直x位置。 |
BrowserKeyEvent.KeyModifiers |
getModifiers()
Returns the key modifiers of the current event.
返回当前事件的键修饰符。 |
int |
getScrollBarPixelsPerLine()
Returns the scrollbar pixels per line number of this event.
返回此事件每行号的滚动条像素。 |
BrowserMouseEvent.MouseScrollType |
getScrollType()
Returns the mouse scroll type of the event.
返回事件的鼠标滚动类型。 |
int |
getUnitsToScroll()
Returns the units to scroll number of this event.
返回此事件的滚动单位。 |
long |
getWhen()
Returns a long integer that specifies the time the event occurred.
返回一个长整数,该整数指定事件发生的时间。 |
int |
getWindowX()
Returns the horizontal x position of the event relative to the window.
返回事件相对于窗口的水平x位置。 |
int |
getWindowY()
Returns the vertical y position of the event relative to the window.
返回事件相对于窗口的垂直y位置。 |
int |
getX()
Returns the horizontal x position of the event relative to the source component.
返回事件相对于源组件的水平x位置。 |
int |
getY()
Returns the vertical y position of the event relative to the source component.
返回事件相对于源组件的垂直y位置。 |
boolean |
isHorizontalScroll()
Indicates if current event's scroll direction is horizontal.
指示当前事件的滚动方向是否为水平。 |
public BrowserMouseEvent.MouseEventType getEventType()
MouseEventType
enum value representing the event type.
代表事件类型的枚举值。
public BrowserMouseEvent.MouseButtonType getButtonType()
MouseButtonType
enum value representing the button type.
表示按钮类型的枚举值。
public BrowserKeyEvent.KeyModifiers getModifiers()
public long getWhen()
public int getClickCount()
int
value representing click count.
代表点击计数的值。
public int getX()
int
value indicating horizontal position relative to the component.
指示相对于组件的水平位置的值。
public int getY()
int
value indicating vertical position relative to the component.
指示相对于组件的垂直位置的值。
public int getWindowX()
int
value indicating horizontal position relative to the window.
指示相对于窗口的水平位置的值。
public int getWindowY()
int
value indicating vertical position relative to the window.
指示相对于窗口的垂直位置的值。
public int getGlobalY()
int
value indicating absolute vertical position.
指示绝对垂直位置的值。
public int getGlobalX()
int
value indicating absolute horizontal position.
表示绝对水平位置的值。
public BrowserMouseEvent.MouseScrollType getScrollType()
MouseScrollType
enum value representing the scroll type.
代表滚动类型的枚举值。
public int getUnitsToScroll()
int
value indicating units scroll number.
值指示单位滚动编号。
public boolean isHorizontalScroll()
true
if if current event's scroll direction is horizontal.
如果当前事件的滚动方向是水平的。
public int getScrollBarPixelsPerLine()
int
value indicating scrollbar pixels per line number.
指示每行号滚动条像素的值。