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

ScaleRenderer class. More...

Public Member Functions

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

Public Attributes

 max_text_height
 maximum text height More...
 

Private Attributes

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

Detailed Description

ScaleRenderer class.

Definition at line 920 of file grid.py.

Constructor & Destructor Documentation

◆ __init__()

def grid.ScaleRenderer.__init__ (   self)

Initializer.

Parameters
selfthis object

Definition at line 935 of file grid.py.

Member Function Documentation

◆ draw()

def grid.ScaleRenderer.draw (   self,
  ctx 
)

◆ get_height()

def grid.ScaleRenderer.get_height (   self)

Get Height.

Parameters
selfthis object
Returns
height

Definition at line 1009 of file grid.py.

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

◆ get_position()

def 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.TopLegendRenderer.__width, grid.ScaleRenderer.__width, grid.GraphicRenderer.__width, and grid.GtkGraphicRenderer.__width.

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

+ Here is the caller graph for this function:

◆ layout()

def 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()

def 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()

def 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()

def 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: