org.das2.graph
Class DataLoader

java.lang.Object
  extended by org.das2.graph.DataLoader
Direct Known Subclasses:
MendelbrotDataLoader, XAxisDataLoader

public abstract class DataLoader
extends java.lang.Object


Nested Class Summary
 class DataLoader.Request
           
 
Constructor Summary
protected DataLoader(Renderer renderer)
           
 
Method Summary
protected  ProgressMonitor getMonitor(java.lang.String description)
           
protected  RebinDescriptor getRebinDescriptor(DasAxis axis)
          convenient method for getting a rebindescriptor with one bin per pixel.
protected  Renderer getRenderer()
           
 boolean isActive()
           
 boolean isFullResolution()
           
 boolean isReloadDataSet()
           
 void setActive(boolean active)
           
 void setFullResolution(boolean b)
           
 void setReloadDataSet(boolean reloadDataSet)
           
abstract  void update()
          an update message sent by the Renderer to indicate that something might have changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataLoader

protected DataLoader(Renderer renderer)
Method Detail

getMonitor

protected ProgressMonitor getMonitor(java.lang.String description)

update

public abstract void update()
an update message sent by the Renderer to indicate that something might have changed. Presently, the axis will send an update message to the plot, the plot will send an update message to the renderer, who will send an update message to the loader. THIS WILL PROBABLY CHANGE.


isFullResolution

public boolean isFullResolution()

setFullResolution

public void setFullResolution(boolean b)

setReloadDataSet

public void setReloadDataSet(boolean reloadDataSet)

isReloadDataSet

public boolean isReloadDataSet()

getRenderer

protected Renderer getRenderer()

getRebinDescriptor

protected RebinDescriptor getRebinDescriptor(DasAxis axis)
convenient method for getting a rebindescriptor with one bin per pixel. -1 is returned by the rebinDescriptor when no bin holds the point.


isActive

public boolean isActive()

setActive

public void setActive(boolean active)