pyumldiagrams.Common
Classes
Module Contents
- class pyumldiagrams.Common.Common
- INHERITANCE_ARROW_HEIGHT: Final = 10
- DIAMOND_HEIGHT: Final = 8
- classmethod computeTheArrowVertices(position1: pyumldiagrams.Internal.InternalPosition, position0: pyumldiagrams.Internal.InternalPosition) pyumldiagrams.Internal.ArrowPoints
Draw an arrow at the end of the line source-dest.
- Parameters:
position1 – points of the segment
position0 – points of the segment
- Returns:
A list of positions that describes a diamond to draw
- classmethod computeDiamondVertices(position1: pyumldiagrams.Internal.InternalPosition, position0: pyumldiagrams.Internal.InternalPosition) pyumldiagrams.Internal.DiamondPoints
- Parameters:
position1 – The 1st position in the line segment
position0 – The 0th position in the line segment
- classmethod computeDeltaXDeltaY(position1: pyumldiagrams.Internal.InternalPosition, position0: pyumldiagrams.Internal.InternalPosition) Tuple[int, int]
- classmethod computeMidPointOfBottomLine(startPos: pyumldiagrams.Internal.InternalPosition, endPos: pyumldiagrams.Internal.InternalPosition) pyumldiagrams.Internal.InternalPosition
These two noteCoordinates are the two end-points of the bottom leg of the inheritance arrow midPoint = (x1+x2/2, y1+y2/2)
- Parameters:
startPos – start of line
endPos – end of line
Returns: Midpoint between startPos - endPos