A Discrete-Event Network Simulator
API
Public Member Functions | Private Attributes | List of all members
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 500 of file grid.py.

Constructor & Destructor Documentation

◆ __init__()

def grid.TopLegendRenderer.__init__ (   self)

Initializer.

Parameters
selfthis object
Returns
none

Definition at line 511 of file grid.py.

Member Function Documentation

◆ draw()

def grid.TopLegendRenderer.draw (   self,
  ctx 
)

Set padding.

Parameters
selfthis object
ctxctx
Returns
none

Definition at line 566 of file grid.py.

References grid.Colors.__colors, grid.TopLegendRenderer.__colors, grid.TopLegendRenderer.__legends, grid.TopLegendRenderer.__padding, and grid.TopLegendRenderer.__width.

◆ get_height()

def grid.TopLegendRenderer.get_height (   self)

Set padding.

Parameters
selfthis object
Returns
height

Definition at line 560 of file grid.py.

References grid.TopLegendRenderer.__height.

◆ layout()

def grid.TopLegendRenderer.layout (   self,
  width 
)

Set padding.

Parameters
selfthis object
widthwidth
Returns
none

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

◆ set_padding()

def grid.TopLegendRenderer.set_padding (   self,
  padding 
)

Set padding.

Parameters
selfthis object
paddingpadding
Returns
none

Definition at line 517 of file grid.py.

References grid.TopLegendRenderer.__padding.

Member Data Documentation

◆ __colors

grid.TopLegendRenderer.__colors
private

colors

Definition at line 532 of file grid.py.

Referenced by grid.TopLegendRenderer.draw().

◆ __height

grid.TopLegendRenderer.__height
private

◆ __legends

grid.TopLegendRenderer.__legends
private

legends

Definition at line 531 of file grid.py.

Referenced by grid.TopLegendRenderer.draw().

◆ __padding

grid.TopLegendRenderer.__padding
private

padding

Definition at line 516 of file grid.py.

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

◆ __width

grid.TopLegendRenderer.__width
private

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