Module logicng

Class GraphicalEdgeStyle


  • public class GraphicalEdgeStyle
    extends Object
    The style of an edge in a graphical representation of a formula, BDD, or graph. The style consists of the line type and the color of the edge.
    Since:
    2.4.0
    Version:
    2.4.0
    • Method Detail

      • noStyle

        public static GraphicalEdgeStyle noStyle()
        Returns a special edge style which does not set any style, so the framework's (dot/Mermaid.js) default theming is applied.
        Returns:
        special edge style which does not set any style
      • solid

        public static GraphicalEdgeStyle solid​(GraphicalColor color)
        Constructs a new solid edge style with a color.
        Parameters:
        color - the color
        Returns:
        the new edge style
      • dotted

        public static GraphicalEdgeStyle dotted​(GraphicalColor color)
        Constructs a new dotted edge style with a color.
        Parameters:
        color - the color
        Returns:
        the new edge style
      • bold

        public static GraphicalEdgeStyle bold​(GraphicalColor color)
        Constructs a new bold edge style with a color.
        Parameters:
        color - the color
        Returns:
        the new edge style
      • hasStyle

        public boolean hasStyle()
        Returns whether this style has any value set. If not it is equivalent to NO_EDGE_STYLE.
        Returns:
        whether this style has any value set
      • getColor

        public GraphicalColor getColor()
        Returns the color of this edge style.
        Returns:
        the color of this edge style
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object