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

# Source Code for Module Products.ZenModel.ComplexGraphPoint

     1  ##############################################################################
     2  #
     3  # Copyright (C) Zenoss, Inc. 2007, all rights reserved.
     4  #
     5  # This content is made available according to terms specified in
     6  # License.zenoss under the directory where your Zenoss product is installed.
     7  #
     8  ##############################################################################
     9
    10
    11  __doc__="""ComplexGraphPoint
    12  """
    13
    14  from GraphPoint import GraphPoint
    15  from Globals import InitializeClass
    16
    17
    18 -class ComplexGraphPoint(GraphPoint):
    19
    20      LINETYPE_DONTDRAW = 'DONTDRAW'
    21      LINETYPE_LINE = 'LINE'
    22      LINETYPE_AREA = 'AREA'
    23
    24      lineTypeOptions = (
    25          ('Not Drawn', LINETYPE_DONTDRAW),
    26          ('Line', LINETYPE_LINE),
    27          ('Area', LINETYPE_AREA),
    28          )
    29
    30      color = ''
    31      lineType = LINETYPE_LINE
    32      lineWidth = 1
    33      stacked = False
    34      format = GraphPoint.DEFAULT_FORMAT
    35      legend = GraphPoint.DEFAULT_LEGEND
    36
    37      _properties = GraphPoint._properties + (
    38          {'id':'color', 'type':'string', 'mode':'w'},
    39          {'id':'lineType', 'type':'selection',
    40          'select_variable' : 'lineTypes', 'mode':'w'},
    41          {'id':'lineWidth', 'type':'long', 'mode':'w'},
    42          {'id':'stacked', 'type':'boolean', 'mode':'w'},
    43          {'id':'format', 'type':'string', 'mode':'w'},
    44          {'id':'legend', 'type':'string', 'mode':'w'},
    45          )
    46
    47
    48  InitializeClass(ComplexGraphPoint)
    49