Location object.
More...
|
def | __init__ (self, x=0, y=0, height=0, width=0, direction=dir.DOWN) |
|
def | __str__ (self) |
|
def | direction (self) |
|
def | direction (self, direction) |
|
def | height (self) |
|
def | height (self, height) |
|
def | parse_xml_node (self, node) |
|
def | parse_yaml (self, y) |
|
def | save_xml (self, doc, element) |
|
def | to_dict (self) |
|
def | width (self) |
|
def | width (self, width) |
|
def | x (self) |
|
def | x (self, x) |
|
def | y (self) |
|
def | y (self, y) |
|
Location object.
Stores the location of a component in a graphical view.
Definition at line 34 of file location.py.
def rtsprofile.location.Location.__init__ |
( |
|
self, |
|
|
|
x = 0 , |
|
|
|
y = 0 , |
|
|
|
height = 0 , |
|
|
|
width = 0 , |
|
|
|
direction = dir.DOWN |
|
) |
| |
Constructor.
@param x X position of the top-left of the component.
@type x int
@param y Y position of the top-left of the component.
@type y int
@param height Height of the component.
@type height int
@param width Width of the component.
@type width int
@param direction Direction the component faces.
@type direction direction.const_type
Definition at line 37 of file location.py.
def rtsprofile.location.Location.__str__ |
( |
|
self | ) |
|
def rtsprofile.location.Location.direction |
( |
|
self | ) |
|
The direction of the component in a graphical tool.
A value of -1 for this property indicates that the height should be as
wide as is necessary.
Definition at line 123 of file location.py.
def rtsprofile.location.Location.direction |
( |
|
self, |
|
|
|
direction |
|
) |
| |
def rtsprofile.location.Location.height |
( |
|
self | ) |
|
The height of the component in a graphical tool.
Definition at line 96 of file location.py.
def rtsprofile.location.Location.height |
( |
|
self, |
|
|
|
height |
|
) |
| |
def rtsprofile.location.Location.parse_xml_node |
( |
|
self, |
|
|
|
node |
|
) |
| |
Parse an xml.dom Node object representing a location into this
object.
Definition at line 138 of file location.py.
def rtsprofile.location.Location.parse_yaml |
( |
|
self, |
|
|
|
y |
|
) |
| |
Parse a YAML specification of a location into this object.
Definition at line 151 of file location.py.
def rtsprofile.location.Location.save_xml |
( |
|
self, |
|
|
|
doc, |
|
|
|
element |
|
) |
| |
Save this location into an xml.dom.Element object.
Definition at line 160 of file location.py.
def rtsprofile.location.Location.to_dict |
( |
|
self | ) |
|
Save this location into a dictionary.
Definition at line 171 of file location.py.
def rtsprofile.location.Location.width |
( |
|
self | ) |
|
The width of the component in a graphical tool.
A value of -1 for this property indicates that the width should be as
wide as is necessary.
Definition at line 107 of file location.py.
def rtsprofile.location.Location.width |
( |
|
self, |
|
|
|
width |
|
) |
| |
def rtsprofile.location.Location.x |
( |
|
self | ) |
|
The X position of the component in a graphical tool.
Definition at line 74 of file location.py.
def rtsprofile.location.Location.x |
( |
|
self, |
|
|
|
x |
|
) |
| |
def rtsprofile.location.Location.y |
( |
|
self | ) |
|
The Y position of the component in a graphical tool.
Definition at line 85 of file location.py.
def rtsprofile.location.Location.y |
( |
|
self, |
|
|
|
y |
|
) |
| |
rtsprofile.location.Location._direction |
|
private |
rtsprofile.location.Location._height |
|
private |
rtsprofile.location.Location._width |
|
private |
rtsprofile.location.Location._x |
|
private |
rtsprofile.location.Location._y |
|
private |
rtsprofile.location.Location.direction |
rtsprofile.location.Location.height |
rtsprofile.location.Location.width |
rtsprofile.location.Location.x |
rtsprofile.location.Location.y |
The documentation for this class was generated from the following file: