public class StackedHistogramRenderer extends Renderer implements TableDataSetConsumer, java.beans.PropertyChangeListener, Displayable
| Modifier and Type | Class and Description |
|---|---|
static class |
StackedHistogramRenderer.PeaksIndicator |
protected class |
StackedHistogramRenderer.RebinListener |
static class |
StackedHistogramRenderer.Rebinner |
colorBar, control, CONTROL_KEY_COLOR, CONTROL_KEY_COLOR_TABLE, CONTROL_KEY_DRAW_ERROR, CONTROL_KEY_FILL_COLOR, CONTROL_KEY_FILL_DIRECTION, CONTROL_KEY_FONT_SIZE, CONTROL_KEY_LINE_STYLE, CONTROL_KEY_LINE_THICK, CONTROL_KEY_REFERENCE, CONTROL_KEY_SYMBOL, CONTROL_KEY_SYMBOL_SIZE, drawLegendLabel, ds, firstValidIndex, id, lastException, lastValidIndex, legendLabel, logger, MARKER_DATASET, MARKER_X_AXIS_RANGE, MARKER_Y_AXIS_RANGE, needWorkMarkers, PROP_ACTIVE, PROP_COLORBAR, PROP_CONTROL, PROP_DRAWLEGENDLABEL, PROP_ID, PROP_LEGENDLABEL, PROP_TOPDECORATOR, propertyChangeSupport, renderException, topDecorator| Constructor and Description |
|---|
StackedHistogramRenderer(DasAxis zAxis) |
StackedHistogramRenderer(DasPlot parent,
DataSetDescriptor dsd,
DasAxis zAxis,
DasAxis yAxis) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getControl()
get the string which summarizes the state of the renderer.
|
javax.swing.Icon |
getListIcon()
An icon can be provided that will be shown in a list
along with the textual description of the element.
|
java.lang.String |
getListLabel()
return a
String that will help the user
identify this item when choosing from a list. |
StackedHistogramRenderer.PeaksIndicator |
getPeaksIndicator()
Getter for property peaksIndicator.
|
DasAxis |
getZAxis() |
protected void |
installRenderer() |
boolean |
isSliceRebinnedData()
Getter for property sliceRebinnedData.
|
void |
propertyChange(java.beans.PropertyChangeEvent e) |
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 |
setControl(java.lang.String s)
set the control string which contains a number of properties.
|
void |
setPeaksIndicator(StackedHistogramRenderer.PeaksIndicator peaksIndicator)
Setter for property peaksIndicator.
|
void |
setSliceRebinnedData(boolean sliceRebinnedData)
Setter for property sliceRebinnedData.
|
void |
setYAxis(DasAxis yAxis)
This sets the yAxis and adds itself to the axis property change listener.
|
void |
setZAxis(DasAxis zAxis) |
void |
setZTitle(java.lang.String title) |
protected void |
uninstallRenderer() |
void |
updatePlotImage(DasAxis xAxis,
DasAxis yAxis_1,
ProgressMonitor monitor)
updatePlotImage is called once the expensive operation of loading
the data is completed.
|
acceptContext, acceptsDataSet, addPropertyChangeListener, addPropertyChangeListener, decodePlotSymbolControl, drawListIcon, encodeBooleanControl, encodeColorControl, encodePlotSymbolControl, formatControl, getAffineTransform, getBooleanControl, getColorBar, getColorControl, getConsumedDataSet, getControl, getDataLoader, getDataSet, getDataSetDescriptor, getDataSetID, getDatumControl, getDoubleArrayControl, getDoubleControl, getId, getIntegerControl, getLastException, getLegendLabel, getParent, getRenderCount, getTopDecorator, getUpdateCount, getXmemento, getYmemento, hasControl, incrementRenderCount, incrementUpdateCount, invalidateParentCacheImage, isActive, isDrawLegendLabel, isDumpDataSet, isTableDataSet, parseControl, refresh, refreshImage, removePropertyChangeListener, removePropertyChangeListener, renderException, resetCounters, setActive, setColorBar, setDataSet, setDataSetDescriptor, setDataSetID, setDataSetLoader, setDrawLegendLabel, setDumpDataSet, setException, setId, setLastException, setLegendLabel, setParent, setTopDecorator, setUpFont, setUpFont, update, updateCacheImage, updateImmediatelyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConsumedDataSetdrawListIconpublic StackedHistogramRenderer(DasAxis zAxis)
public StackedHistogramRenderer(DasPlot parent, DataSetDescriptor dsd, DasAxis zAxis, DasAxis yAxis)
public void setControl(java.lang.String s)
RenderersetControl in class Renderers - the controletcpublic java.lang.String getControl()
RenderergetControl in class Rendererpublic void render(java.awt.Graphics g,
DasAxis xAxis,
DasAxis yAxis,
ProgressMonitor mon)
Rendererrender in class Rendererg - the graphics context in the canvas reference frame.xAxis - the axis relating x data coordinates to horizontal pixel coordinatesyAxis - the axis relating y data coordinates to horizontal pixel coordinatesmon - a monitor for the operation. Note the render operation should
be fast (<300ms).protected void installRenderer()
installRenderer in class Rendererprotected void uninstallRenderer()
uninstallRenderer in class Rendererpublic void setZAxis(DasAxis zAxis)
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange in interface java.beans.PropertyChangeListenerpublic void setYAxis(DasAxis yAxis)
yAxis - the new yAxisjava.lang.IllegalArgumentException - if the yAxis is not an instanceof DasLabelAxispublic void updatePlotImage(DasAxis xAxis, DasAxis yAxis_1, ProgressMonitor monitor) throws DasException
RendererupdatePlotImage in class RendererxAxis - the axis relating x data coordinates to horizontal pixel coordinatesyAxis_1 - the axis relating y data coordinates to horizontal pixel coordinatesmonitor - a monitor for the operation. Note the updatePlotImage operation should
be fast (<1000ms).DasExceptionpublic DasAxis getZAxis()
getZAxis in interface TableDataSetConsumerpublic void setZTitle(java.lang.String title)
public StackedHistogramRenderer.PeaksIndicator getPeaksIndicator()
public void setPeaksIndicator(StackedHistogramRenderer.PeaksIndicator peaksIndicator)
peaksIndicator - New value of property peaksIndicator.public boolean isSliceRebinnedData()
public void setSliceRebinnedData(boolean sliceRebinnedData)
sliceRebinnedData - New value of property sliceRebinnedData.public java.lang.String getListLabel()
DisplayableString that will help the user
identify this item when choosing from a list.getListLabel in interface DisplayablegetListLabel in class Rendererpublic javax.swing.Icon getListIcon()
Displayablenull if there
is no icon available, or a roughly 16x16 pixel icon.getListIcon in interface DisplayablegetListIcon in class Renderer