# ``igraph`.`drawing`.`cairo`.`palette`.`CairoPaletteDrawer``

class documentation

`class CairoPaletteDrawer(AbstractCairoDrawer): (source)`

Constructor: `CairoPaletteDrawer(context)`

View In Hierarchy

Default Cairo drawer object for palettes

Method | `__init__` | Constructs the vertex drawer and associates it to the given palette.
Method | `draw` | TODO
Instance Variable | `bbox` | The bounding box of the drawing area where this drawer will draw.

Inherited from `AbstractCairoDrawer`:

Method | `bbox.setter` | Sets the bounding box of the drawing area where this drawer will draw.
Instance Variable | `context` | Undocumented
Method | `_mark_point` | Marks the given point with a small circle on the canvas. Used primarily for debugging purposes.
Instance Variable | `_bbox` | Undocumented

def __init__(self, context): (source)
overrides `igraph.drawing.cairo.base.AbstractCairoDrawer.__init__`

Constructs the vertex drawer and associates it to the given palette.

Parameters
context | the context on which we will draw

def draw(self, palette, **kwds): (source)
overrides `igraph.drawing.baseclasses.AbstractDrawer.draw`

TODO

bbox = (source)
overrides `igraph.drawing.cairo.base.AbstractCairoDrawer.bbox`

The bounding box of the drawing area where this drawer will draw.