Package muntjac :: Package addon :: Package invient :: Module invient_charts_config :: Class ChartLabel
[hide private]
[frames] | no frames]

Class ChartLabel

source code

object --+
         |
        ChartLabel

The ChartLabel class represents a set of labels which an be placed at arbitrary position in the chart.


Authors:
Invient, Richard Lincoln
Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
getStyle(self)
Returns: Returns css style.
source code
 
setStyle(self, style)
Sets css style for all labels in this class
source code
 
getLabels(self)
Returns: Returns a list of ChartLabelItem objects
source code
 
setLabels(self, labels)
Sets a list of ChartLabelItem objects
source code
 
addLabel(self, label)
Appends the specified element at the end of ChartLabelItem list.
source code
 
removeLabel(self, label)
Removes the specified element from the list of ChartLabelItem
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

getStyle(self)

source code 
Returns:
Returns css style.

setStyle(self, style)

source code 

Sets css style for all labels in this class

Parameters:
  • style - css style string

getLabels(self)

source code 
Returns:
Returns a list of ChartLabelItem objects

setLabels(self, labels)

source code 

Sets a list of ChartLabelItem objects

Parameters:
  • labels

addLabel(self, label)

source code 

Appends the specified element at the end of ChartLabelItem list.

Parameters:
  • label - element to be appended

removeLabel(self, label)

source code 

Removes the specified element from the list of ChartLabelItem

Parameters:
  • label