public class ImageVectorDataSetRenderer extends Renderer
| Modifier and Type | Field and Description |
|---|---|
protected int |
envelope |
protected static java.util.logging.Logger |
logger |
static java.lang.String |
PROP_ENVELOPE |
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, 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 |
|---|
ImageVectorDataSetRenderer(DataSetDescriptor dsd) |
| 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 QDataSet |
doAutorange(QDataSet ds) |
java.awt.Color |
getColor() |
int |
getEnvelope() |
javax.swing.Icon |
getListIcon()
An icon can be provided that will be shown in a list
along with the textual description of the element.
|
int |
getSaturationHitCount() |
boolean |
isPrint300dpi()
Getter for property draw300dpi.
|
void |
render(java.awt.Graphics g1,
DasAxis xAxis,
DasAxis yAxis,
ProgressMonitor mon)
Render is called whenever the image needs to be refreshed or the content
has changed.
|
void |
setColor(java.awt.Color color) |
void |
setDataSet(QDataSet ds)
Set the dataset to be plotted.
|
void |
setEnvelope(int envelope)
0=none.
|
void |
setPrint300dpi(boolean print300dpi)
Setter for property draw300dpi.
|
void |
setSaturationHitCount(int d) |
void |
updatePlotImage(DasAxis xAxis,
DasAxis yAxis,
ProgressMonitor monitor)
updatePlotImage is called once the expensive operation of loading
the data is completed.
|
acceptsDataSet, addPropertyChangeListener, addPropertyChangeListener, decodePlotSymbolControl, drawListIcon, encodeBooleanControl, encodeColorControl, encodePlotSymbolControl, formatControl, getAffineTransform, getBooleanControl, getColorBar, getColorControl, getConsumedDataSet, getControl, getControl, getDataLoader, getDataSet, getDataSetDescriptor, getDataSetID, getDatumControl, getDoubleArrayControl, getDoubleControl, getId, getIntegerControl, getLastException, getLegendLabel, getListLabel, getParent, getRenderCount, getTopDecorator, getUpdateCount, getXmemento, getYmemento, hasControl, incrementRenderCount, incrementUpdateCount, installRenderer, invalidateParentCacheImage, isActive, isDrawLegendLabel, isDumpDataSet, isTableDataSet, parseControl, refresh, refreshImage, removePropertyChangeListener, removePropertyChangeListener, renderException, resetCounters, setActive, setColorBar, setControl, setDataSetDescriptor, setDataSetID, setDataSetLoader, setDrawLegendLabel, setDumpDataSet, setException, setId, setLastException, setLegendLabel, setParent, setTopDecorator, setUpFont, setUpFont, uninstallRenderer, update, updateCacheImage, updateImmediatelyprotected static final java.util.logging.Logger logger
protected int envelope
public static final java.lang.String PROP_ENVELOPE
public ImageVectorDataSetRenderer(DataSetDescriptor dsd)
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 void setDataSet(QDataSet ds)
RenderersetDataSet in class Rendererpublic void render(java.awt.Graphics g1,
DasAxis xAxis,
DasAxis yAxis,
ProgressMonitor mon)
Rendererrender in class Rendererg1 - 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).public 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).DasExceptionpublic void setSaturationHitCount(int d)
public int getSaturationHitCount()
public void setColor(java.awt.Color color)
public java.awt.Color getColor()
public int getEnvelope()
public void setEnvelope(int envelope)
envelope - 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 boolean isPrint300dpi()
public void setPrint300dpi(boolean print300dpi)
print300dpi - New value of property draw300dpi.