1
2
3
4
5
6
7
8
9
10
11
12
13
14 __doc__="""ComplexGraphPoint
15 """
16
17 import os
18 from GraphPoint import GraphPoint
19 from Globals import InitializeClass
20
21
23
24 LINETYPE_DONTDRAW = 'DONTDRAW'
25 LINETYPE_LINE = 'LINE'
26 LINETYPE_AREA = 'AREA'
27
28 lineTypeOptions = (
29 ('Not Drawn', LINETYPE_DONTDRAW),
30 ('Line', LINETYPE_LINE),
31 ('Area', LINETYPE_AREA),
32 )
33
34 color = ''
35 lineType = LINETYPE_LINE
36 lineWidth = 1
37 stacked = False
38 format = GraphPoint.DEFAULT_FORMAT
39 legend = GraphPoint.DEFAULT_LEGEND
40
41 _properties = GraphPoint._properties + (
42 {'id':'color', 'type':'string', 'mode':'w'},
43 {'id':'lineType', 'type':'selection',
44 'select_variable' : 'lineTypes', 'mode':'w'},
45 {'id':'lineWidth', 'type':'long', 'mode':'w'},
46 {'id':'stacked', 'type':'boolean', 'mode':'w'},
47 {'id':'format', 'type':'string', 'mode':'w'},
48 {'id':'legend', 'type':'string', 'mode':'w'},
49 )
50
51
52 InitializeClass(ComplexGraphPoint)
53