Package org.eclipse.gef.zest.fx.jface
Interface IGraphAttributesProvider
- All Superinterfaces:
IBaseLabelProvider
,ILabelProvider
The
IGraphAttributesProvider
can be used to provide arbitrary
attributes for nodes, edges, the root graph, and any nested graphs.-
Method Summary
Modifier and TypeMethodDescriptiongetEdgeAttributes
(Object sourceNode, Object targetNode) Determines the attributes that should be set on the edge with the specified source and target content elements.Determines the attributes that should be set on the root graph.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.getNodeAttributes
(Object node) Determines the attributes that should be set on the node represented by the given content element.Methods inherited from interface org.eclipse.jface.viewers.IBaseLabelProvider
addListener, dispose, isLabelProperty, removeListener
Methods inherited from interface org.eclipse.jface.viewers.ILabelProvider
getImage, getText
-
Method Details
-
getEdgeAttributes
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 ornull
can be returned.- Parameters:
sourceNode
- A content element representing the source node of an edge, according to theIGraphContentProvider.getAdjacentNodes(Object)
method.targetNode
- A content element representing the target node of an edge, according to theIGraphContentProvider.getAdjacentNodes(Object)
method.- Returns:
- A mapping from attribute names to values that should be set on the specified edge.
- See Also:
-
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 ornull
can be returned.- Returns:
- A mapping from attribute names to values that should be set on the root graph.
- See Also:
-
getNestedGraphAttributes
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 ornull
can be returned.- Parameters:
nestingNode
- A content element representing a nesting node according to theIGraphContentProvider.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
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 ornull
can be returned.- Parameters:
node
- A content element representing a node according to theIGraphContentProvider.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:
-