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

Class ChartClickEvent

source code

      object --+        
               |        
util.EventObject --+    
                   |    
  ui.component.Event --+
                       |
                      ChartClickEvent

Chart Click event. This event is thrown, when this chart is clicked.


Authors:
Invient, Richard Lincoln
Instance Methods [hide private]
 
__init__(self, source, chart, point, mousePosition)
New instance of the chart click event.
source code
 
getChart(self)
Returns the chart object on which the click event occurred
source code
 
getPoint(self)
Returns the point representing the position where the click event occurred in axes units
source code
 
getMousePosition(self)
Returns the position of a mouse when the click event occurred
source code
 
__str__(self)
str(x)
source code

Inherited from ui.component.Event: getComponent

Inherited from util.EventObject: getSource

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, source, chart, point, mousePosition)
(Constructor)

source code 

New instance of the chart click event.

Parameters:
  • source - the chart object itself
  • chart - the chart object itself
  • point - the position where the click event occurred in axes units
  • mousePosition - the coordinate of mouse where the click event occurred in pixels
Overrides: object.__init__

getChart(self)

source code 

Returns the chart object on which the click event occurred

Returns:
Returns the chart object on which the click event occurred

See Also: InvientCharts

getPoint(self)

source code 

Returns the point representing the position where the click event occurred in axes units

Returns:
Returns the point representing the position where the click event occurred in axes units

See Also: Point

getMousePosition(self)

source code 

Returns the position of a mouse when the click event occurred

Returns:
Returns the position of a mouse when the click event occurred

See Also: MousePosition

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)