公開方法(Public Methods) | |
| __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 Methods) 繼承自 LabelMaker.Interfaces.IShapes.ALine | |
| __init__ (self, IPoint start, IPoint end, float line_thickness) | |
| 初始化具有起始點、結束點和線條粗細的線。 | |
| str | __str__ (self) |
| 返回線條的字符串表示形式。 | |
額外的繼承成員 | |
公開屬性 繼承自 LabelMaker.Interfaces.IShapes.ALine | |
| start = start | |
| end = end | |
| line_thickness = line_thickness | |
靜態公開屬性 繼承自 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 ) |