Graph Common

pl.psnc.graph.factory
Class GraphCellFactory

java.lang.Object
  extended by pl.psnc.graph.factory.GraphCellFactory

public class GraphCellFactory
extends java.lang.Object

GraphCellFactory class - abstract factory class for graph nodes creation.

Author:
Dominik Stoklosa (~osa~)
Email address
osa@man.poznan.pl

Constructor Summary
GraphCellFactory()
           
 
Method Summary
static org.jgraph.graph.DefaultGraphCell createCell(AbstractResourceType type, AbstractResourceValue resourceValue)
          Creates new graph cell
static org.jgraph.graph.DefaultEdge createEdge()
          Creates new graph edge
static org.jgraph.graph.DefaultPort createPort()
          Creates new graph port
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphCellFactory

public GraphCellFactory()
Method Detail

createCell

public static org.jgraph.graph.DefaultGraphCell createCell(AbstractResourceType type,
                                                           AbstractResourceValue resourceValue)
Creates new graph cell

Parameters:
type - specifies type of the cell which will be created.
resourceValue - instance of AbstractResourceValue
Returns:
new instance of DefaultGraphCell

createPort

public static org.jgraph.graph.DefaultPort createPort()
Creates new graph port

Returns:
new instance of DefaultPort

createEdge

public static org.jgraph.graph.DefaultEdge createEdge()
Creates new graph edge

Returns:
new instance of DefaultEdge

Graph Common

Copyright 2008 by VLAB Dominik Stoklosa