edu.jhu.ece.iacl.jist.pipeline.graph
Class PipeCellViewFactory

java.lang.Object
  extended by DefaultCellViewFactory
      extended by edu.jhu.ece.iacl.jist.pipeline.graph.PipeCellViewFactory

public class PipeCellViewFactory
extends DefaultCellViewFactory

Factory to create graph cells for different module types.

Author:
Blake Lucas (bclucas@jhu.edu)

Field Summary
protected  PipeJGraph graph
          The graph.
static java.lang.String PORT_CLASS_KEY
          The Constant PORT_CLASS_KEY.
static java.lang.String VIEW_CLASS_KEY
          The Constant VIEW_CLASS_KEY.
 
Constructor Summary
PipeCellViewFactory(PipeJGraph graph)
          Instantiates a new pipe cell view factory.
 
Method Summary
protected  PipeEdgeView createEdgeView(java.lang.Object cell)
           
protected  PortView createPortView(java.lang.Object p)
          Create port view.
protected  VertexView createVertexView(java.lang.Object v)
          Create cell view.
static void setPortClass(java.util.Map map, java.lang.String viewClass)
          Sets the port class.
static void setViewClass(java.util.Map map, java.lang.String viewClass)
          Sets the view class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VIEW_CLASS_KEY

public static final java.lang.String VIEW_CLASS_KEY
The Constant VIEW_CLASS_KEY.

See Also:
Constant Field Values

PORT_CLASS_KEY

public static final java.lang.String PORT_CLASS_KEY
The Constant PORT_CLASS_KEY.

See Also:
Constant Field Values

graph

protected PipeJGraph graph
The graph.

Constructor Detail

PipeCellViewFactory

public PipeCellViewFactory(PipeJGraph graph)
Instantiates a new pipe cell view factory.

Parameters:
graph - the graph
Method Detail

setPortClass

public static final void setPortClass(java.util.Map map,
                                      java.lang.String viewClass)
Sets the port class.

Parameters:
map - the map
viewClass - the view class

setViewClass

public static final void setViewClass(java.util.Map map,
                                      java.lang.String viewClass)
Sets the view class.

Parameters:
map - the map
viewClass - the view class

createEdgeView

protected PipeEdgeView createEdgeView(java.lang.Object cell)

createPortView

protected PortView createPortView(java.lang.Object p)
Create port view.

Parameters:
p - the p
Returns:
the port view

createVertexView

protected VertexView createVertexView(java.lang.Object v)
Create cell view.

Parameters:
v - the v
Returns:
the vertex view