public class CellEvent
extends java.util.EventObject
DiagramListener
.Constructor and Description |
---|
CellEvent(java.lang.Object source,
Cell cell,
int column,
int row,
java.awt.geom.Point2D position,
int button)
Initializes a new CellEvent instance.
|
Modifier and Type | Method and Description |
---|---|
Cell |
getCell()
Gets a reference to the cell related to the event.
|
int |
getColumn()
Gets the index of the cell column.
|
int |
getMouseButton()
Gets the mouse button related to the event.
|
java.awt.geom.Point2D.Float |
getPointerPosition()
Gets the mouse position.
|
int |
getRow()
Gets the index of the cell row.
|
TableNode |
getTable()
Gets a reference to the table related to this event.
|
public CellEvent(java.lang.Object source, Cell cell, int column, int row, java.awt.geom.Point2D position, int button)
source
- The sender of this event.cell
- The Cell
related to this event.position
- The position of the mouse at the time the event was raised.column
- The cell column.row
- The cell row.public Cell getCell()
Cell
object.public TableNode getTable()
TableNode
object.public int getColumn()
public int getRow()
public java.awt.geom.Point2D.Float getPointerPosition()
Point2D.Float
object representing
the mouse position in document coordinates.public int getMouseButton()