|        |   | 
- BaseViewer(BaseTableWorker, wxPyGridCellRenderer)
 - 
- ColourViewer
  
 
 
 
 
  
class ColourViewer(BaseViewer) |  
    
|     | 
Colour viewer (display r,g,b text + swatch)   |  
|   | 
- Method resolution order:
 
- ColourViewer
 
- BaseViewer
 
- BaseTableWorker
 
- wxPyGridCellRenderer
 
- wxPyGridCellRendererPtr
 
- wxGridCellRendererPtr
 
 
 
Methods defined here: 
- Draw(self, grid, attr, dc, rect, row, col, isSelected)
 - Draw the data from grid in the rectangle with attributes using the dc
  
- DrawSwatch(self, dc, rect, colour)
 - Draw the swatch rectangle in the given colour
  
- GetBestSize(self, grid, attr, dc, row, col)
 - Assumes a text value, override!
  
- GetValueAsText(self, row, col)
 - Return time value as a friendly text value
  
 
Data and other attributes defined here: 
- swatchBorderSize = 2
  
- swatchSize = 16
  
 
Methods inherited from BaseViewer: 
- Background(self, grid, attr, dc, rect, row, col, isSelected)
 - Draw an appropriate background based on selection state
  
- Clip(self, dc, rect)
 - Setup the clipping rectangle
  
- SimpleText(self, value, attr, dc, rect, isSelected)
 - Draw a simple text label in appropriate colours with background
 
  
Uses the system settings at application load to draw a rectangle 
(rect) in either system window background or system selected window 
background.  Then draws the string "value" using either selected 
text or normal text colours.  
- Unclip(self, dc)
 - Destroy the clipping rectangle
  
 
Data and other attributes inherited from BaseViewer: 
- BACKGROUND = wxColour(255, 255, 255)
  
- BACKGROUND_SELECTED = wxColour(10, 36, 106)
  
- TEXT = wxColour(0, 0, 0)
  
- TEXT_SELECTED = wxColour(255, 255, 255)
  
 
Methods inherited from BaseTableWorker: 
- Clone(self)
 - Create a new object which is the copy of this one
 
*Must Override*  
- GetCurrentTableValue(self, row, col, grid=None)
 - Retrieve the current value from the table
  
- GetGrid(self)
 - Return a pointer to the Python grid object (hacky workaround)
  
- SetCurrentTableValue(self, row, col, value, grid=None)
 - Set the current value in table to a value
  
- SetGrid(self, object)
 - ### OOR Hack/workaround, the grid passed to the editor's methods
 
### doesn't have access to the Python object, so we have to store 
### another reference to be able to get to it and use it.  
 
Data and other attributes inherited from BaseTableWorker: 
- gridReference = None
  
 
Methods inherited from wxPyGridCellRenderer: 
- __init__(self, *_args, **_kwargs)
  
 
Methods inherited from wxPyGridCellRendererPtr: 
- __repr__(self)
  
- base_SetParameters(self, *_args, **_kwargs)
  
 
Methods inherited from wxGridCellRendererPtr: 
- DecRef(self, *_args, **_kwargs)
  
- IncRef(self, *_args, **_kwargs)
  
- SetParameters(self, *_args, **_kwargs)
  
 |    |