org.das2.graph
Class EventsRenderer
java.lang.Object
org.das2.graph.Renderer
org.das2.graph.EventsRenderer
- All Implemented Interfaces:
- Editable, DataSetConsumer
public class EventsRenderer
- extends Renderer
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 |
DEFAULT_TEXT_SPECIFIER
public static final EventsRenderer.TextSpecifier DEFAULT_TEXT_SPECIFIER
EventsRenderer
public EventsRenderer(DataSetDescriptor dsd)
EventsRenderer
public EventsRenderer()
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.