<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html40/loose.dtd"> <html> <head> <title>Class: arrow</title> </head> <body bgcolor="#ffffff"> <p><i><a href="../../index.html">Table of Contents</a></i></p> <table border="0" cellpadding="5" cellspacing="0" width="100%"> <tr> <th rowspan="2" valign="top" align="left" width="10%" bgcolor="#88bbee"><font color="#000000">Class: arrow</font> </th> <th bgcolor="#88bbee" width="90%" align="right"><font color="#000000">../bkchem/classes.py</font> </th> </tr> <tr> <td> <table border="0" cellpadding="5" cellspacing="0" width="100%"> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="Base Classes">Base Classes</a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000"> </font> </th> </tr> <tr> <td> meta_enabled<br> drawable<br> with_line<br> line_colored<br> container<br> interactive<br> top_level<br> </td></tr> </table> <table border="0" cellpadding="5" cellspacing="0" width="100%"> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="Methods">Methods</a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000"> </font> </th> </tr> <tr> <td> <table border="0" cellspacing="2" cellpadding="2" width="100%"> <tr> <td align="LEFT" valign="TOP"> <a href="#__init__">__init__</a><br> <a href="#bbox">bbox</a><br> <a href="#change_direction">change_direction</a><br> <a href="#create_new_point">create_new_point</a><br> <a href="#delete">delete</a><br> <a href="#delete_point">delete_point</a><br> <a href="#draw">draw</a><br> <a href="#focus">focus</a><br> </td> <td align="LEFT" valign="TOP"> <a href="#get_package">get_package</a><br> <a href="#get_pins">get_pins</a><br> <a href="#is_empty_or_single_point">is_empty_or_single_point</a><br> <a href="#lift">lift</a><br> <a href="#move">move</a><br> <a href="#read_package">read_package</a><br> <a href="#read_standard_values">read_standard_values</a><br> <a href="#redraw">redraw</a><br> </td> <td align="LEFT" valign="TOP"> <a href="#select">select</a><br> <a href="#set_pins">set_pins</a><br> <a href="#unfocus">unfocus</a><br> <a href="#unselect">unselect</a><br> </td> </tr> </table> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="__init__"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">__init__ </font> </th> </tr> <tr> <td> <font color="#000088"><pre> __init__ ( self, paper, points=[], shape=( 8, 10, 3 ), pin=1, spline=0, package=None, fill="#000", ) </pre></font> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="bbox"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">bbox </font> </th> </tr> <tr> <td> <font color="#000088"><pre> bbox ( self ) </pre></font> <p>returns the bounding box of the object as a list of <a href="#refx1,y1,x2,y2">[x1,y1,x2,y2]</a></p> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="change_direction"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">change_direction </font> </th> </tr> <tr> <td> <font color="#000088"><pre> change_direction ( self ) </pre></font> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="create_new_point"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">create_new_point </font> </th> </tr> <tr> <td> <font color="#000088"><pre> create_new_point ( self, x, y, position=-1, ) </pre></font> <p>creates new point, position specifies relative position of point in points, usualy -1 or 0</p> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="delete"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">delete </font> </th> </tr> <tr> <td> <font color="#000088"><pre> delete ( self ) </pre></font> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="delete_point"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">delete_point </font> </th> </tr> <tr> <td> <font color="#000088"><pre> delete_point ( self, pnt ) </pre></font> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="draw"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">draw </font> </th> </tr> <tr> <td> <font color="#000088"><pre> draw ( self ) </pre></font> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="focus"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">focus </font> </th> </tr> <tr> <td> <font color="#000088"><pre> focus ( self ) </pre></font> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="get_package"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">get_package </font> </th> </tr> <tr> <td> <font color="#000088"><pre> get_package ( self, doc ) </pre></font> <p>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)</p> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="get_pins"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">get_pins </font> </th> </tr> <tr> <td> <font color="#000088"><pre> get_pins ( self ) </pre></font> <p>returns tuple of boolean values (start, end)</p> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="is_empty_or_single_point"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">is_empty_or_single_point </font> </th> </tr> <tr> <td> <font color="#000088"><pre> is_empty_or_single_point ( self ) </pre></font> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="lift"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">lift </font> </th> </tr> <tr> <td> <font color="#000088"><pre> lift ( self ) </pre></font> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="move"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">move </font> </th> </tr> <tr> <td> <font color="#000088"><pre> move ( self, dx, dy, ) </pre></font> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="read_package"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">read_package </font> </th> </tr> <tr> <td> <font color="#000088"><pre> read_package ( self, package ) </pre></font> <p>reads the dom element package and sets internal state according to it</p> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="read_standard_values"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">read_standard_values </font> </th> </tr> <tr> <td> <font color="#000088"><pre> read_standard_values ( self, standard, old_standard=None, ) </pre></font> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="redraw"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">redraw </font> </th> </tr> <tr> <td> <font color="#000088"><pre> redraw ( self ) </pre></font> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="select"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">select </font> </th> </tr> <tr> <td> <font color="#000088"><pre> select ( self ) </pre></font> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="set_pins"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">set_pins </font> </th> </tr> <tr> <td> <font color="#000088"><pre> set_pins ( self, start=None, end=None, ) </pre></font> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="unfocus"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">unfocus </font> </th> </tr> <tr> <td> <font color="#000088"><pre> unfocus ( self ) </pre></font> <tr> <th bgcolor="#99ccff" rowspan="2" valign="top" align="left" width="20%" > <font color="#000000"> <a name="unselect"></a> </font> </th> <th bgcolor="#99ccff" valign="top" align="left" width="80%" > <font color="#000000">unselect </font> </th> </tr> <tr> <td> <font color="#000088"><pre> unselect ( self ) </pre></font> </td></tr> </td></tr> </table> </td> </tr> </table> <hr> <p><i><a href="../../index.html">Table of Contents</a></i></p> <font size="-2"><i>This document was automatically generated on Tue Dec 12 13:46:43 2006 by <a href="http://happydoc.sourceforge.net">HappyDoc</a> version 2.1</i></font> </body> </html>