Module logicng

Interface NodeStyleMapper<T>

  • Type Parameters:
    T - the type of the node content
    All Known Implementing Classes:
    BddNodeStyleMapper
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface NodeStyleMapper<T>
    A style mapper for generating graphical representations of formulas, BDDs and graphs. This mapper can be used to compute a node style for the given node content.

    This can be used to style nodes of a graphical representation dynamically depending on the content of the node.

    Since:
    2.4.0
    Version:
    2.4.0
    • Method Detail

      • computeStyle

        GraphicalNodeStyle computeStyle​(T content)
        Computes a style for the given node content.
        Parameters:
        content - the content of the node
        Returns:
        the style for the node with this content