Module sparky :: Class sparkLine
[show private | hide private]
[frames | no frames]

Class sparkLine


Serves as class for a sparkLine stub object using a SOAP Central service at http://soap.rianvanstaden.com:2020

If run directly, the module creates two test sparkline PNG files called smooth.png and discrete.png
Method Summary
  __init__(self, datalist)
Constructor for sparkLine
String getAttribute(self, attrib)
Get an attribute of the sparkLine
List of Integers getData(self)
Get the dataset of the sparkLine
Binary representation of a PNG image getSparkLine(self)
Get the sparkLine PNG representation.
String, one of "discrete" or "smooth" getType(self)
Get the type of the sparkLine
  setAttribute(self, attrib, value)
Set an attribute of the sparkLine
  setData(self, data)
Set the dataset of the sparkLine
  setType(self, type)
Set the type of the sparkLine

Method Details

__init__(self, datalist=())
(Constructor)

Constructor for sparkLine

Takes dataset as optional argument, sets default values for all SOAP object arguments

getAttribute(self, attrib)

Get an attribute of the sparkLine
Parameters:
attrib - Attribute name
           (type=String)
Returns:
Returns the current value of the attribute
           (type=String)

getData(self)

Get the dataset of the sparkLine
Returns:
Returns the current dataset
           (type=List of Integers)

getSparkLine(self)

Get the sparkLine PNG representation. Cached to reduce SOAP traffic.
Returns:
Returns the sparkLine
           (type=Binary representation of a PNG image)

getType(self)

Get the type of the sparkLine
Returns:
Returns the current type of the attribute
           (type=String, one of "discrete" or "smooth")

setAttribute(self, attrib, value)

Set an attribute of the sparkLine
Parameters:
attrib - Attribute name
           (type=String)
value - Attribute value
           (type=String or Integer)

setData(self, data)

Set the dataset of the sparkLine
Parameters:
data - Sparkline dataset
           (type=List of Integers)

setType(self, type)

Set the type of the sparkLine
Parameters:
type - sparkLine type, one of "discrete" or "smooth"
           (type=String)

Generated by Epydoc 2.1 on Tue Jul 26 23:11:08 2005 http://epydoc.sf.net