A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
grid.TopLegendRenderer Class Reference

TopLegendRenderer class. More...

Public Member Functions

 __init__ (self)
 Initializer.
 
 draw (self, ctx)
 Set padding.
 
 get_height (self)
 Set padding.
 
 layout (self, width)
 Set padding.
 
 set_legends (self, legends, colors)
 Set padding.
 
 set_padding (self, padding)
 Set padding.
 

Private Attributes

 __colors
 colors
 
 __height
 height
 
 __legends
 legends
 
 __padding
 padding
 
 __width
 width
 

Detailed Description

TopLegendRenderer class.

Definition at line 547 of file grid.py.

Constructor & Destructor Documentation

◆ __init__()

grid.TopLegendRenderer.__init__ ( self)

Initializer.

Parameters
selfthis object

Definition at line 558 of file grid.py.

Member Function Documentation

◆ draw()

grid.TopLegendRenderer.draw ( self,
ctx )

◆ get_height()

grid.TopLegendRenderer.get_height ( self)

Set padding.

Parameters
selfthis object
Returns
height

Definition at line 609 of file grid.py.

References grid.GraphicRenderer.__height, grid.GtkGraphicRenderer.__height, grid.ScaleRenderer.__height, and grid.TopLegendRenderer.__height.

◆ layout()

grid.TopLegendRenderer.layout ( self,
width )

Set padding.

Parameters
selfthis object
widthwidth
Returns
none

Definition at line 582 of file grid.py.

◆ set_legends()

grid.TopLegendRenderer.set_legends ( self,
legends,
colors )

Set padding.

Parameters
selfthis object
legendslegends
colorscolors
Returns
none

Definition at line 572 of file grid.py.

◆ set_padding()

grid.TopLegendRenderer.set_padding ( self,
padding )

Set padding.

Parameters
selfthis object
paddingpadding
Returns
none

Definition at line 564 of file grid.py.

References grid.TopLegendRenderer.__padding.

Member Data Documentation

◆ __colors

grid.TopLegendRenderer.__colors
private

colors

Definition at line 580 of file grid.py.

Referenced by grid.Colors.add(), grid.TopLegendRenderer.draw(), and grid.Colors.lookup().

◆ __height

◆ __legends

grid.TopLegendRenderer.__legends
private

legends

Definition at line 579 of file grid.py.

Referenced by grid.TopLegendRenderer.draw().

◆ __padding

grid.TopLegendRenderer.__padding
private

padding

Definition at line 562 of file grid.py.

Referenced by grid.TopLegendRenderer.draw(), and grid.TopLegendRenderer.set_padding().

◆ __width


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