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

TimelinesRenderer class. More...

Public Member Functions

def __init__ (self)
 Initializer. More...
 
def draw (self, ctx)
 Draw. More...
 
def draw_events (self, ctx, events, x, y, width, height)
 Draw Event. More...
 
def draw_line (self, ctx, x, y, width, height)
 Draw Line. More...
 
def draw_ranges (self, ctx, ranges, x, y, width, height)
 Draw Ranges. More...
 
def get_data_x_start (self)
 Get Data X Start. More...
 
def get_height (self)
 Get Height. More...
 
def layout (self, width)
 Get Data X Start. More...
 
def set_render_range (self, start, end)
 Set Render Range. More...
 
def set_timelines (self, timelines, colors)
 Set Timelines. More...
 

Public Attributes

 colors
 colors More...
 
 end
 end More...
 
 grey_background
 grey background More...
 
 height
 height More...
 
 left_width
 left width More...
 
 max_text_height
 maximum text height More...
 
 padding
 padding More...
 
 right_width
 right width More...
 
 start
 start More...
 
 timelines
 timelines More...
 
 width
 width More...
 

Detailed Description

TimelinesRenderer class.

Definition at line 651 of file grid.py.

Constructor & Destructor Documentation

◆ __init__()

def grid.TimelinesRenderer.__init__ (   self)

Initializer.

Parameters
selfthis object

Definition at line 674 of file grid.py.

Member Function Documentation

◆ draw()

def grid.TimelinesRenderer.draw (   self,
  ctx 
)

◆ draw_events()

◆ draw_line()

def grid.TimelinesRenderer.draw_line (   self,
  ctx,
  x,
  y,
  width,
  height 
)

Draw Line.

Parameters
selfthis object
ctxctx
xx
yy
widthwidth
heightheight
Returns
none

Definition at line 767 of file grid.py.

Referenced by grid.TimelinesRenderer.draw().

+ Here is the caller graph for this function:

◆ draw_ranges()

◆ get_data_x_start()

def grid.TimelinesRenderer.get_data_x_start (   self)

Get Data X Start.

Parameters
selfthis object
Returns
X start

Definition at line 708 of file grid.py.

References grid.TimelinesRenderer.left_width, grid.TimelinesRenderer.padding, and grid.TimelinesRenderer.right_width.

◆ get_height()

def grid.TimelinesRenderer.get_height (   self)

Get Height.

Parameters
selfthis object
Returns
height

Definition at line 681 of file grid.py.

References ns3::AnimationInterface::NodeSize.height, visualizer.svgitem.SvgItem.height, and grid.TimelinesRenderer.height.

◆ layout()

def grid.TimelinesRenderer.layout (   self,
  width 
)

Get Data X Start.

Parameters
selfthis object
widthwidth
Returns
none

Definition at line 717 of file grid.py.

References max, grid.TimelinesRenderer.padding, grid.Timelines.timelines, and grid.TimelinesRenderer.timelines.

◆ set_render_range()

def grid.TimelinesRenderer.set_render_range (   self,
  start,
  end 
)

Set Render Range.

Parameters
selfthis object
startstart
endend
Returns
none

Definition at line 698 of file grid.py.

◆ set_timelines()

def grid.TimelinesRenderer.set_timelines (   self,
  timelines,
  colors 
)

Set Timelines.

Parameters
selfthis object
timelinestimelines
colorscolors
Returns
none

Definition at line 688 of file grid.py.

Member Data Documentation

◆ colors

grid.TimelinesRenderer.colors

colors

Definition at line 696 of file grid.py.

Referenced by grid.TimelinesRenderer.draw_ranges().

◆ end

grid.TimelinesRenderer.end

end

Definition at line 706 of file grid.py.

Referenced by grid.TimelinesRenderer.draw_events(), and grid.TimelinesRenderer.draw_ranges().

◆ grey_background

grid.TimelinesRenderer.grey_background

grey background

Definition at line 864 of file grid.py.

Referenced by grid.TimelinesRenderer.draw_events(), and grid.TimelinesRenderer.draw_ranges().

◆ height

◆ left_width

grid.TimelinesRenderer.left_width

left width

Definition at line 761 of file grid.py.

Referenced by grid.TimelinesRenderer.draw(), and grid.TimelinesRenderer.get_data_x_start().

◆ max_text_height

grid.TimelinesRenderer.max_text_height

maximum text height

Definition at line 763 of file grid.py.

Referenced by grid.TimelinesRenderer.draw_events().

◆ padding

◆ right_width

grid.TimelinesRenderer.right_width

right width

Definition at line 762 of file grid.py.

Referenced by grid.TimelinesRenderer.draw(), and grid.TimelinesRenderer.get_data_x_start().

◆ start

grid.TimelinesRenderer.start

start

Definition at line 705 of file grid.py.

Referenced by grid.TimelinesRenderer.draw_events(), and grid.TimelinesRenderer.draw_ranges().

◆ timelines

◆ width


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