A Discrete-Event Network Simulator
API
grid.TopLegendRenderer Class Reference

TopLegendRenderer class. More...

Public Member Functions

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

Private Attributes

 __colors
 colors More...
 
 __height
 height More...
 
 __legends
 legends More...
 
 __padding
 padding More...
 
 __width
 width More...
 

Detailed Description

TopLegendRenderer class.

Definition at line 491 of file grid.py.

Constructor & Destructor Documentation

◆ __init__()

def grid.TopLegendRenderer.__init__ (   self)

Initializer.

Parameters
selfthis object

Definition at line 502 of file grid.py.

Member Function Documentation

◆ draw()

def grid.TopLegendRenderer.draw (   self,
  ctx 
)

◆ get_height()

def grid.TopLegendRenderer.get_height (   self)

Set padding.

Parameters
selfthis object
Returns
height

Definition at line 550 of file grid.py.

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

◆ layout()

def grid.TopLegendRenderer.layout (   self,
  width 
)

Set padding.

Parameters
selfthis object
widthwidth
Returns
none

Definition at line 523 of file grid.py.

◆ set_legends()

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

Set padding.

Parameters
selfthis object
legendslegends
colorscolors
Returns
none

Definition at line 514 of file grid.py.

◆ set_padding()

def grid.TopLegendRenderer.set_padding (   self,
  padding 
)

Set padding.

Parameters
selfthis object
paddingpadding
Returns
none

Definition at line 507 of file grid.py.

References grid.TopLegendRenderer.__padding.

Member Data Documentation

◆ __colors

grid.TopLegendRenderer.__colors
private

colors

Definition at line 522 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 521 of file grid.py.

Referenced by grid.TopLegendRenderer.draw().

◆ __padding

grid.TopLegendRenderer.__padding
private

padding

Definition at line 506 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: