A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
grid.GraphicRenderer Class Reference

GraphicRenderer class. More...

Public Member Functions

 __init__ (self, start, end)
 Initializer.
 
 draw (self, ctx)
 Draw.
 
 get_data_rectangle (self)
 Get Data Rectangle.
 
 get_height (self)
 Get Height.
 
 get_range (self)
 Get Range.
 
 get_selection_rectangle (self)
 Get Selection Rectangle.
 
 get_width (self)
 Get Width.
 
 layout (self, width, height)
 Set Layout.
 
 scale_data (self, x)
 Get Data Rectangle.
 
 scale_selection (self, x)
 Scale Selection.
 
 set_data (self, data)
 Set Date.
 
 set_range (self, start, end)
 Set Range.
 
 set_top_legend (self, top_legend)
 Set Top Legend.
 

Private Member Functions

 __x_pixel (self, x, width)
 X Pixel.
 

Private Attributes

 __bot_scale
 bottom scale
 
 __data
 data
 
 __end
 end
 
 __height
 height
 
 __mid_scale
 mid scale
 
 __r_end
 end
 
 __r_start
 start
 
 __start
 start
 
 __top_legend
 top legend
 
 __width
 width
 

Detailed Description

GraphicRenderer class.

Definition at line 1061 of file grid.py.

Constructor & Destructor Documentation

◆ __init__()

grid.GraphicRenderer.__init__ ( self,
start,
end )

Initializer.

Parameters
selfthis object
startstart
endend

Definition at line 1084 of file grid.py.

Member Function Documentation

◆ __x_pixel()

grid.GraphicRenderer.__x_pixel ( self,
x,
width )
private

X Pixel.

Parameters
selfthis object
xx
widthwidth
Returns
x pixel

Definition at line 1216 of file grid.py.

References grid.GraphicRenderer.__end, and grid.GraphicRenderer.__start.

◆ draw()

grid.GraphicRenderer.draw ( self,
ctx )

Draw.

Parameters
selfthis object
ctxctx
Returns
none

Definition at line 1226 of file grid.py.

References grid.GraphicRenderer.__bot_scale, grid.GraphicRenderer.__data, grid.GtkGraphicRenderer.__data, grid.GraphicRenderer.__height, grid.GtkGraphicRenderer.__height, grid.ScaleRenderer.__height, grid.TopLegendRenderer.__height, grid.GraphicRenderer.__mid_scale, grid.GraphicRenderer.__r_end, grid.GraphicRenderer.__r_start, grid.GraphicRenderer.__top_legend, grid.GraphicRenderer.__width, grid.GtkGraphicRenderer.__width, grid.ScaleRenderer.__width, grid.TopLegendRenderer.__width, grid.GraphicRenderer.draw(), and grid.GraphicRenderer.get_height().

Referenced by grid.GraphicRenderer.draw().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_data_rectangle()

grid.GraphicRenderer.get_data_rectangle ( self)

Get Data Rectangle.

Parameters
selfthis object
Returns
rectangle

Definition at line 1115 of file grid.py.

References grid.GraphicRenderer.__data, grid.GtkGraphicRenderer.__data, grid.GraphicRenderer.__top_legend, grid.GraphicRenderer.__width, grid.GtkGraphicRenderer.__width, grid.ScaleRenderer.__width, grid.TopLegendRenderer.__width, and grid.GraphicRenderer.get_height().

+ Here is the call graph for this function:

◆ get_height()

grid.GraphicRenderer.get_height ( self)

Get Height.

Parameters
selfthis object
Returns
height

Definition at line 1107 of file grid.py.

References grid.GraphicRenderer.__height, grid.GtkGraphicRenderer.__height, grid.ScaleRenderer.__height, and grid.TopLegendRenderer.__height.

Referenced by grid.GraphicRenderer.draw(), grid.GraphicRenderer.get_data_rectangle(), grid.GraphicRenderer.get_selection_rectangle(), and grid.GraphicRenderer.layout().

+ Here is the caller graph for this function:

◆ get_range()

grid.GraphicRenderer.get_range ( self)

Get Range.

Parameters
selfthis object
Returns
range

Definition at line 1177 of file grid.py.

References grid.GraphicRenderer.__r_end, and grid.GraphicRenderer.__r_start.

◆ get_selection_rectangle()

grid.GraphicRenderer.get_selection_rectangle ( self)

Get Selection Rectangle.

Parameters
selfthis object
Returns
rectangle

Definition at line 1135 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().

+ Here is the call graph for this function:

◆ get_width()

grid.GraphicRenderer.get_width ( self)

Get Width.

Parameters
selfthis object
Returns
width

Definition at line 1100 of file grid.py.

References grid.GraphicRenderer.__width, grid.GtkGraphicRenderer.__width, grid.ScaleRenderer.__width, and grid.TopLegendRenderer.__width.

◆ layout()

grid.GraphicRenderer.layout ( self,
width,
height )

Set Layout.

Parameters
selfthis object
widthwidth
heightheight
Returns
none

Definition at line 1200 of file grid.py.

References grid.GraphicRenderer.__bot_scale, grid.GraphicRenderer.__data, grid.GtkGraphicRenderer.__data, grid.GraphicRenderer.__height, grid.GtkGraphicRenderer.__height, grid.ScaleRenderer.__height, grid.TopLegendRenderer.__height, grid.GraphicRenderer.__mid_scale, grid.GraphicRenderer.__top_legend, grid.GraphicRenderer.__width, grid.GtkGraphicRenderer.__width, grid.ScaleRenderer.__width, grid.TopLegendRenderer.__width, grid.GraphicRenderer.get_height(), and grid.GraphicRenderer.layout().

Referenced by grid.GraphicRenderer.layout().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ scale_data()

grid.GraphicRenderer.scale_data ( self,
x )

◆ scale_selection()

grid.GraphicRenderer.scale_selection ( self,
x )

Scale Selection.

Parameters
selfthis object
xthe X
Returns
scaled X

Definition at line 1151 of file grid.py.

References grid.GraphicRenderer.__end, grid.GraphicRenderer.__start, grid.GraphicRenderer.__width, grid.GtkGraphicRenderer.__width, grid.ScaleRenderer.__width, and grid.TopLegendRenderer.__width.

◆ set_data()

grid.GraphicRenderer.set_data ( self,
data )

Set Date.

Parameters
selfthis object
datadata
Returns
none

Definition at line 1184 of file grid.py.

◆ set_range()

grid.GraphicRenderer.set_range ( self,
start,
end )

Set Range.

Parameters
selfthis object
startstart
endend
Returns
none

Definition at line 1160 of file grid.py.

References grid.GraphicRenderer.__end, and grid.GraphicRenderer.__start.

◆ set_top_legend()

grid.GraphicRenderer.set_top_legend ( self,
top_legend )

Set Top Legend.

Parameters
selfthis object
top_legendThe legend
Returns
none

Definition at line 1192 of file grid.py.

Member Data Documentation

◆ __bot_scale

grid.GraphicRenderer.__bot_scale
private

◆ __data

◆ __end

grid.GraphicRenderer.__end
private

◆ __height

◆ __mid_scale

grid.GraphicRenderer.__mid_scale
private

◆ __r_end

◆ __r_start

grid.GraphicRenderer.__r_start
private

◆ __start

grid.GraphicRenderer.__start
private

◆ __top_legend

grid.GraphicRenderer.__top_legend
private

◆ __width


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