Package ZenModel :: Module ComplexGraphPoint
[hide private]
[frames] | no frames]

Source Code for Module ZenModel.ComplexGraphPoint

 1  ########################################################################### 
 2  # 
 3  # This program is part of Zenoss Core, an open source monitoring platform. 
 4  # Copyright (C) 2007, Zenoss Inc. 
 5  # 
 6  # This program is free software; you can redistribute it and/or modify it 
 7  # under the terms of the GNU General Public License version 2 as published by 
 8  # the Free Software Foundation. 
 9  # 
10  # For complete information please visit: http://www.zenoss.com/oss/ 
11  # 
12  ########################################################################### 
13   
14  __doc__="""ComplexGraphPoint 
15  """ 
16   
17  import os 
18  from GraphPoint import GraphPoint                                      
19  from Globals import InitializeClass 
20   
21   
22 -class ComplexGraphPoint(GraphPoint):
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