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

Constructor & Destructor Documentation

◆ __init__()

def grid.ScaleRenderer.__init__ (   self)

Initializer.

Parameters
selfthis object
Returns
none

Definition at line 863 of file grid.py.

Member Function Documentation

◆ draw()

def grid.ScaleRenderer.draw (   self,
  ctx 
)

Draw.

Parameters
selfthis object
ctxctx
Returns
none

Definition at line 937 of file grid.py.

References grid.ScaleRenderer.__delta, grid.ScaleRenderer.__hi, grid.ScaleRenderer.__lo, grid.ScaleRenderer.__top, grid.TopLegendRenderer.__width, and grid.ScaleRenderer.__width.

◆ get_height()

def grid.ScaleRenderer.get_height (   self)

Get Height.

Parameters
selfthis object
Returns
height

Definition at line 931 of file grid.py.

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

◆ get_position()

def grid.ScaleRenderer.get_position (   self,
  x 
)

Get Position.

Parameters
selfthis object
xx
Returns
real x

Definition at line 879 of file grid.py.

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

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

◆ layout()

def grid.ScaleRenderer.layout (   self,
  width 
)

Layout.

Parameters
selfthis object
widthwidth
Returns
none

Definition at line 899 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 893 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 870 of file grid.py.

◆ set_top()

def grid.ScaleRenderer.set_top (   self)

Set Top.

Parameters
selfthis object
Returns
none

Definition at line 887 of file grid.py.

References grid.ScaleRenderer.__top.

Member Data Documentation

◆ __delta

grid.ScaleRenderer.__delta
private

delta

Definition at line 922 of file grid.py.

Referenced by grid.ScaleRenderer.draw().

◆ __height

grid.ScaleRenderer.__height
private

◆ __hi

grid.ScaleRenderer.__hi
private

◆ __lo

grid.ScaleRenderer.__lo
private

◆ __top

grid.ScaleRenderer.__top
private

◆ __width

grid.ScaleRenderer.__width
private

◆ max_text_height

grid.ScaleRenderer.max_text_height

maximum text height

Definition at line 927 of file grid.py.


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