public final class GraphDecorator extends Object
IModelItems from an IGraph instance.
This class servers as a factory for lookup decorators for the various items that make up an IGraph. This is a
convenience class that obtains the ILookupDecorator from the IGraph's ILookup.lookup(java.lang.Class)
and passes that to the various specialized decorator convenience classes like e.g. NodeDecorator.
| Constructor and Description |
|---|
GraphDecorator(IGraph graph)
Initializes a new instance of the
GraphDecorator class. |
| Modifier and Type | Method and Description |
|---|---|
BendDecorator |
getBendDecorator()
Returns a
BendDecorator instance that can be used to decorate the IBend
instances in the graph that this decorator has been created for. |
EdgeDecorator |
getEdgeDecorator()
Returns an
EdgeDecorator instance that can be used to decorate the IEdge
instances in the graph that this decorator has been created for. |
LabelDecorator |
getLabelDecorator()
Returns a
LabelDecorator instance that can be used to decorate the ILabel
instances in the graph that this decorator has been created for. |
NodeDecorator |
getNodeDecorator()
Returns a
NodeDecorator instance that can be used to decorate the INode
instances in the graph that this decorator has been created for. |
PortDecorator |
getPortDecorator()
Returns a
PortDecorator instance that can be used to decorate the IPort
instances in the graph that this decorator has been created for. |
public GraphDecorator(IGraph graph)
GraphDecorator class.graph - The graph.public final BendDecorator getBendDecorator()
BendDecorator instance that can be used to decorate the IBend
instances in the graph that this decorator has been created for.
This will obtain the ILookupDecorator instance from the IGraph's ILookup.lookup(java.lang.Class)
method and use it to initialize the BendDecorator
IBends.public final EdgeDecorator getEdgeDecorator()
EdgeDecorator instance that can be used to decorate the IEdge
instances in the graph that this decorator has been created for.
This will obtain the ILookupDecorator instance from the IGraph's ILookup.lookup(java.lang.Class)
method and use it to initialize the EdgeDecorator
IEdges.public final LabelDecorator getLabelDecorator()
LabelDecorator instance that can be used to decorate the ILabel
instances in the graph that this decorator has been created for.
This will obtain the ILookupDecorator instance from the IGraph's ILookup.lookup(java.lang.Class)
method and use it to initialize the LabelDecorator
ILabels.public final NodeDecorator getNodeDecorator()
NodeDecorator instance that can be used to decorate the INode
instances in the graph that this decorator has been created for.
This will obtain the ILookupDecorator instance from the IGraph's ILookup.lookup(java.lang.Class)
method and use it to initialize the NodeDecorator
INodes.public final PortDecorator getPortDecorator()
PortDecorator instance that can be used to decorate the IPort
instances in the graph that this decorator has been created for.
This will obtain the ILookupDecorator instance from the IGraph's ILookup.lookup(java.lang.Class)
method and use it to initialize the PortDecorator
IPorts.