|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.swri.swiftvis.filters.AbstractSingleSourceFilter
public abstract class AbstractSingleSourceFilter
This abstract class is intended to help people extend SWIFTVis. Most filters that can only take data from a single source should extend this class instead of directly implementing the Filter interface.
| Field Summary | |
|---|---|
protected java.awt.Rectangle |
bounds
|
protected boolean |
changed
|
protected java.util.Vector<DataElement> |
dataVect
|
protected DataSource |
input
|
private OutputInfoPanel |
oip
|
protected javax.swing.JTabbedPane |
propPanel
|
protected java.util.Vector<DataSink> |
sinkVector
|
private SourceInfoPanel |
sip
|
| Constructor Summary | |
|---|---|
protected |
AbstractSingleSourceFilter()
|
protected |
AbstractSingleSourceFilter(AbstractSingleSourceFilter c,
java.util.List<GraphElement> l)
This constructor is used by the copy method of subclasses. |
| Method Summary | |
|---|---|
protected void |
abstractRedoAllElements()
|
void |
addInput(DataSource in)
|
void |
addOutput(DataSink sink)
|
void |
clearData()
This method does what the name implies, it clears out data vectors. |
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 |
getNumSources()
|
DataSink |
getOutput(int which)
|
protected OutputInfoPanel |
getOutputInfoPanel()
|
java.awt.Paint |
getPaint()
|
javax.swing.JComponent |
getPropertiesPanel()
|
DataSource |
getSource(int which)
|
protected SourceInfoPanel |
getSourceInfoPanel()
|
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 in)
|
void |
removeOutput(DataSink sink)
|
void |
setBounds(java.awt.Rectangle b)
|
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)
|
boolean |
validInput(DataSource ds)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface edu.swri.swiftvis.DataSource |
|---|
getNumParameters, getNumValues, getParameterDescription, getParameterName, getValueDescription, useParameterNameString |
| 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.Vector<DataElement> dataVect
protected DataSource input
protected java.util.Vector<DataSink> sinkVector
protected java.awt.Rectangle bounds
protected transient boolean changed
protected transient javax.swing.JTabbedPane propPanel
private transient SourceInfoPanel sip
private transient OutputInfoPanel oip
| Constructor Detail |
|---|
protected AbstractSingleSourceFilter()
protected AbstractSingleSourceFilter(AbstractSingleSourceFilter 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 in)
addInput in interface DataSinkpublic void removeInput(DataSource in)
removeInput 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 GraphElementpublic void setBounds(java.awt.Rectangle b)
setBounds in interface GraphElementpublic void clearData()
GraphElement
clearData in interface GraphElementpublic java.awt.Paint getPaint()
getPaint in interface GraphElementpublic 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 GraphElementprotected void abstractRedoAllElements()
protected SourceInfoPanel getSourceInfoPanel()
protected OutputInfoPanel getOutputInfoPanel()
protected abstract void redoAllElements()
protected abstract void setupSpecificPanelProperties()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||