Class MouseEventDetails
java.lang.Object
com.vaadin.componentfactory.maps.events.MouseEventDetails
- All Implemented Interfaces:
Serializable
Helper class to store and transfer mouse event details.
- Version:
- $Id: $Id
- Author:
- Vaadin
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumConstants for mouse buttons. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGetter for the fieldabsoluteX.intGetter for the fieldabsoluteY.Getter for the fieldbutton.getButtonName.intGetter for the fieldscreenX.intGetter for the fieldscreenY.doubleGetter for the fieldxValue.doubleGetter for the fieldyValue.booleanisAltKey()isAltKey.booleanisCtrlKey.booleanisMetaKey.booleanisShiftKey.voidsetAbsoluteX(int absoluteX) Setter for the fieldabsoluteX.voidsetAbsoluteY(int absoluteY) Setter for the fieldabsoluteY.voidsetAltKey(boolean altKey) Setter for the fieldaltKey.voidSetter for the fieldbutton.voidsetCtrlKey(boolean ctrlKey) Setter for the fieldctrlKey.voidsetMetaKey(boolean metaKey) Setter for the fieldmetaKey.voidsetScreenX(int screenX) Setter for the fieldscreenX.voidsetScreenY(int screenY) Setter for the fieldscreenY.voidsetShiftKey(boolean shiftKey) Setter for the fieldshiftKey.voidsetxValue(double xValue) Setter for the fieldxValue.voidsetyValue(double yValue) Setter for the fieldyValue.toString()
-
Constructor Details
-
MouseEventDetails
public MouseEventDetails()Constructor for MouseEventDetails.
-
-
Method Details
-
getButton
Getter for the field
button.- Returns:
- a
MouseEventDetails.MouseButtonobject.
-
getAbsoluteX
public int getAbsoluteX()Getter for the field
absoluteX.- Returns:
- a int.
-
getAbsoluteY
public int getAbsoluteY()Getter for the field
absoluteY.- Returns:
- a int.
-
getScreenX
public int getScreenX()Getter for the field
screenX.- Returns:
- a int.
-
setScreenX
public void setScreenX(int screenX) Setter for the field
screenX.- Parameters:
screenX- a int.
-
getScreenY
public int getScreenY()Getter for the field
screenY.- Returns:
- a int.
-
setScreenY
public void setScreenY(int screenY) Setter for the field
screenY.- Parameters:
screenY- a int.
-
isAltKey
public boolean isAltKey()isAltKey.
- Returns:
- a boolean.
-
isCtrlKey
public boolean isCtrlKey()isCtrlKey.
- Returns:
- a boolean.
-
isMetaKey
public boolean isMetaKey()isMetaKey.
- Returns:
- a boolean.
-
isShiftKey
public boolean isShiftKey()isShiftKey.
- Returns:
- a boolean.
-
getxValue
public double getxValue()Getter for the field
xValue.- Returns:
- a double.
-
getyValue
public double getyValue()Getter for the field
yValue.- Returns:
- a double.
-
setButton
Setter for the field
button.- Parameters:
button- aMouseEventDetails.MouseButtonobject.
-
setAbsoluteX
public void setAbsoluteX(int absoluteX) Setter for the field
absoluteX.- Parameters:
absoluteX- a int.
-
setAbsoluteY
public void setAbsoluteY(int absoluteY) Setter for the field
absoluteY.- Parameters:
absoluteY- a int.
-
setAltKey
public void setAltKey(boolean altKey) Setter for the field
altKey.- Parameters:
altKey- a boolean.
-
setCtrlKey
public void setCtrlKey(boolean ctrlKey) Setter for the field
ctrlKey.- Parameters:
ctrlKey- a boolean.
-
setMetaKey
public void setMetaKey(boolean metaKey) Setter for the field
metaKey.- Parameters:
metaKey- a boolean.
-
setShiftKey
public void setShiftKey(boolean shiftKey) Setter for the field
shiftKey.- Parameters:
shiftKey- a boolean.
-
setxValue
public void setxValue(double xValue) Setter for the field
xValue.- Parameters:
xValue- a double.
-
setyValue
public void setyValue(double yValue) Setter for the field
yValue.- Parameters:
yValue- a double.
-
getButtonName
getButtonName.
- Returns:
- a
Stringobject.
-
toString
-