Package org.jgrapht.ext
Class JGraphModelAdapter.DefaultCellFactory<VV,EE>
- java.lang.Object
-
- org.jgrapht.ext.JGraphModelAdapter.DefaultCellFactory<VV,EE>
-
- All Implemented Interfaces:
java.io.Serializable
,JGraphModelAdapter.CellFactory<VV,EE>
- Enclosing class:
- JGraphModelAdapter<V,E>
public static class JGraphModelAdapter.DefaultCellFactory<VV,EE> extends java.lang.Object implements JGraphModelAdapter.CellFactory<VV,EE>, java.io.Serializable
A simple default cell factory.- Since:
- Dec 12, 2003
- Author:
- Barak Naveh
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultCellFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jgraph.graph.DefaultEdge
createEdgeCell(EE jGraphTEdge)
Creates an edge cell that contains its respective JGraphT edge.org.jgraph.graph.DefaultGraphCell
createVertexCell(VV jGraphTVertex)
Creates a vertex cell that contains its respective JGraphT vertex.
-
-
-
Method Detail
-
createEdgeCell
public org.jgraph.graph.DefaultEdge createEdgeCell(EE jGraphTEdge)
Description copied from interface:JGraphModelAdapter.CellFactory
Creates an edge cell that contains its respective JGraphT edge.- Specified by:
createEdgeCell
in interfaceJGraphModelAdapter.CellFactory<VV,EE>
- Parameters:
jGraphTEdge
- a JGraphT edge to be contained.- Returns:
- an edge cell that contains its respective JGraphT edge.
- See Also:
JGraphModelAdapter.CellFactory.createEdgeCell(Object)
-
createVertexCell
public org.jgraph.graph.DefaultGraphCell createVertexCell(VV jGraphTVertex)
Description copied from interface:JGraphModelAdapter.CellFactory
Creates a vertex cell that contains its respective JGraphT vertex.- Specified by:
createVertexCell
in interfaceJGraphModelAdapter.CellFactory<VV,EE>
- Parameters:
jGraphTVertex
- a JGraphT vertex to be contained.- Returns:
- a vertex cell that contains its respective JGraphT vertex.
- See Also:
JGraphModelAdapter.CellFactory.createVertexCell(Object)
-
-