edu.swri.swiftvis
Interface GraphElement
- All Superinterfaces:
- java.io.Serializable
- All Known Subinterfaces:
- DataSink, DataSource, Filter, PlotListener
- All Known Implementing Classes:
- AbstractMultipleSourceFilter, AbstractSingleSourceFilter, AbstractSink, AbstractSource, BinaryPositionData, BinnedFilter, CartAndRadSource, ClusterFilter, ConstantsFilter, CoordConvertFilter, CountRebinFilter, DiscardData, DumpSource, ElementTableEditor, EncounterData, Fixed2DBinnedSource, FunctionFilter, GeneralData, GraphNote, GroupNumberingFilter, InterpolatedSurfaceFilter, KeySelectionFilter, LinearFitFilter, LinearFitFilter.LinearFitSequenceFilter, MassFilter, MercurySource, MergeFilter, MovieFilter, Particle2DBinnedSource, Plot, RegionSelectionFilter, RotationFilter, SchemeFilter, SchemeSource, ScriptFilter, ScriptSource, SelectFilter, SequenceSource, SliceSelectionFilter, SortFilter, SPHSource, StatSinkListener, SyMBAMassFilter, ThinningFilter, WakePeakFilter
public interface GraphElement
- extends java.io.Serializable
This interface is the common supertype of everything that can be added into
the graph. The main groups of subclasses are datasets, filters, and plots.
The program also has expectations for the constructors for a class. You
need to look at the documentation of the different subtypes of this interface
to find what they expect.
If you want the program to automatically list some description for your element
when they set it up to allow that to be added, you should add a static method
String getTypeDescription().
getDescription
java.lang.String getDescription()
getBounds
java.awt.Rectangle getBounds()
translate
void translate(int dx,
int dy)
drawNode
void drawNode(java.awt.Graphics2D g)
getPropertiesPanel
javax.swing.JComponent getPropertiesPanel()
copy
GraphElement copy(java.util.List<GraphElement> l)
relink
void relink(java.util.Hashtable<GraphElement,GraphElement> linkHash)
redo
void redo()
clearData
void clearData()
- This method does what the name implies, it clears out data vectors.
It is used for saving templates which shouldn't have the data in
them.