Table of Contents

Class: arrow | ../bkchem/classes.py
--- | ---
Base Classes |
--- | ---
meta_enabled drawable with_line line_colored container interactive top_level
Methods |
--- | ---
__init__ bbox change_direction create_new_point delete delete_point draw focus | get_package get_pins is_empty_or_single_point lift move read_package read_standard_values redraw | select set_pins unfocus unselect
| __init__
    __init__ (
            self,
            paper,
            points=[],
            shape=( 8, 10, 3 ),
            pin=1,
            spline=0,
            package=None,
            fill="#000",
            )
| bbox
    bbox ( self )
returns the bounding box of the object as a list of [x1,y1,x2,y2]
| change_direction
    change_direction ( self )
| create_new_point
    create_new_point (
            self,
            x,
            y,
            position=-1,
            )
creates new point, position specifies relative position of point in points, usualy -1 or 0
| delete
    delete ( self )
| delete_point
    delete_point ( self,  pnt )
| draw
    draw ( self )
| focus
    focus ( 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_pins
    get_pins ( self )
returns tuple of boolean values (start, end)
| is_empty_or_single_point
    is_empty_or_single_point ( self )
| lift
    lift ( self )
| move
    move (
            self,
            dx,
            dy,
            )
| read_package
    read_package ( self,  package )
reads the dom element package and sets internal state according to it
| read_standard_values
    read_standard_values (
            self,
            standard,
            old_standard=None,
            )
| redraw
    redraw ( self )
| select
    select ( self )
| set_pins
    set_pins (
            self,
            start=None,
            end=None,
            )
| unfocus
    unfocus ( self )
| unselect
    unselect ( self )

Table of Contents

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