BigBrotherBot v1.8.0
System Development Information for the BigBrotherBot project.

b3::lib::runsnakerun::runsnake::PStatsAdapter Class Reference

Inheritance diagram for b3::lib::runsnakerun::runsnake::PStatsAdapter:
b3::lib::runsnakerun::squaremap::DefaultAdapter b3::lib::runsnakerun::runsnake::DirectoryViewAdapter

List of all members.

Public Member Functions

def value
def label
def empty
def parents
def background_color
def SetPercentage

Public Attributes

 total

Static Public Attributes

 percentageView = False
int total = 0
 color_mapping = None

Member Function Documentation

def b3::lib::runsnakerun::runsnake::PStatsAdapter::background_color (   self,
  node,
  depth 
)
Create a (unique-ish) background color for each node

Reimplemented from b3::lib::runsnakerun::squaremap::DefaultAdapter.

def b3::lib::runsnakerun::runsnake::PStatsAdapter::empty (   self,
  node 
)
Calculate empty space as a fraction of total space

Reimplemented from b3::lib::runsnakerun::squaremap::DefaultAdapter.

def b3::lib::runsnakerun::runsnake::PStatsAdapter::label (   self,
  node 
)
Return textual description of this node

Reimplemented from b3::lib::runsnakerun::squaremap::DefaultAdapter.

def b3::lib::runsnakerun::runsnake::PStatsAdapter::parents (   self,
  node 
)
Retrieve/calculate the set of parents for the given node

Reimplemented from b3::lib::runsnakerun::squaremap::DefaultAdapter.

def b3::lib::runsnakerun::runsnake::PStatsAdapter::SetPercentage (   self,
  percent,
  total 
)
Set whether to display percentage values (and total for doing so)
def b3::lib::runsnakerun::runsnake::PStatsAdapter::value (   self,
  node,
  parent = None 
)
Return value used to compare size of this node

Reimplemented from b3::lib::runsnakerun::squaremap::DefaultAdapter.


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties