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

Class DecimalPoint

source code

object --+    
         |    
     Point --+
             |
            DecimalPoint

This class represent a point with (X, Y) both as number. It should be used to add points to XYSeries


Authors:
Invient, Richard Lincoln
Instance Methods [hide private]
 
__init__(self, *args)
Creates a point with given arguments.
source code
 
getX(self)
Returns: Returns X value of this point
source code
 
setX(self, x)
Sets the x value of this point
source code
 
getY(self)
Returns: Returns Y value of this point
source code
 
setY(self, y)
Sets the y value of this point
source code
 
__str__(self)
str(x)
source code
 
__hash__(self)
hash(x)
source code
 
__eq__(self, obj) source code

Inherited from Point: getConfig, getId, getName, getSeries, isAutosetX, isShift, setAutosetX, setConfig, setName, setShift

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args)
(Constructor)

source code 

Creates a point with given arguments.

Parameters:
  • invientCharts
  • args - tuple of the form:
    • (series)
      • the series to which this belongs to
    • (series, y)
      • the series to which this belongs to
      • the y value of this point
    • (series, name, y)
      • the series to which this belongs to
      • the name of this point
      • the y value of this point
    • (x, y)
      • the x value of this point
      • the y value of this point
    • (series, name, y, config)
      • the series to which this belongs to
      • the name of this point
      • the y value of this point
      • the configuration of this point
    • (series, y, config)
      • the series to which this belongs to
      • the y value of this point
      • the configuration of this point
    • (series, x, y)
      • the series to which this belongs to
      • the x value of this point
      • the y value of this point
    • (series, x, y, config)
      • the series to which this belongs to
      • the x value of this point
      • the y value of this point
      • the configuration of this point
Raises:
  • ValueError - If the argument series is null
Overrides: object.__init__

getX(self)

source code 
Returns:
Returns X value of this point
Overrides: Point.getX
(inherited documentation)

getY(self)

source code 
Returns:
Returns Y value of this point
Overrides: Point.getY
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__hash__(self)
(Hashing function)

source code 

hash(x)

Overrides: object.__hash__
(inherited documentation)