Line¶
- class mobrob_behcon.visu.graphics.Line(p1, p2)[source]¶
 Methods
__init__(p1, p2)clone()draw(graphwin)Draw the object in graphwin, which should be a GraphWin object.
getP1()getP2()move(dx, dy)move object dx units in x direction and dy units in y direction
setArrow(option)setFill(color)Set interior color to color
setOutline(color)Set outline color to color
setWidth(width)Set line weight to width
undraw()Undraw the object (i.e.
Details
- draw(graphwin)¶
 Draw the object in graphwin, which should be a GraphWin object. A GraphicsObject may only be drawn into one window. Raises an error if attempt made to draw an object that is already visible.
- getCenter()¶
 
- getP1()¶
 
- getP2()¶
 
- move(dx, dy)¶
 move object dx units in x direction and dy units in y direction
- setFill(color)¶
 Set interior color to color
- setOutline(color)¶
 Set outline color to color
- setWidth(width)¶
 Set line weight to width
- undraw()¶
 Undraw the object (i.e. hide it). Returns silently if the object is not currently drawn.