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

java.lang.Object
  extended by VertexView
      extended by edu.jhu.ece.iacl.jist.pipeline.graph.PipeAlgorithmGroupView

public class PipeAlgorithmGroupView
extends VertexView

Algorithm group cell view.

Author:
Blake Lucas (bclucas@jhu.edu)

Nested Class Summary
static class PipeAlgorithmGroupView.ActivityRenderer
          The Class ActivityRenderer.
 
Field Summary
static PipeAlgorithmGroupView.ActivityRenderer renderer
          The renderer.
 
Constructor Summary
PipeAlgorithmGroupView()
          Default constructor.
 
Method Summary
static int getArcSize(int width, int height)
          getArcSize calculates an appropriate arc for the corners of the rectangle for boundary size cases of width and height.
 PipeModuleCell getCell()
           
 java.awt.geom.Point2D getPerimeterPoint(EdgeView edge, java.awt.geom.Point2D source, java.awt.geom.Point2D p)
          Returns the intersection of the bounding rectangle and the straight line between the source and the specified point p.
 CellViewRenderer getRenderer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

renderer

public static transient PipeAlgorithmGroupView.ActivityRenderer renderer
The renderer.

Constructor Detail

PipeAlgorithmGroupView

public PipeAlgorithmGroupView()
Default constructor.

Method Detail

getArcSize

public static int getArcSize(int width,
                             int height)
getArcSize calculates an appropriate arc for the corners of the rectangle for boundary size cases of width and height.

Parameters:
width - the width
height - the height
Returns:
the arc size

getCell

public PipeModuleCell getCell()

getPerimeterPoint

public java.awt.geom.Point2D getPerimeterPoint(EdgeView edge,
                                               java.awt.geom.Point2D source,
                                               java.awt.geom.Point2D p)
Returns the intersection of the bounding rectangle and the straight line between the source and the specified point p. The specified point is expected not to intersect the bounds.

Parameters:
edge - the edge
source - the source
p - the p
Returns:
the perimeter point

getRenderer

public CellViewRenderer getRenderer()