Package Bio :: Package KEGG :: Package KGML :: Module KGML_pathway :: Class Graphics
[hide private]
[frames] | no frames]

Class Graphics

source code

object --+
         |
        Graphics

An Entry subelement used to represents the visual representation.

A subelement of Entry, specifying its visual representation, as described in release KGML v0.7.1 (http://www.kegg.jp/kegg/xml/docs/)

Attributes:

Some attributes are present only for specific graphics types. For example, line types do not (typically) have a width. We permit non-DTD attributes and attribute settings, such as

dash List of ints, describing an on/off pattern for dashes

Instance Methods [hide private]
 
__init__(self, parent)
Initialize the class.
source code
 
_getx(self) source code
 
_setx(self, value) source code
 
_delx(self) source code
 
_gety(self) source code
 
_sety(self, value) source code
 
_dely(self) source code
 
_getwidth(self) source code
 
_setwidth(self, value) source code
 
_delwidth(self) source code
 
_getheight(self) source code
 
_setheight(self, value) source code
 
_delheight(self) source code
 
_getcoords(self) source code
 
_setcoords(self, value) source code
 
_delcoords(self) source code
 
_getfgcolor(self) source code
 
_setfgcolor(self, value) source code
 
_delfgcolor(self) source code
 
_getbgcolor(self) source code
 
_setbgcolor(self, value) source code
 
_delbgcolor(self) source code

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

Properties [hide private]
  x
The X coordinate for the graphics element.
  y
The Y coordinate for the graphics element.
  width
The width of the graphics element.
  height
The height of the graphics element.
  coords
Polyline coordinates for the graphics element.
  fgcolor
Foreground color.
  bgcolor
Background color.
  element
Return the Graphics as a valid KGML element.
  bounds
Coordinate bounds for the Graphics element.
  centre
Return the centre of the Graphics object as an (x, y) tuple.

Inherited from object: __class__

Method Details [hide private]

__init__(self, parent)
(Constructor)

source code 
Initialize the class.
Overrides: object.__init__

Property Details [hide private]

x

The X coordinate for the graphics element.
Get Method:
_getx(self)
Set Method:
_setx(self, value)
Delete Method:
_delx(self)

y

The Y coordinate for the graphics element.
Get Method:
_gety(self)
Set Method:
_sety(self, value)
Delete Method:
_dely(self)

width

The width of the graphics element.
Get Method:
_getwidth(self)
Set Method:
_setwidth(self, value)
Delete Method:
_delwidth(self)

height

The height of the graphics element.
Get Method:
_getheight(self)
Set Method:
_setheight(self, value)
Delete Method:
_delheight(self)

coords

Polyline coordinates for the graphics element.
Get Method:
_getcoords(self)
Set Method:
_setcoords(self, value)
Delete Method:
_delcoords(self)

fgcolor

Foreground color.
Get Method:
_getfgcolor(self)
Set Method:
_setfgcolor(self, value)
Delete Method:
_delfgcolor(self)

bgcolor

Background color.
Get Method:
_getbgcolor(self)
Set Method:
_setbgcolor(self, value)
Delete Method:
_delbgcolor(self)

element

Return the Graphics as a valid KGML element.
Get Method:
unreachable.element(self) - Return the Graphics as a valid KGML element.

bounds

Coordinate bounds for the Graphics element.

Return the bounds of the Graphics object as an [(xmin, ymin), (xmax, ymax)] tuple. Co-ordinates give the centre of the circle, rectangle, roundrectangle elements, so we have to adjust for the relevant width/height.

Get Method:
unreachable.bounds(self) - Coordinate bounds for the Graphics element.

centre

Return the centre of the Graphics object as an (x, y) tuple.
Get Method:
unreachable.centre(self) - Return the centre of the Graphics object as an (x, y) tuple.