Table of Contents

Class: plus | ../bkchem/classes.py
--- | ---
Base Classes |
--- | ---
meta_enabled interactive point_drawable with_font area_colored top_level
Methods |
--- | ---
__init__ bbox delete draw focus get_id get_package get_xy lift | move move_to read_package redraw scale_font select unfocus unselect update_font
| __init__
    __init__ (
            self,
            paper,
            xy=(),
            package=None,
            )
| bbox
    bbox ( self )
returns the bounding box of the object as a list of [x1,y1,x2,y2]
| delete
    delete ( self )
| draw
    draw ( self )
| focus
    focus ( self )
| get_id
    get_id ( self )
| get_package
    get_package ( self,  doc )
returns a DOM element describing the object in CDML, doc is the parent document which is used for element creation (the returned element is not inserted into the document)
| get_xy
    get_xy ( self )
| lift
    lift ( self )
| move
    move (
            self,
            dx,
            dy,
            )
| move_to
    move_to (
            self,
            x,
            y,
            )
| read_package
    read_package ( self,  package )
reads the dom element package and sets internal state according to it
| redraw
    redraw ( self )
| scale_font
    scale_font ( self,  ratio )
scales font of plus. does not redraw !!
| select
    select ( self )
| unfocus
    unfocus ( self )
| unselect
    unselect ( self )
| update_font
    update_font ( self )

Table of Contents

This document was automatically generated on Tue Dec 12 13:46:43 2006 by HappyDoc version 2.1