org.das2.graph
Class CurveRenderer

java.lang.Object
  extended by org.das2.graph.Renderer
      extended by org.das2.graph.CurveRenderer
All Implemented Interfaces:
Editable, DataSetConsumer

public class CurveRenderer
extends Renderer


Field Summary
 
Fields inherited from class org.das2.graph.Renderer
ds, lastException, logger, propertyChangeSupport, renderException
 
Constructor Summary
CurveRenderer(DataSetDescriptor dsd, java.lang.String xplane, java.lang.String yplane)
          The dataset descriptor should return a Vector data set with planes identified by xplane and yplane.
 
Method Summary
protected  org.w3c.dom.Element getDOMElement(org.w3c.dom.Document document)
           
 double getLineWidth()
          Getter for property lineWidth.
 Psym getPsym()
          Getter for property psym.
 PsymConnector getPsymConnector()
           
protected  void installRenderer()
           
 void render(java.awt.Graphics g1, DasAxis xAxis, DasAxis yAxis, ProgressMonitor mon)
          Render is called whenever the image needs to be refreshed or the content has changed.
 void setLineWidth(double lineWidth)
          Setter for property lineWidth.
 void setPsym(Psym psym)
          Setter for property psym.
 void setPsymConnector(PsymConnector p)
           
protected  void uninstallRenderer()
           
 void updatePlotImage(DasAxis xAxis, DasAxis yAxis, ProgressMonitor monitor)
          updatePlotImage is called once the expensive operation of loading the data is completed.
 
Methods inherited from class org.das2.graph.Renderer
acceptContext, addPropertyChangeListener, addPropertyChangeListener, getAffineTransform, getConsumedDataSet, getDataLoader, getDataSet, getDataSetDescriptor, getDataSetID, getLastException, getParent, invalidateParentCacheImage, isActive, isDumpDataSet, isOverloading, refresh, refreshImage, removePropertyChangeListener, removePropertyChangeListener, renderException, setActive, setDataSet, setDataSetDescriptor, setDataSetID, setDataSetLoader, setDumpDataSet, setException, setLastException, setOverloading, update, updateImmediately
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurveRenderer

public CurveRenderer(DataSetDescriptor dsd,
                     java.lang.String xplane,
                     java.lang.String yplane)
The dataset descriptor should return a Vector data set with planes identified by xplane and yplane.

Method Detail

uninstallRenderer

protected void uninstallRenderer()
Overrides:
uninstallRenderer in class Renderer

installRenderer

protected void installRenderer()
Overrides:
installRenderer in class Renderer

render

public void render(java.awt.Graphics g1,
                   DasAxis xAxis,
                   DasAxis yAxis,
                   ProgressMonitor mon)
Description copied from class: Renderer
Render is called whenever the image needs to be refreshed or the content has changed. This operation should occur with an animation-interactive time scale, and an image should be cached when this is not possible. The graphics object will have its origin at the upper-left corner of the screen.

Specified by:
render in class Renderer

updatePlotImage

public void updatePlotImage(DasAxis xAxis,
                            DasAxis yAxis,
                            ProgressMonitor monitor)
                     throws DasException
Description copied from class: Renderer
updatePlotImage is called once the expensive operation of loading the data is completed. This operation should occur on an interactive time scale. This is an opportunity to create a cache image of the data with the current axis state, when the render operation cannot operate on an animation interactive time scale. Codes can no longer assume that the xAxis sent to render will be in the same state as it was when updatePlotImage was called, so use the getAffineTransform method. Only Renderer should call this method!

Overrides:
updatePlotImage in class Renderer
Throws:
DasException

getLineWidth

public double getLineWidth()
Getter for property lineWidth.

Returns:
Value of property lineWidth.

setLineWidth

public void setLineWidth(double lineWidth)
Setter for property lineWidth.

Parameters:
lineWidth - New value of property lineWidth.

getDOMElement

protected org.w3c.dom.Element getDOMElement(org.w3c.dom.Document document)
Overrides:
getDOMElement in class Renderer

getPsymConnector

public PsymConnector getPsymConnector()

setPsymConnector

public void setPsymConnector(PsymConnector p)

getPsym

public Psym getPsym()
Getter for property psym.

Returns:
Value of property psym.

setPsym

public void setPsym(Psym psym)
Setter for property psym.

Parameters:
psym - New value of property psym.