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

Constructor & Destructor Documentation

◆ __init__()

def grid.TimelinesRenderer.__init__ (   self)

Initializer.

Parameters
selfthis object
Returns
none

Definition at line 627 of file grid.py.

Member Function Documentation

◆ draw()

def grid.TimelinesRenderer.draw (   self,
  ctx 
)

◆ draw_events()

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

Draw Event.

Parameters
selfthis object
ctxctx
eventsevents
xx
yy
widthwidth
heightheight
Returns
none

Definition at line 728 of file grid.py.

References grid.DataRange.end, grid.TimelinesRenderer.end, grid.TimelinesRenderer.grey_background, grid.TimelinesRenderer.max_text_height, grid.TimelinesRenderer.padding, grid.DataRange.start, and grid.TimelinesRenderer.start.

◆ 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 711 of file grid.py.

Referenced by grid.TimelinesRenderer.draw().

◆ draw_ranges()

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

Draw Ranges.

Parameters
selfthis object
ctxctx
rangesranges
xx
yy
widthwidth
heightheight
Returns
none

Definition at line 757 of file grid.py.

References grid.TimelinesRenderer.colors, grid.DataRange.end, grid.TimelinesRenderer.end, grid.TimelinesRenderer.grey_background, max, min, grid.TimelinesRenderer.padding, grid.DataRange.start, and grid.TimelinesRenderer.start.

◆ 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 658 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 634 of file grid.py.

References grid.TimelinesRenderer.height.

◆ layout()

def grid.TimelinesRenderer.layout (   self,
  width 
)

Get Data X Start.

Parameters
selfthis object
widthwidth
Returns
none

Definition at line 664 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 649 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 640 of file grid.py.

Member Data Documentation

◆ colors

grid.TimelinesRenderer.colors

colors

Definition at line 648 of file grid.py.

Referenced by grid.TimelinesRenderer.draw_ranges().

◆ end

grid.TimelinesRenderer.end

end

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

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

◆ height

grid.TimelinesRenderer.height

◆ left_width

grid.TimelinesRenderer.left_width

left width

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

Referenced by grid.TimelinesRenderer.draw_events().

◆ padding

grid.TimelinesRenderer.padding

◆ right_width

grid.TimelinesRenderer.right_width

right width

Definition at line 707 of file grid.py.

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

◆ start

grid.TimelinesRenderer.start

start

Definition at line 656 of file grid.py.

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

◆ timelines

grid.TimelinesRenderer.timelines

timelines

Definition at line 647 of file grid.py.

Referenced by grid.TimelinesRenderer.layout().

◆ width

grid.TimelinesRenderer.width

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