Fun with PWM  0.32
TkMetricManager.TkMetricManager Class Reference

UI for metrics. More...

Inheritance diagram for TkMetricManager.TkMetricManager:
TkBlock.TkPage TkBlock.TkBlock

Public Member Functions

def __init__ (self, parent, gui, options)
 
def setup (self)
 
def listMetrics (self)
 
def viewMetric (self)
 
def viewMetricSession (self)
 
def updateMetricValues (self, time)
 
def updateValueMap (self)
 
def updateValueMapMarker (self)
 
def wipeDataView (self)
 
def showSnapshot (self)
 
def updateValues (self)
 
def OnListMetricsClick (self)
 
def OnViewMetricClick (self, name)
 
def OnViewMetricSessionClick (self, datestring)
 
def OnRaiseResolutionClick (self)
 
def OnLowerResolutionClick (self)
 
def OnViewSessionClick (self, datestring)
 
def OnViewHourClick (self, data)
 
def OnViewMinuteClick (self, data)
 
def OnViewSecondClick (self, data)
 
def OnSnapshotClick (self)
 
- Public Member Functions inherited from TkBlock.TkPage
def __init__ (self, parent, gui, options)
 
def open (self)
 
- Public Member Functions inherited from TkBlock.TkBlock
def __init__ (self, parent, gui, options)
 
def setup (self)
 
def initWidget (self)
 
def addMenu (self, menu, label="-")
 
def open (self)
 
def close (self)
 
def genericView (self, parent, value)
 
def numberView (self, parent, value)
 
def stringView (self, parent, value)
 
def dictView (self, parent, value)
 
def iterView (self, parent, value)
 

Public Attributes

 m
 
 index
 
 sessions
 
 metrics
 
 scales
 
 shapes
 
 resolutions
 
 gridrow
 
 metric
 
 session
 
 sessionstart
 
 start
 
 sessionend
 
 end
 
 resolution
 
 times
 
 vals
 
 hour
 
 minute
 
 second
 
- Public Attributes inherited from TkBlock.TkBlock
 gui
 
 parent
 
 height
 
 variables
 
 notifier
 
 colours
 
 fonts
 
 images
 
 wrap
 
 canvas
 
 widget
 
 yScroller
 
 xScroller
 
 widgets
 
 gridrow
 

Detailed Description

UI for metrics.

Constructor & Destructor Documentation

§ __init__()

def TkMetricManager.TkMetricManager.__init__ (   self,
  parent,
  gui,
  options 
)
Initializes TkMetricManager object

@param parent
@param gui
@param options

Member Function Documentation

§ listMetrics()

def TkMetricManager.TkMetricManager.listMetrics (   self)
view - display a list of metrics

§ OnListMetricsClick()

def TkMetricManager.TkMetricManager.OnListMetricsClick (   self)
action - displays the list metrics page

§ OnLowerResolutionClick()

def TkMetricManager.TkMetricManager.OnLowerResolutionClick (   self)
action - changes to a lower res

§ OnRaiseResolutionClick()

def TkMetricManager.TkMetricManager.OnRaiseResolutionClick (   self)
action - changes to a higher res

§ OnSnapshotClick()

def TkMetricManager.TkMetricManager.OnSnapshotClick (   self)
action - displays snapshot page

§ OnViewHourClick()

def TkMetricManager.TkMetricManager.OnViewHourClick (   self,
  data 
)
action - displays an hour

§ OnViewMetricClick()

def TkMetricManager.TkMetricManager.OnViewMetricClick (   self,
  name 
)
action - displays the view metric page

§ OnViewMetricSessionClick()

def TkMetricManager.TkMetricManager.OnViewMetricSessionClick (   self,
  datestring 
)
action - displays the metric session page

§ OnViewMinuteClick()

def TkMetricManager.TkMetricManager.OnViewMinuteClick (   self,
  data 
)
action - displays a minute

§ OnViewSecondClick()

def TkMetricManager.TkMetricManager.OnViewSecondClick (   self,
  data 
)
action - displays a second

§ OnViewSessionClick()

def TkMetricManager.TkMetricManager.OnViewSessionClick (   self,
  datestring 
)
action - displays a session

§ setup()

def TkMetricManager.TkMetricManager.setup (   self)
setup gui menu

§ showSnapshot()

def TkMetricManager.TkMetricManager.showSnapshot (   self)
view - displays in memory values for all metrics

§ updateMetricValues()

def TkMetricManager.TkMetricManager.updateMetricValues (   self,
  time 
)
adds / updates the value of a metric given the time and resolution of the view

§ updateValueMap()

def TkMetricManager.TkMetricManager.updateValueMap (   self)
adds shapes on the value map based on the time of each loaded MetricValue
happens when the view is refreshed (change of resolution or first load

§ updateValueMapMarker()

def TkMetricManager.TkMetricManager.updateValueMapMarker (   self)
updates value map marker

§ updateValues()

def TkMetricManager.TkMetricManager.updateValues (   self)
updates values ui

§ viewMetric()

def TkMetricManager.TkMetricManager.viewMetric (   self)
view - browse metric archives

§ viewMetricSession()

def TkMetricManager.TkMetricManager.viewMetricSession (   self)
view - browse metric sessions

§ wipeDataView()

def TkMetricManager.TkMetricManager.wipeDataView (   self)
clears dataview ui

The documentation for this class was generated from the following file: