Table of Contents

Class: arrow bkchem/classes.py

note that all children of simple_parent have default meta infos set therefor it is not necessary to provide them for all new classes if they don't differ (are not non-empty)

Base Classes   
meta_enabled
drawable
with_line
line_colored
container
interactive
top_level
Methods   
__init__
_get_reaction
_get_shape_defining_points
_set_reaction
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",
        )

  _get_reaction 
_get_reaction ( self )

  _get_shape_defining_points 
_get_shape_defining_points ( self )

shape_defining_points

  _set_reaction 
_set_reaction ( self,  reaction )

  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 Wed Jun 1 11:05:30 2005 by HappyDoc version 2.1