|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.swri.swiftvis.filters.AbstractMultipleSourceFilter
public abstract class AbstractMultipleSourceFilter
This is an abstract class that can help people who are creating new filters that can have multiple inputs into them.
| Field Summary | |
|---|---|
protected java.util.ArrayList<DataElement> |
dataVect
|
protected java.util.ArrayList<DataSource> |
inputVector
|
protected javax.swing.JTabbedPane |
propPanel
|
protected java.util.ArrayList<DataSink> |
sinkVector
|
| Constructor Summary | |
|---|---|
protected |
AbstractMultipleSourceFilter()
|
protected |
AbstractMultipleSourceFilter(AbstractMultipleSourceFilter c,
java.util.List<GraphElement> l)
This constructor is used by the copy method of subclasses. |
| Method Summary | |
|---|---|
protected void |
abstractRedoAllElements()
|
void |
addInput(DataSource input)
|
void |
addOutput(DataSink sink)
|
void |
clearData()
This method does what the name implies, it clears out data vectors. |
protected abstract boolean |
doingInThreads()
Method implemented to inform the AbstractFilter whether the Filter is handling threading threading or if if the AbstractFilter should put the work into the ThreadHandler itself. |
void |
drawNode(java.awt.Graphics2D g)
|
java.awt.Rectangle |
getBounds()
|
DataElement |
getElement(int i)
Returns the specified data element for this source. |
int |
getNumElements()
Returns the number of data elements that this source has in it. |
int |
getNumOutputs()
|
int |
getNumParameters()
|
int |
getNumSources()
|
int |
getNumValues()
|
DataSink |
getOutput(int which)
|
protected OutputInfoPanel |
getOutputInfoPanel()
|
java.awt.Paint |
getPaint()
|
javax.swing.JComponent |
getPropertiesPanel()
|
DataSource |
getSource(int which)
|
protected SourceInfoPanel |
getSourceInfoPanel()
|
protected void |
localRedo()
|
void |
moveUpInput(int index)
|
void |
redo()
|
protected abstract void |
redoAllElements()
This method is intended to reprocess all the input elements to redo the output. |
void |
relink(java.util.Hashtable<GraphElement,GraphElement> linkHash)
|
void |
removeInput(DataSource input)
|
void |
removeOutput(DataSink sink)
|
protected abstract void |
setupSpecificPanelProperties()
This method should add any tabbed panes to the propPanel that are specific to the given filter. |
void |
sourceAltered(DataSource source)
|
java.lang.String |
toString()
|
void |
translate(int dx,
int dy)
|
boolean |
validInput(DataSource ds)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.swri.swiftvis.DataSource |
|---|
getParameterDescription, getValueDescription |
| Methods inherited from interface edu.swri.swiftvis.GraphElement |
|---|
copy, getDescription |
| Methods inherited from interface edu.swri.swiftvis.GraphElement |
|---|
copy, getDescription |
| Field Detail |
|---|
protected java.util.ArrayList<DataElement> dataVect
protected java.util.ArrayList<DataSource> inputVector
protected java.util.ArrayList<DataSink> sinkVector
protected transient javax.swing.JTabbedPane propPanel
| Constructor Detail |
|---|
protected AbstractMultipleSourceFilter()
protected AbstractMultipleSourceFilter(AbstractMultipleSourceFilter c,
java.util.List<GraphElement> l)
c - The filter we are copying.l - A list of other elements being copied. Only links to these should go through.| Method Detail |
|---|
public boolean validInput(DataSource ds)
validInput in interface DataSinkpublic void addInput(DataSource input)
addInput in interface DataSinkpublic void removeInput(DataSource input)
removeInput in interface DataSinkpublic void moveUpInput(int index)
moveUpInput in interface DataSinkpublic DataSource getSource(int which)
getSource in interface DataSinkpublic int getNumSources()
getNumSources in interface DataSinkpublic void sourceAltered(DataSource source)
sourceAltered in interface DataSinkpublic void addOutput(DataSink sink)
addOutput in interface DataSourcepublic void removeOutput(DataSink sink)
removeOutput in interface DataSourcepublic int getNumOutputs()
getNumOutputs in interface DataSourcepublic DataSink getOutput(int which)
getOutput in interface DataSourcepublic java.awt.Rectangle getBounds()
getBounds in interface GraphElement
public void translate(int dx,
int dy)
translate in interface GraphElementpublic void clearData()
GraphElement
clearData in interface GraphElementpublic java.awt.Paint getPaint()
public void drawNode(java.awt.Graphics2D g)
drawNode in interface GraphElementpublic int getNumParameters()
getNumParameters in interface DataSourcepublic int getNumValues()
getNumValues in interface DataSourcepublic DataElement getElement(int i)
DataSource
getElement in interface DataSourcei - Which data element to return. Should be between 0 and getNumElements()-1.
public int getNumElements()
getNumElements in interface DataSourcepublic javax.swing.JComponent getPropertiesPanel()
getPropertiesPanel in interface GraphElementpublic void relink(java.util.Hashtable<GraphElement,GraphElement> linkHash)
relink in interface GraphElementpublic void redo()
redo in interface GraphElementpublic java.lang.String toString()
toString in class java.lang.Objectprotected void abstractRedoAllElements()
protected void localRedo()
protected SourceInfoPanel getSourceInfoPanel()
protected OutputInfoPanel getOutputInfoPanel()
protected abstract void redoAllElements()
protected abstract void setupSpecificPanelProperties()
protected abstract boolean doingInThreads()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||