Module pygmlparser.graphics.EdgeGraphics

Expand source code
from typing import Tuple

from dataclasses import dataclass

from pygmlparser.graphics.Point import Point
from pygmlparser.graphics.BaseGraphics import BaseGraphics


@dataclass
class EdgeGraphics(BaseGraphics):

    arrow: str = ''
    """
    The type of arrow at the end of the line
    """
    line:  Tuple[Point] = ()
    """
    A list of `Points` that defines the `org.hasii.pygmlparser.Edge`.  This allows for drawing bends in the Edge.
    """

    def __str__(self) -> str:
        return f'EdgeGraphics[{self.__repr__()}] {super().__str__()}'

Classes

class EdgeGraphics (type: str = '', width: float = 0.0, arrow: str = '', line: Tuple[Point] = ())

EdgeGraphics(type: str = '', width: float = 0.0, arrow: str = '', line: Tuple[pygmlparser.graphics.Point.Point] = ())

Expand source code
class EdgeGraphics(BaseGraphics):

    arrow: str = ''
    """
    The type of arrow at the end of the line
    """
    line:  Tuple[Point] = ()
    """
    A list of `Points` that defines the `org.hasii.pygmlparser.Edge`.  This allows for drawing bends in the Edge.
    """

    def __str__(self) -> str:
        return f'EdgeGraphics[{self.__repr__()}] {super().__str__()}'

Ancestors

Class variables

var arrow : str

The type of arrow at the end of the line

var line : Tuple[Point]

A list of Points that defines the org.hasii.pygmlparser.Edge. This allows for drawing bends in the Edge.

Inherited members