edu.swri.swiftvis.plot
Class Plot

java.lang.Object
  extended by edu.swri.swiftvis.plot.Plot
All Implemented Interfaces:
DataSink, GraphElement, java.io.Serializable

public class Plot
extends java.lang.Object
implements DataSink

See Also:
Serialized Form

Field Summary
private  java.awt.Rectangle bounds
           
private  GraphPanel graphPanel
           
private  java.util.Vector<DataSource> inputVector
           
private  PlotFrame plotFrame
           
private  javax.swing.JComponent poPropPanel
           
private  javax.swing.JTabbedPane propPanel
           
private static long serialVersionUID
           
private  SourceInfoPanel sip
           
private  PlotSpec spec
           
private  javax.swing.JTree tree
           
 
Constructor Summary
Plot(GraphPanel gp)
           
Plot(Plot c, java.util.List<GraphElement> l)
           
 
Method Summary
 void addInput(DataSource input)
           
 void clearData()
          This method does what the name implies, it clears out data vectors.
 Plot copy(java.util.List<GraphElement> l)
           
 void fireRedraw()
           
 java.awt.Rectangle getBounds()
           
 java.lang.String getDescription()
           
 GraphPanel getGraphPanel()
           
 int getNumSources()
           
 java.awt.Paint getPaint()
           
 javax.swing.JComponent getPropertiesPanel()
           
 DataSource getSource(int which)
           
 PlotSurface getSurface()
           
 void relink(java.util.Hashtable<GraphElement,GraphElement> linkHash)
           
 void removeInput(DataSource input)
           
 void setBounds(java.awt.Rectangle b)
           
 void setGraphPanel(GraphPanel gp)
           
private  void showPlot()
           
 void sourceAltered(DataSource source)
           
 void treeAltered(PlotObject node)
          This method will be called when something alters the tree of elements in the plot.
private  void treeSelectionChanged()
           
 boolean validInput(DataSource ds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bounds

private java.awt.Rectangle bounds

inputVector

private java.util.Vector<DataSource> inputVector

spec

private PlotSpec spec

graphPanel

private transient GraphPanel graphPanel

plotFrame

private transient PlotFrame plotFrame

propPanel

private transient javax.swing.JTabbedPane propPanel

poPropPanel

private transient javax.swing.JComponent poPropPanel

tree

private transient javax.swing.JTree tree

sip

private transient SourceInfoPanel sip

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

Plot

public Plot(GraphPanel gp)

Plot

public Plot(Plot c,
            java.util.List<GraphElement> l)
Method Detail

validInput

public boolean validInput(DataSource ds)
Specified by:
validInput in interface DataSink

addInput

public void addInput(DataSource input)
Specified by:
addInput in interface DataSink

removeInput

public void removeInput(DataSource input)
Specified by:
removeInput in interface DataSink

getSource

public DataSource getSource(int which)
Specified by:
getSource in interface DataSink

getNumSources

public int getNumSources()
Specified by:
getNumSources in interface DataSink

sourceAltered

public void sourceAltered(DataSource source)
Specified by:
sourceAltered in interface DataSink

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface GraphElement

getBounds

public java.awt.Rectangle getBounds()
Specified by:
getBounds in interface GraphElement

setBounds

public void setBounds(java.awt.Rectangle b)
Specified by:
setBounds in interface GraphElement

clearData

public void clearData()
Description copied from interface: GraphElement
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.

Specified by:
clearData in interface GraphElement

getPaint

public java.awt.Paint getPaint()
Specified by:
getPaint in interface GraphElement

getPropertiesPanel

public javax.swing.JComponent getPropertiesPanel()
Specified by:
getPropertiesPanel in interface GraphElement

treeAltered

public void treeAltered(PlotObject node)
This method will be called when something alters the tree of elements in the plot.


getSurface

public PlotSurface getSurface()

fireRedraw

public void fireRedraw()

copy

public Plot copy(java.util.List<GraphElement> l)
Specified by:
copy in interface GraphElement

relink

public void relink(java.util.Hashtable<GraphElement,GraphElement> linkHash)
Specified by:
relink in interface GraphElement

getGraphPanel

public GraphPanel getGraphPanel()

setGraphPanel

public void setGraphPanel(GraphPanel gp)

showPlot

private void showPlot()

treeSelectionChanged

private void treeSelectionChanged()