public final class GraphDecorator extends Object
IModelItem
s 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
IBend
s.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
IEdge
s.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
ILabel
s.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
INode
s.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
IPort
s.