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 |
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 |
---|
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.Graphics2D g1,
DasAxis xAxis,
DasAxis yAxis)
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, addToStats, decodeDatum, decodeFillStyle, decodePlotSymbolConnectorControl, decodePlotSymbolControl, drawListIcon, encodeBooleanControl, encodeColorControl, encodeDatum, encodeFillStyle, encodePlotSymbolConnectorControl, encodePlotSymbolControl, formatControl, getAffineTransform, getBooleanControl, getBottomDecorator, getColorBar, getColorControl, getConsumedDataSet, getControl, getControl, getDataLoader, getDataSet, getDataSetDescriptor, getDataSetID, getDatumControl, getDoubleArrayControl, getDoubleControl, getId, getIntegerControl, getInternalDataSet, getLastException, getLegendLabel, getListIcon, getListLabel, getParent, getRenderCount, getStatsFile, getTopDecorator, getUpdateCount, getXmemento, getYmemento, hasControl, incrementRenderCount, incrementUpdateCount, installRenderer, invalidateParentCacheImage, isActive, isDrawLegendLabel, isDumpDataSet, isTableDataSet, parseControl, parseLayoutString, postException, postMessage, postMessage, refresh, refreshImage, removePropertyChangeListener, removePropertyChangeListener, renderException, resetCounters, setActive, setBottomDecorator, setColorBar, setControl, setDataSet, setDataSetDescriptor, setDataSetID, setDataSetLoader, setDrawLegendLabel, setDumpDataSet, setException, setId, setLastException, setLegendLabel, setParent, setStatsFile, setTopDecorator, setUpFont, setUpFont, uninstallRenderer, update, updateCacheImage, updateImmediately
public 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.Graphics2D g1, DasAxis xAxis, DasAxis yAxis)
Renderer
public void updatePlotImage(DasAxis xAxis, DasAxis yAxis, ProgressMonitor monitor) throws DasException
Renderer
updatePlotImage
in class Renderer
xAxis
- 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).DasException
public 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
-