public static Coordinate getPosition ( MouseEvent < ? > event , int offsetX , int offsetY ) { return new Coordinate ( event . getX ( ) + offsetX , event . getY ( ) + offsetY ) ; }
Get the position of a mouse event .