Interface IGraphAttributesProvider

All Superinterfaces:
IBaseLabelProvider, ILabelProvider

public interface IGraphAttributesProvider extends ILabelProvider
The IGraphAttributesProvider can be used to provide arbitrary attributes for nodes, edges, the root graph, and any nested graphs.
  • Method Details

    • getEdgeAttributes

      Map<String,Object> getEdgeAttributes(Object sourceNode, Object targetNode)
      Determines the attributes that should be set on the edge with the specified source and target content elements. If no attributes should be set on the edge, either an empty map or null can be returned.
      Parameters:
      sourceNode - A content element representing the source node of an edge, according to the IGraphContentProvider.getAdjacentNodes(Object) method.
      targetNode - A content element representing the target node of an edge, according to the IGraphContentProvider.getAdjacentNodes(Object) method.
      Returns:
      A mapping from attribute names to values that should be set on the specified edge.
      See Also:
    • getGraphAttributes

      Map<String,Object> getGraphAttributes()
      Determines the attributes that should be set on the root graph. If no attributes should be set on the root graph, either an empty map or null can be returned.
      Returns:
      A mapping from attribute names to values that should be set on the root graph.
      See Also:
    • getNestedGraphAttributes

      Map<String,Object> getNestedGraphAttributes(Object nestingNode)
      Determines the attributes that should be set on a nested graph that is nested inside the node represented by the given content element. If no attributes should be set on the graph, either an empty map or null can be returned.
      Parameters:
      nestingNode - A content element representing a nesting node according to the IGraphContentProvider.hasNestedGraph(Object) method.
      Returns:
      A mapping from attribute names to values that should be set on the graph nested inside the node represented by the given content element.
      See Also:
    • getNodeAttributes

      Map<String,Object> getNodeAttributes(Object node)
      Determines the attributes that should be set on the node represented by the given content element. If no attributes should be set on the node, either an empty map or null can be returned.
      Parameters:
      node - A content element representing a node according to the IGraphContentProvider.getNodes() method.
      Returns:
      A mapping from attribute names to values that should be set on the node represented by the given content element.
      See Also: