Package muntjac :: Package addon :: Package invient :: Module invient_charts :: Class MousePosition
[hide private]
[frames] | no frames]

Class MousePosition

source code

object --+
         |
        MousePosition

This class contain mouse coordinates when a click event occurs on a chart, a series or a point.

The mouse coordinates are in pixels.


Authors:
Invient, Richard Lincoln
Instance Methods [hide private]
 
__init__(self, mouseX, mouseY)
Creates this object with given arguments.
source code
 
getMouseX(self)
Returns: Returns x position of mouse when a click event occurred, in pixel
source code
 
getMouseY(self)
Returns: Returns y position of mouse when a click event occurred, in pixel
source code
 
__str__(self)
str(x)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, mouseX, mouseY)
(Constructor)

source code 

Creates this object with given arguments.

Parameters:
  • mouseX - x position of mouse when a click event occurred, in pixel
  • mouseY - y position of mouse when a click event occurred, in pixel
Overrides: object.__init__

getMouseX(self)

source code 
Returns:
Returns x position of mouse when a click event occurred, in pixel

getMouseY(self)

source code 
Returns:
Returns y position of mouse when a click event occurred, in pixel

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)