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 |
bottomDecorator, colorBar, control, CONTROL_KEY_COLOR, CONTROL_KEY_COLOR_TABLE, CONTROL_KEY_DRAW_ERROR, CONTROL_KEY_FILL_COLOR, CONTROL_KEY_FILL_DIRECTION, CONTROL_KEY_FILL_TEXTURE, CONTROL_KEY_FONT_SIZE, CONTROL_KEY_LINE_STYLE, CONTROL_KEY_LINE_THICK, CONTROL_KEY_MODULO_X, CONTROL_KEY_MODULO_Y, CONTROL_KEY_REFERENCE, CONTROL_KEY_SPECIAL_COLORS, 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_BOTTOMDECORATOR, PROP_COLORBAR, PROP_CONTROL, PROP_DRAWLEGENDLABEL, PROP_ID, PROP_LEGENDLABEL, PROP_RECORDFILE, 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.Graphics2D g,
DasAxis xAxis,
DasAxis yAxis)
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, addToStats, decodeDatum, decodeFillStyle, decodePlotSymbolConnectorControl, decodePlotSymbolControl, drawListIcon, encodeBooleanControl, encodeColorControl, encodeDatum, encodeFillStyle, encodePlotSymbolConnectorControl, encodePlotSymbolControl, formatControl, getAffineTransform, getBooleanControl, getBottomDecorator, getColorBar, getColorControl, getConsumedDataSet, getControl, getDataLoader, getDataSet, getDataSetDescriptor, getDataSetID, getDatumControl, getDoubleArrayControl, getDoubleControl, getId, getIntegerControl, getInternalDataSet, getLastException, getLegendLabel, getParent, getRenderCount, getStatsFile, getTopDecorator, getUpdateCount, getXmemento, getYmemento, hasControl, incrementRenderCount, incrementUpdateCount, invalidateParentCacheImage, isActive, isDrawLegendLabel, isDumpDataSet, isTableDataSet, parseControl, parseLayoutString, postException, postMessage, postMessage, refresh, refreshImage, removePropertyChangeListener, removePropertyChangeListener, renderException, resetCounters, setActive, setBottomDecorator, setColorBar, setDataSet, setDataSetDescriptor, setDataSetID, setDataSetLoader, setDrawLegendLabel, setDumpDataSet, setException, setId, setLastException, setLegendLabel, setParent, setStatsFile, setTopDecorator, setUpFont, setUpFont, update, updateCacheImage, updateImmediately
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConsumedDataSet
drawListIcon
public StackedHistogramRenderer(DasAxis zAxis)
public StackedHistogramRenderer(DasPlot parent, DataSetDescriptor dsd, DasAxis zAxis, DasAxis yAxis)
public void setControl(java.lang.String s)
Renderer
setControl
in class Renderer
s
- the controletc
public java.lang.String getControl()
Renderer
getControl
in class Renderer
public void render(java.awt.Graphics2D g, DasAxis xAxis, DasAxis yAxis)
Renderer
protected void installRenderer()
installRenderer
in class Renderer
protected void uninstallRenderer()
uninstallRenderer
in class Renderer
public void setZAxis(DasAxis zAxis)
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener
public 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
Renderer
updatePlotImage
in class Renderer
xAxis
- 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).DasException
public DasAxis getZAxis()
getZAxis
in interface TableDataSetConsumer
public 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()
Displayable
String
that will help the user
identify this item when choosing from a list.getListLabel
in interface Displayable
getListLabel
in class Renderer
public javax.swing.Icon getListIcon()
Displayable
null
if there
is no icon available, or a roughly 16x16 pixel icon.getListIcon
in interface Displayable
getListIcon
in class Renderer