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

ScaleRenderer class. More...

Public Member Functions

 __init__ (self)
 Initializer.
 
 draw (self, ctx)
 Draw.
 
 get_height (self)
 Get Height.
 
 get_position (self, x)
 Get Position.
 
 layout (self, width)
 Layout.
 
 set_bot (self)
 Set Bottom.
 
 set_bounds (self, lo, hi)
 Set Bounds.
 
 set_top (self)
 Set Top.
 

Public Attributes

 max_text_height
 maximum text height
 

Private Attributes

 __delta
 delta
 
 __height
 height
 
 __hi
 hi
 
 __lo
 lo
 
 __top
 top
 
 __width
 width
 

Detailed Description

ScaleRenderer class.

Definition at line 920 of file grid.py.

Constructor & Destructor Documentation

◆ __init__()

grid.ScaleRenderer.__init__ ( self)

Initializer.

Parameters
selfthis object

Definition at line 935 of file grid.py.

Member Function Documentation

◆ draw()

grid.ScaleRenderer.draw ( self,
ctx )

◆ get_height()

grid.ScaleRenderer.get_height ( self)

Get Height.

Parameters
selfthis object
Returns
height

Definition at line 1009 of file grid.py.

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

◆ get_position()

grid.ScaleRenderer.get_position ( self,
x )

Get Position.

Parameters
selfthis object
xx
Returns
real x

Definition at line 952 of file grid.py.

References grid.ScaleRenderer.__hi, grid.ScaleRenderer.__lo, grid.GraphicRenderer.__width, grid.GtkGraphicRenderer.__width, grid.ScaleRenderer.__width, and grid.TopLegendRenderer.__width.

Referenced by visualizer.core.Node._update_position().

+ Here is the caller graph for this function:

◆ layout()

grid.ScaleRenderer.layout ( self,
width )

Layout.

Parameters
selfthis object
widthwidth
Returns
none

Definition at line 975 of file grid.py.

References grid.ScaleRenderer.__hi, and grid.ScaleRenderer.__lo.

◆ set_bot()

grid.ScaleRenderer.set_bot ( self)

Set Bottom.

Parameters
selfthis object
Returns
none

Definition at line 968 of file grid.py.

References grid.ScaleRenderer.__top.

◆ set_bounds()

grid.ScaleRenderer.set_bounds ( self,
lo,
hi )

Set Bounds.

Parameters
selfthis object
lolo
hihi
Returns
none

Definition at line 942 of file grid.py.

◆ set_top()

grid.ScaleRenderer.set_top ( self)

Set Top.

Parameters
selfthis object
Returns
none

Definition at line 961 of file grid.py.

References grid.ScaleRenderer.__top.

Member Data Documentation

◆ __delta

grid.ScaleRenderer.__delta
private

delta

Definition at line 998 of file grid.py.

Referenced by grid.ScaleRenderer.draw().

◆ __height

◆ __hi

grid.ScaleRenderer.__hi
private

◆ __lo

grid.ScaleRenderer.__lo
private

◆ __top

grid.ScaleRenderer.__top
private

◆ __width

◆ max_text_height

grid.ScaleRenderer.max_text_height

maximum text height

Definition at line 1005 of file grid.py.

Referenced by grid.TimelinesRenderer.draw_events().


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