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 |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getEdgeAttributes(java.lang.Object sourceNode,
java.lang.Object targetNode)
Determines the attributes that should be set on the edge with the
specified source and target content elements.
|
java.util.Map<java.lang.String,java.lang.Object> |
getGraphAttributes()
Determines the attributes that should be set on the root graph.
|
java.util.Map<java.lang.String,java.lang.Object> |
getNestedGraphAttributes(java.lang.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.
|
java.util.Map<java.lang.String,java.lang.Object> |
getNodeAttributes(java.lang.Object node)
Determines the attributes that should be set on the node represented by
the given content element.
|
getImage, getText
addListener, dispose, isLabelProperty, removeListener
java.util.Map<java.lang.String,java.lang.Object> getEdgeAttributes(java.lang.Object sourceNode, java.lang.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.
java.util.Map<java.lang.String,java.lang.Object> getGraphAttributes()
null
can be returned.ZestProperties
java.util.Map<java.lang.String,java.lang.Object> getNestedGraphAttributes(java.lang.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.
java.util.Map<java.lang.String,java.lang.Object> getNodeAttributes(java.lang.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.