Search this API

y.view
Class Graph2DCopyFactory.HierarchicGraph2DCopyFactory

java.lang.Object
  extended by y.util.GraphCopier.GraphDataCopyFactory
      extended by y.view.Graph2DCopyFactory.HierarchicGraph2DCopyFactory
All Implemented Interfaces:
GraphCopier.CopyFactory
Enclosing class:
Graph2DCopyFactory

public static class Graph2DCopyFactory.HierarchicGraph2DCopyFactory
extends GraphCopier.GraphDataCopyFactory

A copy factory implementation that copies hierarchy information to a newly created Graph2D.

 
Your browser does not support SVG content.

Constructor Summary
Graph2DCopyFactory.HierarchicGraph2DCopyFactory()
          Creates a new instances that delegates the actual creation to a Graph2DCopyFactory
Graph2DCopyFactory.HierarchicGraph2DCopyFactory(GraphCopier.CopyFactory delegatingFactory)
          Creates a new instances that delegates the actual creation to the given factory.
 
Method Summary
protected  void copyData(Edge src, Edge dst)
          Empty stub to be overwritten by subclass implementations.
protected  void copyData(Node src, Node dst)
          Empty stub to be overwritten by subclass implementations.
 void postCopyGraphData(Graph src, Graph newGraph, java.util.Map nodeMap, java.util.Map edgeMap)
          Calls the delegate and then GraphCopier.GraphDataCopyFactory.postCopyData(y.base.Graph,y.base.Graph,java.util.Map,java.util.Map).
protected  void preCopyData(Graph src, Graph dst)
          Empty stub to be overwritten by subclass implementations.
 
Methods inherited from class y.util.GraphCopier.GraphDataCopyFactory
copyEdge, copyNode, createGraph, postCopyData, preCopyGraphData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Graph2DCopyFactory.HierarchicGraph2DCopyFactory

public Graph2DCopyFactory.HierarchicGraph2DCopyFactory()
Creates a new instances that delegates the actual creation to a Graph2DCopyFactory


Graph2DCopyFactory.HierarchicGraph2DCopyFactory

public Graph2DCopyFactory.HierarchicGraph2DCopyFactory(GraphCopier.CopyFactory delegatingFactory)
Creates a new instances that delegates the actual creation to the given factory.

Method Detail

preCopyData

protected void preCopyData(Graph src,
                           Graph dst)
Description copied from class: GraphCopier.GraphDataCopyFactory
Empty stub to be overwritten by subclass implementations.

Overrides:
preCopyData in class GraphCopier.GraphDataCopyFactory

postCopyGraphData

public void postCopyGraphData(Graph src,
                              Graph newGraph,
                              java.util.Map nodeMap,
                              java.util.Map edgeMap)
Description copied from class: GraphCopier.GraphDataCopyFactory
Calls the delegate and then GraphCopier.GraphDataCopyFactory.postCopyData(y.base.Graph,y.base.Graph,java.util.Map,java.util.Map).

Specified by:
postCopyGraphData in interface GraphCopier.CopyFactory
Overrides:
postCopyGraphData in class GraphCopier.GraphDataCopyFactory
Parameters:
src - the graph that was used to copy the entities from.
newGraph - the graph that was used to copy the entities to.
nodeMap - a map that contains a mapping between the nodes in the source graph to their corresponding nodes in the new graph.
edgeMap - a map that contains a mapping between the edges in the source graph to their corresponding edges in the new graph.

copyData

protected void copyData(Node src,
                        Node dst)
Description copied from class: GraphCopier.GraphDataCopyFactory
Empty stub to be overwritten by subclass implementations.

Overrides:
copyData in class GraphCopier.GraphDataCopyFactory
Parameters:
src - the old entity
dst - the new entity

copyData

protected void copyData(Edge src,
                        Edge dst)
Description copied from class: GraphCopier.GraphDataCopyFactory
Empty stub to be overwritten by subclass implementations.

Overrides:
copyData in class GraphCopier.GraphDataCopyFactory
Parameters:
src - the old entity
dst - the new entity

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.