org.das2.graph
Class ImageVectorDataSetRenderer

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

public class ImageVectorDataSetRenderer
extends Renderer


Field Summary
 
Fields inherited from class org.das2.graph.Renderer
ds, lastException, logger, propertyChangeSupport, renderException
 
Constructor Summary
ImageVectorDataSetRenderer(DataSetDescriptor dsd)
          Creates a new instance of LotsaPointsRenderer
 
Method Summary
 boolean acceptContext(int x, int y)
          Returns true if the render thinks it can provide the context for a point.
 int getSaturationHitCount()
           
 boolean isPrint300dpi()
          Getter for property draw300dpi.
 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 setPrint300dpi(boolean print300dpi)
          Setter for property draw300dpi.
 void setSaturationHitCount(int d)
           
 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
addPropertyChangeListener, addPropertyChangeListener, getAffineTransform, getConsumedDataSet, getDataLoader, getDataSet, getDataSetDescriptor, getDataSetID, getDOMElement, getLastException, getParent, installRenderer, invalidateParentCacheImage, isActive, isDumpDataSet, isOverloading, refresh, refreshImage, removePropertyChangeListener, removePropertyChangeListener, renderException, setActive, setDataSet, setDataSetDescriptor, setDataSetID, setDataSetLoader, setDumpDataSet, setException, setLastException, setOverloading, uninstallRenderer, update, updateImmediately
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageVectorDataSetRenderer

public ImageVectorDataSetRenderer(DataSetDescriptor dsd)
Creates a new instance of LotsaPointsRenderer

Method Detail

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

setSaturationHitCount

public void setSaturationHitCount(int d)

getSaturationHitCount

public int getSaturationHitCount()

acceptContext

public boolean acceptContext(int x,
                             int y)
Description copied from class: Renderer
Returns true if the render thinks it can provide the context for a point. That is, the renderer affected that point, or nearby points. For example, this is used currently to provide a way for the operator to click on a plot and directly edit the renderer who drew the pixel.

Overrides:
acceptContext in class Renderer
Parameters:
x - the x coordinate in the canvas coordinate system.
y - the y coordinate in the canvas coordinate system.

isPrint300dpi

public boolean isPrint300dpi()
Getter for property draw300dpi.

Returns:
Value of property draw300dpi.

setPrint300dpi

public void setPrint300dpi(boolean print300dpi)
Setter for property draw300dpi.

Parameters:
print300dpi - New value of property draw300dpi.