public class RGBImageRenderer extends Renderer
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROP_NEARESTNEIGHBORINTERPOLATION |
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 |
|---|
RGBImageRenderer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptContext(int x,
int y)
Returns true if the render will accept the context for a point.
|
static boolean |
acceptsData(QDataSet ds)
accepts either rank2 data with grey scale 0-255, or rank3 (w,h,3 or 4)
|
static QDataSet |
doAutorange(QDataSet ds)
autorange on the data, returning a rank 2 bounds for the dataset.
|
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.
|
protected void |
installRenderer() |
boolean |
isNearestNeighborInterpolation() |
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() |
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 |
setNearestNeighborInterpolation(boolean nearestNeighborInterpolation) |
protected void |
uninstallRenderer() |
void |
updatePlotImage(DasAxis xAxis,
DasAxis yAxis,
ProgressMonitor monitor)
this actually can take a little while, I discovered when playing with the wave-at-cassini image.
|
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, getListLabel, 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, setDataSetDescriptor, setDataSetID, setDataSetLoader, setDrawLegendLabel, setDumpDataSet, setException, setId, setLastException, setLegendLabel, setParent, setStatsFile, setTopDecorator, setUpFont, setUpFont, update, updateCacheImage, updateImmediatelypublic static final java.lang.String PROP_NEARESTNEIGHBORINTERPOLATION
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.Graphics2D g,
DasAxis xAxis,
DasAxis yAxis)
Rendererpublic boolean isNearestNeighborInterpolation()
public void setNearestNeighborInterpolation(boolean nearestNeighborInterpolation)
public void setDataSet(QDataSet ds)
RenderersetDataSet in class Rendererprotected void installRenderer()
installRenderer in class Rendererprotected void uninstallRenderer()
uninstallRenderer in class Rendererpublic void updatePlotImage(DasAxis xAxis, DasAxis yAxis, ProgressMonitor monitor) throws DasException
updatePlotImage 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).DasExceptionpublic static boolean acceptsData(QDataSet ds)
ds - the datasetpublic 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.Shape selectionArea()
public javax.swing.Icon getListIcon()
Displayablenull if there
is no icon available, or a roughly 16x16 pixel icon.getListIcon in interface DisplayablegetListIcon in class Rendererpublic static QDataSet doAutorange(QDataSet ds)
ds - the datasetSchemes.boundingBox()