public class ShapeMouseEvent<T extends Shape> extends ShapeEvent<T>
Constructor and Description |
---|
ShapeMouseEvent(String name,
Set<Range> refs,
int keys,
int button,
int pageX,
int pageY,
int x,
int y,
int targetX,
int targetY,
int targetWidth,
int targetHeight,
T target,
Object data) |
Modifier and Type | Method and Description |
---|---|
int |
getButton()
Returns a Number, representing which mouse button that was pressed when the mouse event occurred.
|
int |
getPageX()
Returns the horizontal coordinate of the mouse pointer relative
to the whole document.
|
int |
getPageY()
Returns the vertical coordinate of the mouse pointer relative
to the whole document.
|
static ShapeMouseEvent |
getShapeMouseEvent(String name,
Spreadsheet spreadsheet,
kk.json.JSONObject json) |
int |
getX()
Returns the horizontal coordinate of the mouse pointer relevant to
the spreadsheet.
|
int |
getY()
Returns the vertical coordinate of the mouse pointer relevant to
the spreadsheet.
|
boolean |
isAltKey()
Returns whether the alt key has pressed.
|
boolean |
isCtrlKey()
Returns whether the ctrl key has pressed.
|
boolean |
isMetaKey()
Returns whether the meta key has pressed.
|
boolean |
isShiftKey()
Returns whether the shift key has pressed.
|
getBookName, getShapeId, getSheetId, getTarget, getTargetHeight, getTargetWidth, getTargetX, getTargetY
getColumn, getData, getLastColumn, getLastRow, getName, getRange, getRangeEvent, getRangeEvent, getRanges, getRow, getWorksheet, toString
public static ShapeMouseEvent getShapeMouseEvent(String name, Spreadsheet spreadsheet, kk.json.JSONObject json)
public int getButton()
public int getPageX()
public int getPageY()
public int getX()
public int getY()
public boolean isShiftKey()
public boolean isCtrlKey()
public boolean isAltKey()
public boolean isMetaKey()
Copyright © 2018. All rights reserved.