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

# Source Code for Module Products.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 or (at your
     8  # option) any later version as published by 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  from GraphPoint import GraphPoint
    18  from Globals import InitializeClass
    19
    20
    21 -class ComplexGraphPoint(GraphPoint):
    22
    23      LINETYPE_DONTDRAW = 'DONTDRAW'
    24      LINETYPE_LINE = 'LINE'
    25      LINETYPE_AREA = 'AREA'
    26
    27      lineTypeOptions = (
    28          ('Not Drawn', LINETYPE_DONTDRAW),
    29          ('Line', LINETYPE_LINE),
    30          ('Area', LINETYPE_AREA),
    31          )
    32
    33      color = ''
    34      lineType = LINETYPE_LINE
    35      lineWidth = 1
    36      stacked = False
    37      format = GraphPoint.DEFAULT_FORMAT
    38      legend = GraphPoint.DEFAULT_LEGEND
    39
    40      _properties = GraphPoint._properties + (
    41          {'id':'color', 'type':'string', 'mode':'w'},
    42          {'id':'lineType', 'type':'selection',
    43          'select_variable' : 'lineTypes', 'mode':'w'},
    44          {'id':'lineWidth', 'type':'long', 'mode':'w'},
    45          {'id':'stacked', 'type':'boolean', 'mode':'w'},
    46          {'id':'format', 'type':'string', 'mode':'w'},
    47          {'id':'legend', 'type':'string', 'mode':'w'},
    48          )
    49
    50
    51  InitializeClass(ComplexGraphPoint)
    52