org._3pq.jgrapht.ext

Interface JGraphModelAdapter.CellFactory

Known Implementing Classes:
JGraphModelAdapter.DefaultCellFactory

public static interface JGraphModelAdapter.CellFactory

Creates the JGraph cells that reflect the respective JGraphT elements.
Author:
Barak Naveh
Since:
Dec 12, 2003

Method Summary

DefaultEdge
createEdgeCell(Edge jGraphTEdge)
Creates an edge cell that contains its respective JGraphT edge.
DefaultGraphCell
createVertexCell(Object jGraphTVertex)
Creates a vertex cell that contains its respective JGraphT vertex.

Method Details

createEdgeCell

public DefaultEdge createEdgeCell(Edge jGraphTEdge)
Creates an edge cell that contains its respective JGraphT edge.
Parameters:
jGraphTEdge - a JGraphT edge to be contained.
Returns:
an edge cell that contains its respective JGraphT edge.

createVertexCell

public DefaultGraphCell createVertexCell(Object jGraphTVertex)
Creates a vertex cell that contains its respective JGraphT vertex.
Parameters:
jGraphTVertex - a JGraphT vertex to be contained.
Returns:
a vertex cell that contains its respective JGraphT vertex.