Package elisa :: Package plugins :: Package pigment :: Package graph :: Module group :: Class Group

Class Group

source code


DOCME

Emits signals:

DOCME more signals.

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
is_mapped(self)
True when the group is visible, that is when it is in a canvas and absolute_visible is True
source code
 
canvas__set(self, canvas) source code
 
canvas__get(self) source code
 
layer__set(self, layer) source code
 
layer__get(self) source code
 
add(self, child, forward_signals=True, layer=None) source code
 
remove(self, child) source code
 
get_factors_relative(self, unit)
Compute the size in relative coordinates, that is in the group's coordinates system, of one 'unit' for the x-axis and for the y-axis.
source code
 
get_factors_absolute(self, unit)
Compute the size in absolute coordinates, that is the canvas coordinates system, of one 'unit' for the x-axis and for the y-axis.
source code
 
empty(self) source code
 
__len__(self) source code
 
__iter__(self) source code
 
set_absolute_x(self, value) source code
 
update_absolute_x(self, parent) source code
 
set_absolute_y(self, value) source code
 
update_absolute_y(self, parent) source code
 
set_absolute_z(self, value) source code
 
update_absolute_z(self, parent) source code
 
set_absolute_position(self, value) source code
 
update_absolute_position(self, parent) source code
 
set_absolute_width(self, value) source code
 
update_absolute_width(self, parent) source code
 
set_absolute_height(self, value) source code
 
update_absolute_height(self, parent) source code
 
set_absolute_size(self, value) source code
 
update_absolute_size(self, parent) source code
 
set_absolute_visible(self, value) source code
 
update_absolute_visible(self, parent) source code
 
set_absolute_opacity(self, value) source code
 
update_absolute_opacity(self, parent) source code
 
regenerate(self) source code
 
clean(self) source code

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

    Inherited from node.Node
 
absolute_height__get(self) source code
 
absolute_height__set(self, value) source code
 
absolute_width__get(self) source code
 
absolute_width__set(self, value) source code
 
absolute_x__get(self) source code
 
absolute_x__set(self, value) source code
 
absolute_y__get(self) source code
 
absolute_y__set(self, value) source code
 
absolute_z__get(self) source code
 
absolute_z__set(self, value) source code
 
animated(self) source code
 
animated__get(self) source code
 
height__get(self) source code
 
height__set(self, value) source code
 
opacity__get(self) source code
 
opacity__set(self, value) source code
 
parent__get(self) source code
 
parent__set(self, parent) source code
 
position__get(self) source code
 
position__set(self, position) source code
 
size__get(self) source code
 
size__set(self, size) source code
 
visible__get(self) source code
 
visible__set(self, value) source code
 
width__get(self) source code
 
width__set(self, value) source code
 
x__get(self) source code
 
x__set(self, value) source code
 
y__get(self) source code
 
y__set(self, value) source code
 
z__get(self) source code
 
z__set(self, value) source code
Class Variables
  __gsignals__ = {'drag-begin':(gobject.SIGNAL_RUN_LAST, gobject...
  canvas = property(canvas__get, canvas__set)
  layer = property(layer__get, layer__set)
    Inherited from node.Node
  absolute_height = property(absolute_height__get, absolute_heig...
  absolute_width = property(absolute_width__get, absolute_width_...
  absolute_x = property(absolute_x__get, absolute_x__set)
  absolute_y = property(absolute_y__get, absolute_y__set)
  absolute_z = property(absolute_z__get, absolute_z__set)
  height = property(height__get, height__set)
  opacity = property(opacity__get, opacity__set)
  parent = property(parent__get, parent__set)
  position = property(position__get, position__set)
  size = property(size__get, size__set)
  visible = property(visible__get, visible__set)
  width = property(width__get, width__set)
  x = property(x__get, x__set)
  y = property(y__get, y__set)
  z = property(z__get, z__set)
Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

is_mapped(self)

source code 

True when the group is visible, that is when it is in a canvas and absolute_visible is True

Decorators:
  • @property

get_factors_relative(self, unit)

source code 

Compute the size in relative coordinates, that is in the group's
coordinates system, of one 'unit' for the x-axis and for the y-axis.

Example: to know how much one pixel is on the x-axis:
         pixel_in_x, pixel_in_y = get_factors_relative("px")

@param unit: unit for which to compute the factors
@param unit: str

@rtype: 2-tuple of float

get_factors_absolute(self, unit)

source code 

Compute the size in absolute coordinates, that is the canvas
coordinates system, of one 'unit' for the x-axis and for the y-axis.

Example: to know how much one pixel is on the x-axis:
         pixel_in_x, pixel_in_y = get_factors_absolute("px")

@param unit: unit for which to compute the factors
@param unit: str

@rtype: 2-tuple of float

set_absolute_x(self, value)

source code 
Overrides: node.Node.set_absolute_x

update_absolute_x(self, parent)

source code 
Overrides: node.Node.update_absolute_x

set_absolute_y(self, value)

source code 
Overrides: node.Node.set_absolute_y

update_absolute_y(self, parent)

source code 
Overrides: node.Node.update_absolute_y

set_absolute_z(self, value)

source code 
Overrides: node.Node.set_absolute_z

update_absolute_z(self, parent)

source code 
Overrides: node.Node.update_absolute_z

set_absolute_position(self, value)

source code 
Overrides: node.Node.set_absolute_position

update_absolute_position(self, parent)

source code 
Overrides: node.Node.update_absolute_position

set_absolute_width(self, value)

source code 
Overrides: node.Node.set_absolute_width

update_absolute_width(self, parent)

source code 
Overrides: node.Node.update_absolute_width

set_absolute_height(self, value)

source code 
Overrides: node.Node.set_absolute_height

update_absolute_height(self, parent)

source code 
Overrides: node.Node.update_absolute_height

set_absolute_size(self, value)

source code 
Overrides: node.Node.set_absolute_size

update_absolute_size(self, parent)

source code 
Overrides: node.Node.update_absolute_size

set_absolute_visible(self, value)

source code 
Overrides: node.Node.set_absolute_visible

update_absolute_visible(self, parent)

source code 
Overrides: node.Node.update_absolute_visible

set_absolute_opacity(self, value)

source code 
Overrides: node.Node.set_absolute_opacity

update_absolute_opacity(self, parent)

source code 
Overrides: node.Node.update_absolute_opacity

clean(self)

source code 
Overrides: node.Node.clean

Class Variable Details

__gsignals__

Value:
{'drag-begin':(gobject.SIGNAL_RUN_LAST, gobject.TYPE_BOOLEAN, (gobject\
.TYPE_FLOAT, gobject.TYPE_FLOAT, gobject.TYPE_FLOAT, pgm.ButtonType, g\
object.TYPE_UINT, gobject.TYPE_UINT)), 'drag-motion':(gobject.SIGNAL_R\
UN_LAST, gobject.TYPE_BOOLEAN, (gobject.TYPE_FLOAT, gobject.TYPE_FLOAT\
, gobject.TYPE_FLOAT, pgm.ButtonType, gobject.TYPE_UINT, gobject.TYPE_\
UINT)), 'drag-end':(gobject.SIGNAL_RUN_LAST, gobject.TYPE_BOOLEAN, (go\
bject.TYPE_FLOAT, gobject.TYPE_FLOAT, gobject.TYPE_FLOAT, pgm.ButtonTy\
pe, gobject.TYPE_UINT)), 'clicked':(gobject.SIGNAL_RUN_LAST, gobject.T\
...