The arrow head class.
Default class constructor. |
|
Get the arrow end position. |
|
Get the arrow size. |
|
Get the id. |
|
Get the metafile. |
|
Get the arrow name. |
|
Get end position. |
|
Get the arrow size. |
|
Get the spacing. |
|
Get the X offset. |
|
Get the Y offset. |
|
Set end position. |
|
Set the arrow size. |
|
Set the spacing. |
|
Set the X offset. |
|
Set the Y offset. |
ArrowHead
(object)¶The arrow head class.
__init__
(self, type = 0, end = 0, size = 0.0, dist = 0.0, name = "", mf = None, arrowId = -1)¶Default class constructor.
type (int) – the type
Arrow head type |
Description |
---|---|
|
a hollow circle |
|
a filled circle |
|
an arrow |
|
a single oblique |
|
a double oblique |
|
custom, define in metafile |
end (int) – end of arrow head ???
size (float) – size of arrow head
dist (float) – dist ???
name (string) – name of arrow head
mf – mf ???
arrowId – id of arrow head
GetArrowEnd
(self)¶Get the arrow end position.
GetArrowSize
(self)¶Get the arrow size.
GetId
(self)¶Get the id.
GetMetaFile
(self)¶Get the metafile.
GetName
(self)¶Get the arrow name.
GetPosition
(self)¶Get end position.
GetSize
(self)¶Get the arrow size.
GetSpacing
(self)¶Get the spacing.
GetXOffset
(self)¶Get the X offset.
GetYOffset
(self)¶Get the Y offset.
SetPosition
(self, pos)¶Set end position.
pos – position to set it to
SetSize
(self, size)¶Set the arrow size.
size – size in points???
Note
if a custom arrow is used size is used to scale the arrow???
SetSpacing
(self, sp)¶Set the spacing.
sp – the new spacing value
SetXOffset
(self, x)¶Set the X offset.
x – value to set the offset to???
SetYOffset
(self, y)¶Set the Y offset.
y – value to set the offset to???