public class CellMouseEvent extends RangeEvent
Constructor and Description |
---|
CellMouseEvent(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,
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.
|
static CellMouseEvent |
getCellMouseEvent(String name,
Spreadsheet spreadsheet,
kk.json.JSONObject json) |
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.
|
int |
getTargetHeight()
Returns the height of the target cell.
|
int |
getTargetWidth()
Returns the width of the target cell.
|
int |
getTargetX()
Returns the horizontal coordinate of the target cell relevant
to the whole document.
|
int |
getTargetY()
Returns the vertical coordinate of the target cell relevant
to the whole document.
|
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.
|
getColumn, getData, getLastColumn, getLastRow, getName, getRange, getRangeEvent, getRangeEvent, getRanges, getRow, getWorksheet, toString
public static CellMouseEvent getCellMouseEvent(String name, Spreadsheet spreadsheet, kk.json.JSONObject json)
public int getButton()
public int getPageX()
public int getPageY()
public int getX()
public int getY()
public int getTargetX()
public int getTargetY()
public int getTargetWidth()
public int getTargetHeight()
public boolean isShiftKey()
public boolean isCtrlKey()
public boolean isAltKey()
public boolean isMetaKey()
Copyright © 2018. All rights reserved.