|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object DefaultGraphCell edu.jhu.ece.iacl.jist.pipeline.graph.PipeModuleCell
public abstract class PipeModuleCell
Module cell to display on graph.
Field Summary | |
---|---|
protected static java.awt.Dimension |
defaultSize
The Constant defaultSize. |
protected static int |
hspace
The Constant hspace. |
protected PipeModule |
pipe
The pipe. |
protected java.awt.Dimension |
preferredSize
The preferred size. |
Constructor Summary | |
---|---|
PipeModuleCell(java.lang.String name,
PipeModule pipe)
Constructor. |
Method Summary | |
---|---|
protected java.util.Map |
createCellAttributes()
Create cell attributes that are default with all cells. |
protected void |
createPorts()
Create ports for module. |
java.lang.Class |
getModuleClass()
Module class that is stored in this cell. |
PipeModule |
getPipeModule()
Get pipe module that is stored in this cell. |
static java.awt.Dimension |
getPreferredSize(int numInput,
int numOutput)
Get preferred size for module as a function of the number of incoming and outgoing ports. |
static java.awt.Dimension |
getPreferredSize(ParamCollection inputParams,
ParamCollection outputParams)
Get preferred size for module as a function of the input and output parameters. |
void |
setBounds(java.awt.geom.Rectangle2D bounds)
Set the size of this module. |
void |
setLocation(int x,
int y)
Set the location of the module. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.awt.Dimension defaultSize
protected static final int hspace
protected PipeModule pipe
protected java.awt.Dimension preferredSize
Constructor Detail |
---|
public PipeModuleCell(java.lang.String name, PipeModule pipe)
name
- name of modulepipe
- moduleMethod Detail |
---|
public static java.awt.Dimension getPreferredSize(int numInput, int numOutput)
numInput
- number of incoming portsnumOutput
- number of outgoing ports
public static java.awt.Dimension getPreferredSize(ParamCollection inputParams, ParamCollection outputParams)
inputParams
- input parametersoutputParams
- output parameters
protected java.util.Map createCellAttributes()
protected void createPorts()
public java.lang.Class getModuleClass()
public PipeModule getPipeModule()
public void setBounds(java.awt.geom.Rectangle2D bounds)
bounds
- dimensionspublic void setLocation(int x, int y)
x
- X coordinatey
- Y coordinate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |