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

java.lang.Object
  extended by PortView
      extended by edu.jhu.ece.iacl.jist.pipeline.graph.PipePortView
Direct Known Subclasses:
PortChildView, PortInputView, PortOutputView, PortParentView

public abstract class PipePortView
extends PortView

Cell view for port.

Author:
Blake Lucas (bclucas@jhu.edu)

Nested Class Summary
 class PipePortView.ActivityRenderer
          The Class ActivityRenderer.
 
Field Summary
protected static java.awt.Color compatibleColor
          The compatible color.
protected static java.awt.Color connectedColor
          The connected color.
protected  PipeJGraph graph
          The graph.
protected  java.awt.Dimension labelSize
          The label size.
static int portSize
          The Constant portSize.
protected static java.awt.Color validColor
          The valid color.
 
Constructor Summary
PipePortView()
          Default constructor.
PipePortView(java.lang.Object cell)
          Constructor.
 
Method Summary
protected  java.awt.Dimension drawPortLabel(java.awt.Graphics2D g)
          Draw port label.
abstract  CellViewRenderer getRenderer()
           
 void setGraph(PipeJGraph graph)
          Set graph that contains this port.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

portSize

public static final int portSize
The Constant portSize.

See Also:
Constant Field Values

compatibleColor

protected static java.awt.Color compatibleColor
The compatible color.


connectedColor

protected static java.awt.Color connectedColor
The connected color.


validColor

protected static java.awt.Color validColor
The valid color.


labelSize

protected java.awt.Dimension labelSize
The label size.


graph

protected PipeJGraph graph
The graph.

Constructor Detail

PipePortView

public PipePortView()
Default constructor.


PipePortView

public PipePortView(java.lang.Object cell)
Constructor.

Parameters:
cell - module cell that owns this port
Method Detail

drawPortLabel

protected java.awt.Dimension drawPortLabel(java.awt.Graphics2D g)
Draw port label.

Parameters:
g - the g
Returns:
the dimension

getRenderer

public abstract CellViewRenderer getRenderer()

setGraph

public void setGraph(PipeJGraph graph)
Set graph that contains this port.

Parameters:
graph - the graph