org.das2.graph
Class StippledTableRenderer

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

public class StippledTableRenderer
extends Renderer


Nested Class Summary
protected  class StippledTableRenderer.RebinListener
           
 
Field Summary
 
Fields inherited from class org.das2.graph.Renderer
ds, lastException, logger, propertyChangeSupport, renderException
 
Constructor Summary
StippledTableRenderer(DasPlot parent, DataSetDescriptor dsd)
          Deprecated. use {link #SpectrogramRenderer(org.das2.dataset.DataSetDescriptor, org.das2.graph.DasColorBar)}
StippledTableRenderer(DataSetDescriptor dsd)
           
 
Method Summary
 org.w3c.dom.Element getDOMElement(org.w3c.dom.Document document)
           
protected  void installRenderer()
           
 boolean isSliceRebinnedData()
          Getter for property sliceRebinnedData.
static SpectrogramRenderer processSpectrogramElement(org.w3c.dom.Element element, DasPlot parent, FormBase form)
           
 void render(java.awt.Graphics g, DasAxis xAxis, DasAxis yAxis, ProgressMonitor mon)
          Render is called whenever the image needs to be refreshed or the content has changed.
 void setSliceRebinnedData(boolean sliceRebinnedData)
          Setter for property sliceRebinnedData.
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

StippledTableRenderer

public StippledTableRenderer(DataSetDescriptor dsd)

StippledTableRenderer

public StippledTableRenderer(DasPlot parent,
                             DataSetDescriptor dsd)
Deprecated. use {link #SpectrogramRenderer(org.das2.dataset.DataSetDescriptor, org.das2.graph.DasColorBar)}

Creates a new instance of SpectrogramRenderer

Method Detail

render

public void render(java.awt.Graphics g,
                   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

installRenderer

protected void installRenderer()
Overrides:
installRenderer in class Renderer

uninstallRenderer

protected void uninstallRenderer()
Overrides:
uninstallRenderer in class Renderer

processSpectrogramElement

public static SpectrogramRenderer processSpectrogramElement(org.w3c.dom.Element element,
                                                            DasPlot parent,
                                                            FormBase form)
                                                     throws DasPropertyException,
                                                            DasNameException,
                                                            java.text.ParseException
Throws:
DasPropertyException
DasNameException
java.text.ParseException

getDOMElement

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

isSliceRebinnedData

public boolean isSliceRebinnedData()
Getter for property sliceRebinnedData.

Returns:
Value of property sliceRebinnedData.

setSliceRebinnedData

public void setSliceRebinnedData(boolean sliceRebinnedData)
Setter for property sliceRebinnedData.

Parameters:
sliceRebinnedData - New value of property sliceRebinnedData.