com.phoenixst.plexus
public class GraphTransformer extends GraphWrapper implements Serializable
Graph
which wraps another, transforming its nodes
and edges in some way.
Since: 1.0
Version: $Revision: 1.30 $
Constructor Summary | |
---|---|
GraphTransformer(Graph delegate)
Constructs a new GraphTransformer with no
Transformers currently set.
| |
GraphTransformer(Graph delegate, InvertibleTransformer nodeTransformer)
Constructs a new GraphTransformer with the
specified Transformers .
| |
GraphTransformer(Graph delegate, InvertibleTransformer nodeTransformer, InvertibleTransformer edgeTransformer)
Constructs a new GraphTransformer with the
specified Transformers .
|
Method Summary | |
---|---|
InvertibleTransformer | getEdgeTransformer()
Gets the edge transformer. |
InvertibleTransformer | getNodeTransformer()
Gets the node transformer. |
void | setEdgeTransformer(InvertibleTransformer edgeTransformer)
Sets the edge transformer. |
void | setNodeTransformer(InvertibleTransformer nodeTransformer)
Sets the node transformer. |
protected Object | unwrapEdgeObject(Object edgeObject) |
protected Object | unwrapNode(Object node) |
protected Object | wrapEdgeObject(Object edgeObject) |
protected Object | wrapNode(Object node) |
GraphTransformer
with no
Transformers
currently set.
Parameters: delegate the Graph
for which this is a
transformed view.
GraphTransformer
with the
specified Transformers
.
Parameters: delegate the Graph
for which this is a
transformed view.
nodeTransformer the invertible node transformer from
this Graph
to the wrapped one.
GraphTransformer
with the
specified Transformers
.
Parameters: delegate the Graph
for which this is a
transformed view.
nodeTransformer the invertible node transformer from
this Graph
to the wrapped one.
edgeTransformer the invertible edge transformer from
this Graph
to the wrapped one.