Package sabx10 :: Package osm :: Module legend :: Class LegendNode
[hide private]
[frames] | no frames]

Class LegendNode

source code

object --+
         |
        LegendNode

Holds one item in the legend, one item per legend line.

Instance Methods [hide private]
 
__init__(self, id, text, lat, lon)
Save the passed-in values.
source code

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

Instance Variables [hide private]
int id
id of item
float lat
latitude of text top
float lon
longitude of text left
string text
text of item
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, id, text, lat, lon)
(Constructor)

source code 

Save the passed-in values.

Parameters:
  • id (int) - id of item
  • text (string) - text of item
  • lat (float) - latitude of text top
  • lon (float) - longitude of text left
Overrides: object.__init__