Package topo :: Package tkgui :: Module editor :: Class EditorSheet
[hide private]
[frames] | no frames]

Class EditorSheet

source code


Represents any topo sheet. It is a subclass of EditorEP and fills in the methods that are not defined. It is represented by a Parallelogram in its Canvas. The colours used for drawing can be set. Uses bounding box to determine if x, y coord is within its boundary.
Instance Methods [hide private]
 
__init__(self, canvas, simobj, pos, name)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
set_focus(self, focus) source code
 
init_draw(self, colour, focus) source code
 
normalize_plot(self, a)
Normalize an array s.
source code
 
in_bounds(self, pos_x, pos_y)
Return true if x,y lies within this gui object's boundary.
source code
 
matrix_element_count(self) source code
 
set_bounds(self) source code

Inherited from EditorEP: dec_to_hex_str, draw, get_connection_count, move, remove, remove_connection, select_view, set_colours, set_mode

Inherited from EditorNode: attach_connection, get_pos, show_properties, view_connection_parameters

Inherited from EditorObject: objdoc, okay_parameters, update_parameters

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  normalize = param.Boolean(default= False)
  show_density = param.Boolean(default= False)
  view = param.ObjectSelector(default= 'activity', objects= ['no...

Inherited from EditorObject: FROM, TO

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, canvas, simobj, pos, name)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

set_focus(self, focus)

source code 
Overrides: EditorObject.set_focus

init_draw(self, colour, focus)

source code 
Overrides: EditorEP.init_draw

normalize_plot(self, a)

source code 
Normalize an array s. In case of a constant array, ones is returned for value greater than zero, and zeros in case of value inferior or equal to zero.

in_bounds(self, pos_x, pos_y)

source code 
Return true if x,y lies within this gui object's boundary.
Overrides: EditorObject.in_bounds
(inherited documentation)

set_bounds(self)

source code 
Overrides: EditorEP.set_bounds

Class Variable Details [hide private]

view

Value:
param.ObjectSelector(default= 'activity', objects= ['normal', 'activity'])