easik.sketch.util
Class SketchAdapter.DefaultCellFactory

java.lang.Object
  extended by easik.sketch.util.SketchAdapter.DefaultCellFactory
All Implemented Interfaces:
SketchAdapter.CellFactory, java.io.Serializable
Enclosing class:
SketchAdapter

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

A simple default cell factory.

Since:
Dec 12, 2003
Author:
Barak Naveh
See Also:
Serialized Form

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

Constructor Detail

SketchAdapter.DefaultCellFactory

public SketchAdapter.DefaultCellFactory()
Method Detail

createEdgeCell

public org.jgraph.graph.DefaultEdge createEdgeCell(org.jgrapht.graph.DefaultEdge jGraphTEdge)
Creates an edge cell

Specified by:
createEdgeCell in interface SketchAdapter.CellFactory
Parameters:
jGraphTEdge - The JGraphT edge to make the edge cell from
Returns:
The created edge

createVertexCell

public org.jgraph.graph.DefaultGraphCell createVertexCell(java.lang.Object jGraphTVertex)
Creates a vertex cell

Specified by:
createVertexCell in interface SketchAdapter.CellFactory
Parameters:
jGraphTVertex - The JGraphT vertex to make the vertex from
Returns:
The created vertex