ScaleRenderer class. More...
Public Member Functions | |
def | __init__ (self) |
Initializer. More... | |
def | draw (self, ctx) |
Draw. More... | |
def | get_height (self) |
Get Height. More... | |
def | get_position (self, x) |
Get Position. More... | |
def | layout (self, width) |
Layout. More... | |
def | set_bot (self) |
Set Bottom. More... | |
def | set_bounds (self, lo, hi) |
Set Bounds. More... | |
def | set_top (self) |
Set Top. More... | |
Public Attributes | |
max_text_height | |
maximum text height More... | |
Private Attributes | |
__delta | |
delta More... | |
__height | |
height More... | |
__hi | |
hi More... | |
__lo | |
lo More... | |
__top | |
top More... | |
__width | |
width More... | |
ScaleRenderer class.
def grid.ScaleRenderer.__init__ | ( | self | ) |
def grid.ScaleRenderer.draw | ( | self, | |
ctx | |||
) |
Draw.
self | this object |
ctx | ctx |
Definition at line 937 of file grid.py.
References grid.ScaleRenderer.__delta, grid.ScaleRenderer.__hi, grid.ScaleRenderer.__lo, grid.ScaleRenderer.__top, grid.TopLegendRenderer.__width, and grid.ScaleRenderer.__width.
def grid.ScaleRenderer.get_height | ( | self | ) |
Get Height.
self | this object |
Definition at line 931 of file grid.py.
References grid.TopLegendRenderer.__height, and grid.ScaleRenderer.__height.
def grid.ScaleRenderer.get_position | ( | self, | |
x | |||
) |
Get Position.
self | this object |
x | x |
Definition at line 879 of file grid.py.
References grid.ScaleRenderer.__hi, grid.ScaleRenderer.__lo, grid.TopLegendRenderer.__width, and grid.ScaleRenderer.__width.
Referenced by visualizer.core.Node._update_position().
def grid.ScaleRenderer.layout | ( | self, | |
width | |||
) |
Layout.
self | this object |
width | width |
Definition at line 899 of file grid.py.
References grid.ScaleRenderer.__hi, and grid.ScaleRenderer.__lo.
def grid.ScaleRenderer.set_bot | ( | self | ) |
Set Bottom.
self | this object |
Definition at line 893 of file grid.py.
References grid.ScaleRenderer.__top.
def grid.ScaleRenderer.set_bounds | ( | self, | |
lo, | |||
hi | |||
) |
def grid.ScaleRenderer.set_top | ( | self | ) |
Set Top.
self | this object |
Definition at line 887 of file grid.py.
References grid.ScaleRenderer.__top.
|
private |
|
private |
height
Definition at line 929 of file grid.py.
Referenced by grid.GraphicRenderer.draw(), grid.ScaleRenderer.get_height(), grid.GraphicRenderer.get_height(), and grid.GraphicRenderer.layout().
|
private |
hi
Definition at line 878 of file grid.py.
Referenced by grid.ScaleRenderer.draw(), grid.ScaleRenderer.get_position(), and grid.ScaleRenderer.layout().
|
private |
lo
Definition at line 877 of file grid.py.
Referenced by grid.ScaleRenderer.draw(), grid.ScaleRenderer.get_position(), and grid.ScaleRenderer.layout().
|
private |
top
Definition at line 868 of file grid.py.
Referenced by grid.ScaleRenderer.draw(), grid.ScaleRenderer.set_bot(), and grid.ScaleRenderer.set_top().
|
private |
width
Definition at line 923 of file grid.py.
Referenced by 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().