public interface IGraphAttributesProvider extends ILabelProvider
IGraphAttributesProvider
can be used to provide arbitrary
attributes for nodes, edges, the root graph, and any nested graphs.Modifier and Type | Method and Description |
---|---|
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.
|
Map<String,Object> |
getGraphAttributes()
Determines the attributes that should be set on the root graph.
|
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.
|
Map<String,Object> |
getNodeAttributes(Object node)
Determines the attributes that should be set on the node represented by
the given content element.
|
getImage, getText
addListener, dispose, isLabelProperty, removeListener
Map<String,Object> getEdgeAttributes(Object sourceNode, Object targetNode)
null
can be
returned.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.For an overview of the supported attributes.
Map<String,Object> getGraphAttributes()
null
can be returned.ZestProperties
Map<String,Object> getNestedGraphAttributes(Object nestingNode)
null
can be returned.nestingNode
- A content element representing a nesting node according to the
IGraphContentProvider.hasNestedGraph(Object)
method.For an overview of the supported attributes.
Map<String,Object> getNodeAttributes(Object node)
null
can be returned.node
- A content element representing a node according to the
IGraphContentProvider.getNodes()
method.ZestProperties
Copyright (c) 2014 itemis AG and others. All rights reserved.