public class CurveRenderer extends Renderer
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROP_COLOR |
static java.lang.String |
PROP_LINE_WIDTH |
static java.lang.String |
PROP_PSYM |
static java.lang.String |
PROP_SYM_CONNECTOR |
static java.lang.String |
PROP_SYM_SIZE |
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 |
|---|
CurveRenderer()
Constructor for renderer which takes a dataset which is Y(DEPEND_0=X)
|
CurveRenderer(DataSetDescriptor dsd,
java.lang.String xplane,
java.lang.String yplane)
The dataset descriptor should return a rank 2 QDataSet with time for
and a bundle descriptor for BUNDLE_1.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Color |
getColor() |
double |
getLineWidth()
Getter for property lineWidth.
|
Psym |
getPsym()
Getter for property psym.
|
PsymConnector |
getPsymConnector() |
double |
getSymSize() |
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)
setter for the property color.
|
void |
setLineWidth(double lineWidth)
Setter for property lineWidth.
|
void |
setPsym(Psym psym)
Setter for property psym.
|
void |
setPsymConnector(PsymConnector p)
set the type of line connecting plot symbols (e.g.
|
void |
setSymSize(double symSize)
set the symbol size in pixels (ems)
|
void |
updatePlotImage(DasAxis xAxis,
DasAxis yAxis,
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, getControl, getDataLoader, getDataSet, getDataSetDescriptor, getDataSetID, getDatumControl, getDoubleArrayControl, getDoubleControl, getId, getIntegerControl, getLastException, getLegendLabel, getListIcon, 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, setDataSet, setDataSetDescriptor, setDataSetID, setDataSetLoader, setDrawLegendLabel, setDumpDataSet, setException, setId, setLastException, setLegendLabel, setParent, setTopDecorator, setUpFont, setUpFont, uninstallRenderer, update, updateCacheImage, updateImmediatelypublic static final java.lang.String PROP_LINE_WIDTH
public static final java.lang.String PROP_COLOR
public static final java.lang.String PROP_SYM_SIZE
public static final java.lang.String PROP_SYM_CONNECTOR
public static final java.lang.String PROP_PSYM
public CurveRenderer(DataSetDescriptor dsd, java.lang.String xplane, java.lang.String yplane)
dsd - null or the DataSetDescriptor which can load more data.xplane - the name of the bundled dataset, or null, or ""yplane - the name of the bundled dataset, or null, or ""DataSetOps.unbundle(org.das2.qds.QDataSet, java.lang.String)public CurveRenderer()
public 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 final double getLineWidth()
public final void setLineWidth(double lineWidth)
lineWidth - New value of property lineWidth.public final double getSymSize()
public final void setSymSize(double symSize)
symSize - public PsymConnector getPsymConnector()
public void setPsymConnector(PsymConnector p)
p - public final Psym getPsym()
public final void setPsym(Psym psym)
psym - New value of property psym.public java.awt.Color getColor()
public void setColor(java.awt.Color color)
color -