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

b3::lib::runsnakerun::squaremap::SquareMap Class Reference

List of all members.

Public Member Functions

def __init__
def OnMouse
def OnClickRelease
def OnDoubleClick
def OnKeyUp
def GetSelected
def SetSelected
def SetHighlight
def SetModel
def Refresh
def OnPaint
def OnSize
def UpdateDrawing
def Draw
def FontForLabels
def BrushForNode
def PenForNode
def TextForegroundForNode
def DrawBox
def DrawIconAndLabel
def LayoutChildren

Public Attributes

 model
 padding
 labels
 highlight
 selectedNode
 highlightedNode
 hot_map
 adapter
 DEFAULT_PEN
 SELECTED_PEN

Static Public Attributes

tuple BackgroundColor = wx.Color( 128,128,128 )
 max_depth = None
 max_depth_seen = None

Private Attributes

 _buffer

Detailed Description

Construct a nested-box trees structure view

Constructor & Destructor Documentation

def b3::lib::runsnakerun::squaremap::SquareMap::__init__ (   self,
  parent = None,
  id = -1,
  pos = wx.DefaultPosition,
  size = wx.DefaultSize,
  style = wx.TAB_TRAVERSAL|wx.NO_BORDER|wx.FULL_REPAINT_ON_RESIZE,
  name = 'SquareMap',
  model = None,
  adapter = None,
  labels = True,
  highlight = True,
  padding = 2 
)

Member Function Documentation

def b3::lib::runsnakerun::squaremap::SquareMap::BrushForNode (   self,
  node,
  depth = 0 
)
Create brush to use to display the given node
def b3::lib::runsnakerun::squaremap::SquareMap::Draw (   self,
  dc 
)
Draw the tree map on the device context. 
def b3::lib::runsnakerun::squaremap::SquareMap::DrawBox (   self,
  dc,
  node,
  x,
  y,
  w,
  h,
  hot_map,
  depth = 0 
)
Draw a model-node's box and all children nodes
def b3::lib::runsnakerun::squaremap::SquareMap::DrawIconAndLabel (   self,
  dc,
  node,
  x,
  y,
  w,
  h,
  depth 
)
Draw the icon, if any, and the label, if any, of the node. 
def b3::lib::runsnakerun::squaremap::SquareMap::FontForLabels (   self,
  dc 
)
Return the default GUI font, scaled for printing if necessary. 
def b3::lib::runsnakerun::squaremap::SquareMap::GetSelected (   self)
def b3::lib::runsnakerun::squaremap::SquareMap::LayoutChildren (   self,
  dc,
  children,
  parent,
  x,
  y,
  w,
  h,
  hot_map,
  depth = 0 
)
Layout the set of children in the given rectangle
def b3::lib::runsnakerun::squaremap::SquareMap::OnClickRelease (   self,
  event 
)
Release over a given square in the map
def b3::lib::runsnakerun::squaremap::SquareMap::OnDoubleClick (   self,
  event 
)
Double click on a given square in the map
def b3::lib::runsnakerun::squaremap::SquareMap::OnKeyUp (   self,
  event 
)
def b3::lib::runsnakerun::squaremap::SquareMap::OnMouse (   self,
  event 
)
Handle mouse-move event by selecting a given element
def b3::lib::runsnakerun::squaremap::SquareMap::OnPaint (   self,
  event 
)
def b3::lib::runsnakerun::squaremap::SquareMap::OnSize (   self,
  event 
)
def b3::lib::runsnakerun::squaremap::SquareMap::PenForNode (   self,
  node,
  depth = 0 
)
Determine the pen to use to display the given node
def b3::lib::runsnakerun::squaremap::SquareMap::Refresh (   self)
def b3::lib::runsnakerun::squaremap::SquareMap::SetHighlight (   self,
  node,
  point = None,
  propagate = True 
)
Set the currently-highlighted node
def b3::lib::runsnakerun::squaremap::SquareMap::SetModel (   self,
  model,
  adapter = None 
)
Set our model object (root of the tree)
def b3::lib::runsnakerun::squaremap::SquareMap::SetSelected (   self,
  node,
  point = None,
  propagate = True 
)
Set the given node selected in the square-map
def b3::lib::runsnakerun::squaremap::SquareMap::TextForegroundForNode (   self,
  node,
  depth = 0 
)
Determine the text foreground color to use to display the label of
   the given node
def b3::lib::runsnakerun::squaremap::SquareMap::UpdateDrawing (   self)

Member Data Documentation

tuple b3::lib::runsnakerun::squaremap::SquareMap::BackgroundColor = wx.Color( 128,128,128 ) [static]

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