public class SpectrogramRenderer extends Renderer implements TableDataSetConsumer, Displayable
| Modifier and Type | Class and Description |
|---|---|
protected class |
SpectrogramRenderer.RebinListener |
static class |
SpectrogramRenderer.RebinnerEnum |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
cadenceCheck |
static java.lang.String |
CONTROL_KEY_REBIN |
static java.lang.String |
PROP_CADENCECHECK |
static java.lang.String |
PROP_REBINNER |
static java.lang.String |
PROP_SPECIALCOLORS |
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, 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 |
|---|
SpectrogramRenderer(DataSetDescriptor dsd,
DasColorBar colorBar) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptContext(int x,
int y)
Returns true if the render will accept the context for a point.
|
protected void |
clearPlotImage() |
QDataSet |
getConsumedDataSet()
return the data for DataSetConsumer, which might be rebinned.
|
java.lang.String |
getControl()
get the string which summarizes the state of the renderer.
|
java.awt.Color |
getFillColor()
Getter for property fillColor.
|
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. |
SpectrogramRenderer.RebinnerEnum |
getRebinner()
Getter for property rebinner.
|
java.lang.String |
getSpecialColors() |
DasAxis |
getZAxis() |
protected void |
installRenderer() |
boolean |
isCadenceCheck() |
boolean |
isPrint300dpi()
Getter for property draw300dpi.
|
boolean |
isSliceRebinnedData()
Getter for property sliceRebinnedData.
|
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.
|
java.awt.Shape |
selectionArea()
return the shape or null.
|
void |
setCadenceCheck(boolean cadenceCheck)
If true, then use a cadence estimate to determine and indicate data gaps.
|
void |
setColorBar(DasColorBar cb)
set a colorbar for the renderer.
|
void |
setControl(java.lang.String s)
set the control string which contains a number of properties.
|
void |
setDataSet(QDataSet ds)
Set the dataset to be plotted.
|
void |
setFillColor(java.awt.Color fillColor)
Setter for property fillColor.
|
void |
setPrint300dpi(boolean print300dpi)
Setter for property draw300dpi.
|
void |
setRebinner(SpectrogramRenderer.RebinnerEnum rebinnerEnum)
Setter for property rebinner.
|
void |
setSliceRebinnedData(boolean sliceRebinnedData)
Setter for property sliceRebinnedData.
|
void |
setSpecialColors(java.lang.String specialColors)
set this to a comma-delineated list of name:value pairs,
|
protected void |
uninstallRenderer() |
void |
updatePlotImage(DasAxis xAxis,
DasAxis yAxis,
ProgressMonitor monitor)
updatePlotImage is called once the expensive operation of loading
the data is completed.
|
acceptsDataSet, addPropertyChangeListener, addPropertyChangeListener, addToStats, decodeDatum, decodeFillStyle, decodePlotSymbolConnectorControl, decodePlotSymbolControl, drawListIcon, encodeBooleanControl, encodeColorControl, encodeDatum, encodeFillStyle, encodePlotSymbolConnectorControl, encodePlotSymbolControl, formatControl, getAffineTransform, getBooleanControl, getBottomDecorator, getColorBar, getColorControl, 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, setDataSetDescriptor, setDataSetID, setDataSetLoader, setDrawLegendLabel, setDumpDataSet, setException, setId, setLastException, setLegendLabel, setParent, setStatsFile, setTopDecorator, setUpFont, setUpFont, update, updateCacheImage, updateImmediatelyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdrawListIconpublic static final java.lang.String CONTROL_KEY_REBIN
public static final java.lang.String PROP_SPECIALCOLORS
public static final java.lang.String PROP_REBINNER
protected boolean cadenceCheck
public static final java.lang.String PROP_CADENCECHECK
public SpectrogramRenderer(DataSetDescriptor dsd, DasColorBar colorBar)
public void setControl(java.lang.String s)
RenderersetControl in class Renderers - the controletcpublic java.lang.String getControl()
RenderergetControl in class Rendererpublic java.lang.String getSpecialColors()
public void setSpecialColors(java.lang.String specialColors)
specialColors - public DasAxis getZAxis()
getZAxis in interface TableDataSetConsumerpublic void setColorBar(DasColorBar cb)
RenderersetColorBar in class Renderercb - a colorbarpublic void render(java.awt.Graphics2D g,
DasAxis xAxis,
DasAxis yAxis)
Rendererpublic void updatePlotImage(DasAxis xAxis, DasAxis yAxis, ProgressMonitor monitor) throws DasException
RendererupdatePlotImage in class RendererxAxis - the axis relating x data coordinates to horizontal pixel coordinatesyAxis - the axis relating y data coordinates to horizontal pixel coordinatesmonitor - a monitor for the operation. Note the updatePlotImage operation should be fast (<1000ms).DasExceptionprotected void installRenderer()
installRenderer in class Rendererprotected void uninstallRenderer()
uninstallRenderer in class Rendererpublic SpectrogramRenderer.RebinnerEnum getRebinner()
public final void setRebinner(SpectrogramRenderer.RebinnerEnum rebinnerEnum)
rebinnerEnum - New value of property rebinner.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 Rendererpublic QDataSet getConsumedDataSet()
RenderergetConsumedDataSet in interface DataSetConsumergetConsumedDataSet in class Rendererprotected final void clearPlotImage()
public void setDataSet(QDataSet ds)
RenderersetDataSet in class Rendererpublic boolean isPrint300dpi()
public void setPrint300dpi(boolean print300dpi)
print300dpi - New value of property draw300dpi.public boolean isCadenceCheck()
public void setCadenceCheck(boolean cadenceCheck)
cadenceCheck - public java.awt.Shape selectionArea()
public boolean acceptContext(int x,
int y)
RendereracceptContext in class Rendererx - the x coordinate in the canvas coordinate system.y - the y coordinate in the canvas coordinate system.public java.awt.Color getFillColor()
public void setFillColor(java.awt.Color fillColor)
fillColor - New value of property fillColor.