org.jscience.computing.graph.external
Class JGraphModelAdapter.DefaultCellFactory

java.lang.Object
  extended by org.jscience.computing.graph.external.JGraphModelAdapter.DefaultCellFactory
All Implemented Interfaces:
java.io.Serializable, JGraphModelAdapter.CellFactory
Enclosing class:
JGraphModelAdapter

public static class JGraphModelAdapter.DefaultCellFactory
extends java.lang.Object
implements JGraphModelAdapter.CellFactory, java.io.Serializable

A simple default cell factory.

Since:
Dec 12, 2003
See Also:
Serialized Form

Constructor Summary
JGraphModelAdapter.DefaultCellFactory()
           
 
Method Summary
 org.jgraph.graph.DefaultEdge createEdgeCell(Edge jGraphTEdge)
          Creates an edge cell that contains its respective JGraphT edge.
 org.jgraph.graph.DefaultGraphCell createVertexCell(java.lang.Object jGraphTVertex)
          Creates a vertex cell that contains its respective JGraphT vertex.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JGraphModelAdapter.DefaultCellFactory

public JGraphModelAdapter.DefaultCellFactory()
Method Detail

createEdgeCell

public org.jgraph.graph.DefaultEdge createEdgeCell(Edge jGraphTEdge)
Description copied from interface: JGraphModelAdapter.CellFactory
Creates an edge cell that contains its respective JGraphT edge.

Specified by:
createEdgeCell in interface JGraphModelAdapter.CellFactory
Parameters:
jGraphTEdge - a JGraphT edge to be contained.
Returns:
an edge cell that contains its respective JGraphT edge.
See Also:
JGraphModelAdapter.CellFactory.createEdgeCell(org.jscience.computing.graph.Edge)

createVertexCell

public org.jgraph.graph.DefaultGraphCell createVertexCell(java.lang.Object jGraphTVertex)
Description copied from interface: JGraphModelAdapter.CellFactory
Creates a vertex cell that contains its respective JGraphT vertex.

Specified by:
createVertexCell in interface JGraphModelAdapter.CellFactory
Parameters:
jGraphTVertex - a JGraphT vertex to be contained.
Returns:
a vertex cell that contains its respective JGraphT vertex.
See Also:
JGraphModelAdapter.CellFactory.createVertexCell(Object)