Module logicng

Class GraphicalGenerator<C>

    • Method Detail

      • nodeStyle

        protected GraphicalNodeStyle nodeStyle​(C content)
        Computes the style for a node. If no style mapper is configured the default style is applied, otherwise, the style mapper is used to dynamically compute the style for the given content.
        Parameters:
        content - the content to style
        Returns:
        the node style
      • labelOrDefault

        protected String labelOrDefault​(C content,
                                        String defaultLabel)
        Computes the label with the label mapper or returns the default value if no label mapper is configured.
        Parameters:
        content - the content for which to compute the label
        defaultLabel - the default label
        Returns:
        the label
      • edgeStyle

        protected GraphicalEdgeStyle edgeStyle​(C source,
                                               C destination)
        Computes the style for an edge. If no style mapper is configured the default style is applied, otherwise, the style mapper is used to dynamically compute the style for the given edge.
        Parameters:
        source - the content of the source node
        destination - the content of the destination node
        Returns:
        the edge style