org.das2.graph
Class EventsRenderer

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

public class EventsRenderer
extends Renderer


Nested Class Summary
static interface EventsRenderer.ColorSpecifier
           
static interface EventsRenderer.TextSpecifier
           
 
Field Summary
static EventsRenderer.TextSpecifier DEFAULT_TEXT_SPECIFIER
           
 
Fields inherited from class org.das2.graph.Renderer
ds, lastException, logger, propertyChangeSupport, renderException
 
Constructor Summary
EventsRenderer()
           
EventsRenderer(DataSetDescriptor dsd)
           
 
Method Summary
 java.awt.Color getColor()
           
 EventsRenderer.ColorSpecifier getColorSpecifier()
           
protected  org.w3c.dom.Element getDOMElement(org.w3c.dom.Document document)
           
 EventsRenderer.TextSpecifier getTextSpecifier()
          Getter for property textSpecifier.
 java.lang.String getWidthPlaneId()
           
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 setColor(java.awt.Color color)
           
 void setColorSpecifier(EventsRenderer.ColorSpecifier spec)
          set this to be an object implementing ColorSpecifier interface, if more than one color is to be used when drawing the bars.
 void setTextSpecifier(EventsRenderer.TextSpecifier textSpecifier)
          Setter for property textSpecifier.
 void setWidthPlaneId(java.lang.String id)
           
protected  void uninstallRenderer()
           
 
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, updatePlotImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TEXT_SPECIFIER

public static final EventsRenderer.TextSpecifier DEFAULT_TEXT_SPECIFIER
Constructor Detail

EventsRenderer

public EventsRenderer(DataSetDescriptor dsd)

EventsRenderer

public EventsRenderer()
Method Detail

setColorSpecifier

public void setColorSpecifier(EventsRenderer.ColorSpecifier spec)
set this to be an object implementing ColorSpecifier interface, if more than one color is to be used when drawing the bars. Setting this to null will restore the initial behavior of drawing all bars in one color.


getColorSpecifier

public EventsRenderer.ColorSpecifier getColorSpecifier()

getDOMElement

protected org.w3c.dom.Element getDOMElement(org.w3c.dom.Document document)
Overrides:
getDOMElement 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

uninstallRenderer

protected void uninstallRenderer()
Overrides:
uninstallRenderer in class Renderer

getColor

public java.awt.Color getColor()

setColor

public void setColor(java.awt.Color color)

setWidthPlaneId

public void setWidthPlaneId(java.lang.String id)

getWidthPlaneId

public java.lang.String getWidthPlaneId()

getTextSpecifier

public EventsRenderer.TextSpecifier getTextSpecifier()
Getter for property textSpecifier.

Returns:
Value of property textSpecifier.

setTextSpecifier

public void setTextSpecifier(EventsRenderer.TextSpecifier textSpecifier)
Setter for property textSpecifier.

Parameters:
textSpecifier - New value of property textSpecifier.