GraphicRenderer class. More...
Public Member Functions | |
def | __init__ (self, start, end) |
Initializer. More... | |
def | draw (self, ctx) |
Draw. More... | |
def | get_data_rectangle (self) |
Get Data Rectangle. More... | |
def | get_height (self) |
Get Height. More... | |
def | get_range (self) |
Get Range. More... | |
def | get_selection_rectangle (self) |
Get Selection Rectangle. More... | |
def | get_width (self) |
Get Width. More... | |
def | layout (self, width, height) |
Set Layout. More... | |
def | scale_data (self, x) |
Get Data Rectangle. More... | |
def | scale_selection (self, x) |
Scale Selection. More... | |
def | set_data (self, data) |
Set Date. More... | |
def | set_range (self, start, end) |
Set Range. More... | |
def | set_top_legend (self, top_legend) |
Set Top Legend. More... | |
Private Member Functions | |
def | __x_pixel (self, x, width) |
X Pixel. More... | |
Private Attributes | |
__bot_scale | |
bottom scale More... | |
__data | |
data More... | |
__end | |
end More... | |
__height | |
height More... | |
__mid_scale | |
mid scale More... | |
__r_end | |
end More... | |
__r_start | |
start More... | |
__start | |
start More... | |
__top_legend | |
top legend More... | |
__width | |
width More... | |
GraphicRenderer class.
def grid.GraphicRenderer.__init__ | ( | self, | |
start, | |||
end | |||
) |
|
private |
X Pixel.
self | this object |
x | x |
width | width |
Definition at line 1121 of file grid.py.
References grid.GraphicRenderer.__end, and grid.GraphicRenderer.__start.
def grid.GraphicRenderer.draw | ( | self, | |
ctx | |||
) |
Draw.
self | this object |
ctx | ctx |
Definition at line 1131 of file grid.py.
References grid.GraphicRenderer.__bot_scale, grid.GraphicRenderer.__data, grid.TopLegendRenderer.__height, grid.ScaleRenderer.__height, grid.GraphicRenderer.__height, grid.GraphicRenderer.__mid_scale, grid.GraphicRenderer.__r_end, grid.GraphicRenderer.__r_start, grid.GraphicRenderer.__top_legend, grid.TopLegendRenderer.__width, grid.ScaleRenderer.__width, grid.GraphicRenderer.__width, grid.GraphicRenderer.get_height(), max, and min.
def grid.GraphicRenderer.get_data_rectangle | ( | self | ) |
Get Data Rectangle.
self | this object |
Definition at line 1034 of file grid.py.
References grid.GraphicRenderer.__data, grid.GraphicRenderer.__top_legend, grid.TopLegendRenderer.__width, grid.ScaleRenderer.__width, grid.GraphicRenderer.__width, grid.GraphicRenderer.get_height(), and return.
def grid.GraphicRenderer.get_height | ( | self | ) |
Get Height.
self | this object |
Definition at line 1027 of file grid.py.
References grid.TopLegendRenderer.__height, grid.ScaleRenderer.__height, and grid.GraphicRenderer.__height.
Referenced by grid.GraphicRenderer.draw(), grid.GraphicRenderer.get_data_rectangle(), grid.GraphicRenderer.get_selection_rectangle(), and grid.GraphicRenderer.layout().
def grid.GraphicRenderer.get_range | ( | self | ) |
Get Range.
self | this object |
Definition at line 1086 of file grid.py.
References grid.GraphicRenderer.__r_end, grid.GraphicRenderer.__r_start, and return.
def grid.GraphicRenderer.get_selection_rectangle | ( | self | ) |
Get Selection Rectangle.
self | this object |
Definition at line 1052 of file grid.py.
References grid.GraphicRenderer.__bot_scale, grid.GraphicRenderer.__data, grid.GraphicRenderer.__mid_scale, grid.GraphicRenderer.__r_end, grid.GraphicRenderer.__r_start, grid.GraphicRenderer.__top_legend, grid.GraphicRenderer.get_height(), and return.
def grid.GraphicRenderer.get_width | ( | self | ) |
Get Width.
self | this object |
Definition at line 1021 of file grid.py.
References grid.TopLegendRenderer.__width, grid.ScaleRenderer.__width, and grid.GraphicRenderer.__width.
def grid.GraphicRenderer.layout | ( | self, | |
width, | |||
height | |||
) |
Set Layout.
self | this object |
width | width |
height | height |
Definition at line 1106 of file grid.py.
References grid.GraphicRenderer.__bot_scale, grid.GraphicRenderer.__data, grid.TopLegendRenderer.__height, grid.ScaleRenderer.__height, grid.GraphicRenderer.__height, grid.GraphicRenderer.__mid_scale, grid.GraphicRenderer.__top_legend, grid.TopLegendRenderer.__width, grid.ScaleRenderer.__width, grid.GraphicRenderer.__width, and grid.GraphicRenderer.get_height().
def grid.GraphicRenderer.scale_data | ( | self, | |
x | |||
) |
Get Data Rectangle.
self | this object |
x | x |
Definition at line 1042 of file grid.py.
References grid.GraphicRenderer.__data, grid.GraphicRenderer.__r_end, grid.GraphicRenderer.__r_start, grid.TopLegendRenderer.__width, grid.ScaleRenderer.__width, and grid.GraphicRenderer.__width.
def grid.GraphicRenderer.scale_selection | ( | self, | |
x | |||
) |
Scale Selection.
self | this object |
x | the X |
Definition at line 1062 of file grid.py.
References grid.GraphicRenderer.__end, grid.GraphicRenderer.__start, grid.TopLegendRenderer.__width, grid.ScaleRenderer.__width, and grid.GraphicRenderer.__width.
def grid.GraphicRenderer.set_data | ( | self, | |
data | |||
) |
def grid.GraphicRenderer.set_range | ( | self, | |
start, | |||
end | |||
) |
Set Range.
self | this object |
start | start |
end | end |
Definition at line 1070 of file grid.py.
References grid.GraphicRenderer.__end, grid.GraphicRenderer.__start, max, and min.
def grid.GraphicRenderer.set_top_legend | ( | self, | |
top_legend | |||
) |
|
private |
bottom scale
Definition at line 1016 of file grid.py.
Referenced by grid.GraphicRenderer.draw(), grid.GraphicRenderer.get_selection_rectangle(), and grid.GraphicRenderer.layout().
|
private |
data
Definition at line 1098 of file grid.py.
Referenced by grid.GtkGraphicRenderer.button_press(), grid.GtkGraphicRenderer.button_release(), grid.GraphicRenderer.draw(), grid.GraphicRenderer.get_data_rectangle(), grid.GraphicRenderer.get_selection_rectangle(), grid.GraphicRenderer.layout(), grid.GtkGraphicRenderer.motion_notify(), grid.GtkGraphicRenderer.output_png(), grid.GraphicRenderer.scale_data(), grid.GtkGraphicRenderer.set_bigger_zoom(), and grid.GtkGraphicRenderer.set_smaller_zoom().
|
private |
end
Definition at line 1013 of file grid.py.
Referenced by grid.GraphicRenderer.__x_pixel(), grid.GraphicRenderer.scale_selection(), and grid.GraphicRenderer.set_range().
|
private |
height
Definition at line 1020 of file grid.py.
Referenced by grid.GraphicRenderer.draw(), grid.GraphicRenderer.get_height(), and grid.GraphicRenderer.layout().
|
private |
mid scale
Definition at line 1014 of file grid.py.
Referenced by grid.GraphicRenderer.draw(), grid.GraphicRenderer.get_selection_rectangle(), and grid.GraphicRenderer.layout().
|
private |
end
Definition at line 1082 of file grid.py.
Referenced by grid.GraphicRenderer.draw(), grid.GraphicRenderer.get_range(), grid.GraphicRenderer.get_selection_rectangle(), and grid.GraphicRenderer.scale_data().
|
private |
start
Definition at line 1081 of file grid.py.
Referenced by grid.GraphicRenderer.draw(), grid.GraphicRenderer.get_range(), grid.GraphicRenderer.get_selection_rectangle(), and grid.GraphicRenderer.scale_data().
|
private |
start
Definition at line 1012 of file grid.py.
Referenced by grid.GraphicRenderer.__x_pixel(), grid.GraphicRenderer.scale_selection(), and grid.GraphicRenderer.set_range().
|
private |
top legend
Definition at line 1105 of file grid.py.
Referenced by grid.GraphicRenderer.draw(), grid.GraphicRenderer.get_data_rectangle(), grid.GraphicRenderer.get_selection_rectangle(), and grid.GraphicRenderer.layout().
|
private |
width
Definition at line 1019 of file grid.py.
Referenced by grid.GraphicRenderer.draw(), grid.GraphicRenderer.get_data_rectangle(), grid.GraphicRenderer.get_width(), grid.GraphicRenderer.layout(), grid.GraphicRenderer.scale_data(), and grid.GraphicRenderer.scale_selection().