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 1108 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 1118 of file grid.py.
References grid.GraphicRenderer.__bot_scale, grid.GraphicRenderer.__data, grid.GtkGraphicRenderer.__data, grid.TopLegendRenderer.__height, grid.ScaleRenderer.__height, grid.GraphicRenderer.__height, grid.GtkGraphicRenderer.__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.GtkGraphicRenderer.__width, grid.GraphicRenderer.get_height(), max, and min.
def grid.GraphicRenderer.get_data_rectangle | ( | self | ) |
Get Data Rectangle.
self | this object |
Definition at line 1021 of file grid.py.
References grid.GraphicRenderer.__data, grid.GtkGraphicRenderer.__data, grid.GraphicRenderer.__top_legend, grid.TopLegendRenderer.__width, grid.ScaleRenderer.__width, grid.GraphicRenderer.__width, grid.GtkGraphicRenderer.__width, and grid.GraphicRenderer.get_height().
def grid.GraphicRenderer.get_height | ( | self | ) |
Get Height.
self | this object |
Definition at line 1014 of file grid.py.
References grid.TopLegendRenderer.__height, grid.ScaleRenderer.__height, grid.GraphicRenderer.__height, and grid.GtkGraphicRenderer.__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 1073 of file grid.py.
References grid.GraphicRenderer.__r_end, and grid.GraphicRenderer.__r_start.
def grid.GraphicRenderer.get_selection_rectangle | ( | self | ) |
Get Selection Rectangle.
self | this object |
Definition at line 1039 of file grid.py.
References grid.GraphicRenderer.__bot_scale, grid.GraphicRenderer.__data, grid.GtkGraphicRenderer.__data, grid.GraphicRenderer.__mid_scale, grid.GraphicRenderer.__r_end, grid.GraphicRenderer.__r_start, grid.GraphicRenderer.__top_legend, and grid.GraphicRenderer.get_height().
def grid.GraphicRenderer.get_width | ( | self | ) |
Get Width.
self | this object |
Definition at line 1008 of file grid.py.
References grid.TopLegendRenderer.__width, grid.ScaleRenderer.__width, grid.GraphicRenderer.__width, and grid.GtkGraphicRenderer.__width.
def grid.GraphicRenderer.layout | ( | self, | |
width, | |||
height | |||
) |
Set Layout.
self | this object |
width | width |
height | height |
Definition at line 1093 of file grid.py.
References grid.GraphicRenderer.__bot_scale, grid.GraphicRenderer.__data, grid.GtkGraphicRenderer.__data, grid.TopLegendRenderer.__height, grid.ScaleRenderer.__height, grid.GraphicRenderer.__height, grid.GtkGraphicRenderer.__height, grid.GraphicRenderer.__mid_scale, grid.GraphicRenderer.__top_legend, grid.TopLegendRenderer.__width, grid.ScaleRenderer.__width, grid.GraphicRenderer.__width, grid.GtkGraphicRenderer.__width, and grid.GraphicRenderer.get_height().
def grid.GraphicRenderer.scale_data | ( | self, | |
x | |||
) |
Get Data Rectangle.
self | this object |
x | x |
Definition at line 1029 of file grid.py.
References grid.GraphicRenderer.__data, grid.GtkGraphicRenderer.__data, grid.GraphicRenderer.__r_end, grid.GraphicRenderer.__r_start, grid.TopLegendRenderer.__width, grid.ScaleRenderer.__width, grid.GraphicRenderer.__width, and grid.GtkGraphicRenderer.__width.
def grid.GraphicRenderer.scale_selection | ( | self, | |
x | |||
) |
Scale Selection.
self | this object |
x | the X |
Definition at line 1049 of file grid.py.
References grid.GraphicRenderer.__end, grid.GraphicRenderer.__start, grid.TopLegendRenderer.__width, grid.ScaleRenderer.__width, grid.GraphicRenderer.__width, and grid.GtkGraphicRenderer.__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 1057 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 1003 of file grid.py.
Referenced by grid.GraphicRenderer.draw(), grid.GraphicRenderer.get_selection_rectangle(), and grid.GraphicRenderer.layout().
|
private |
data
Definition at line 1085 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 1000 of file grid.py.
Referenced by grid.GraphicRenderer.__x_pixel(), grid.GraphicRenderer.scale_selection(), and grid.GraphicRenderer.set_range().
|
private |
height
Definition at line 1007 of file grid.py.
Referenced by grid.GraphicRenderer.draw(), grid.TopLegendRenderer.get_height(), grid.ScaleRenderer.get_height(), grid.GraphicRenderer.get_height(), and grid.GraphicRenderer.layout().
|
private |
mid scale
Definition at line 1001 of file grid.py.
Referenced by grid.GraphicRenderer.draw(), grid.GraphicRenderer.get_selection_rectangle(), and grid.GraphicRenderer.layout().
|
private |
end
Definition at line 1069 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 1068 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 999 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 1092 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 1006 of file grid.py.
Referenced by grid.TopLegendRenderer.draw(), grid.ScaleRenderer.draw(), grid.GraphicRenderer.draw(), grid.GraphicRenderer.get_data_rectangle(), grid.ScaleRenderer.get_position(), grid.GraphicRenderer.get_width(), grid.GraphicRenderer.layout(), grid.GraphicRenderer.scale_data(), and grid.GraphicRenderer.scale_selection().