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... | |
TimelinesRenderer class.
def grid.TimelinesRenderer.__init__ | ( | self | ) |
def grid.TimelinesRenderer.draw | ( | self, | |
ctx | |||
) |
Draw.
self | this object |
ctx | ctx |
Definition at line 791 of file grid.py.
References grid.TimelinesRenderer.draw_line(), grid.TimelinesRenderer.left_width, grid.TimelinesRenderer.padding, grid.TimelinesRenderer.right_width, and grid.TimelinesRenderer.width.
def grid.TimelinesRenderer.draw_events | ( | self, | |
ctx, | |||
events, | |||
x, | |||
y, | |||
width, | |||
height | |||
) |
Draw Event.
self | this object |
ctx | ctx |
events | events |
x | x |
y | y |
width | width |
height | height |
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.
def grid.TimelinesRenderer.draw_line | ( | self, | |
ctx, | |||
x, | |||
y, | |||
width, | |||
height | |||
) |
Draw Line.
self | this object |
ctx | ctx |
x | x |
y | y |
width | width |
height | height |
Definition at line 711 of file grid.py.
Referenced by grid.TimelinesRenderer.draw().
def grid.TimelinesRenderer.draw_ranges | ( | self, | |
ctx, | |||
ranges, | |||
x, | |||
y, | |||
width, | |||
height | |||
) |
Draw Ranges.
self | this object |
ctx | ctx |
ranges | ranges |
x | x |
y | y |
width | width |
height | height |
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.
def grid.TimelinesRenderer.get_data_x_start | ( | self | ) |
Get Data X Start.
self | this object |
Definition at line 658 of file grid.py.
References grid.TimelinesRenderer.left_width, grid.TimelinesRenderer.padding, and grid.TimelinesRenderer.right_width.
def grid.TimelinesRenderer.get_height | ( | self | ) |
Get Height.
self | this object |
Definition at line 634 of file grid.py.
References grid.TimelinesRenderer.height.
def grid.TimelinesRenderer.layout | ( | self, | |
width | |||
) |
Get Data X Start.
self | this object |
width | width |
Definition at line 664 of file grid.py.
References max, grid.TimelinesRenderer.padding, grid.Timelines.timelines, and grid.TimelinesRenderer.timelines.
def grid.TimelinesRenderer.set_render_range | ( | self, | |
start, | |||
end | |||
) |
def grid.TimelinesRenderer.set_timelines | ( | self, | |
timelines, | |||
colors | |||
) |
grid.TimelinesRenderer.colors |
grid.TimelinesRenderer.end |
end
Definition at line 657 of file grid.py.
Referenced by grid.TimelinesRenderer.draw_events(), and grid.TimelinesRenderer.draw_ranges().
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().
grid.TimelinesRenderer.height |
height
Definition at line 710 of file grid.py.
Referenced by visualizer.svgitem.SvgItem._size_changed(), visualizer.svgitem.SvgItem.do_get_property(), visualizer.svgitem.SvgItem.do_simple_is_item_at(), and grid.TimelinesRenderer.get_height().
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().
grid.TimelinesRenderer.max_text_height |
maximum text height
Definition at line 708 of file grid.py.
Referenced by grid.TimelinesRenderer.draw_events().
grid.TimelinesRenderer.padding |
padding
Definition at line 632 of file grid.py.
Referenced by grid.TimelinesRenderer.draw(), grid.TimelinesRenderer.draw_events(), grid.TimelinesRenderer.draw_ranges(), grid.TimelinesRenderer.get_data_x_start(), and grid.TimelinesRenderer.layout().
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().
grid.TimelinesRenderer.start |
start
Definition at line 656 of file grid.py.
Referenced by grid.TimelinesRenderer.draw_events(), and grid.TimelinesRenderer.draw_ranges().
grid.TimelinesRenderer.timelines |
grid.TimelinesRenderer.width |
width
Definition at line 709 of file grid.py.
Referenced by visualizer.svgitem.SvgItem._size_changed(), visualizer.svgitem.SvgItem.do_get_property(), visualizer.svgitem.SvgItem.do_simple_is_item_at(), and grid.TimelinesRenderer.draw().