Public 成员函数 | |
| __init__ (self, IPoint start, IPoint end, float line_thickness) | |
| 使用指定的起点、终点和线条厚度初始化 Line 类的新实例。 | |
| from_coordinates (cls, float x_start, float y_start, float x_end, float y_end, float line_thickness=1.0) | |
| 使用指定的起点和终点坐标及线条厚度初始化 Line 类的新实例。 | |
| __str__ (self) | |
| 返回可以发送到打印机的字符串。 | |
Public 成员函数 继承自 LabelMaker.Interfaces.IShapes.ALine | |
| __init__ (self, IPoint start, IPoint end, float line_thickness) | |
| 初始化具有起始点、结束点和线条粗细的线。 | |
| str | __str__ (self) |
| 返回线条的字符串表示形式。 | |
额外继承的成员函数 | |
Public 属性 继承自 LabelMaker.Interfaces.IShapes.ALine | |
| start = start | |
| end = end | |
| line_thickness = line_thickness | |
静态 Public 属性 继承自 LabelMaker.Interfaces.IShapes.ILine | |
| Optional | ruler [IRuler] |
| LabelMaker.TSPL.Shapes.Line.__str__ | ( | self | ) |
| LabelMaker.TSPL.Shapes.Line.from_coordinates | ( | cls, | |
| float | x_start, | ||
| float | y_start, | ||
| float | x_end, | ||
| float | y_end, | ||
| float | line_thickness = 1.0 ) |