public class SeriesRenderer extends Renderer
Modifier and Type | Field and Description |
---|---|
protected boolean |
cadenceCheck |
static java.lang.String |
CONTROL_KEY_BACKGROUND_THICK
background thick paints a thicker background color under for contrast.
|
static java.lang.String |
CONTROL_KEY_FILL_STYLE
fill style is whether the plot symbols are filled in or not.
|
static java.lang.String |
PROP_ADDITIONALCLIP |
static java.lang.String |
PROP_BACKGROUNDWIDTH |
static java.lang.String |
PROP_CADENCECHECK |
static java.lang.String |
PROP_DRAWERROR |
static java.lang.String |
PROP_ERRORBARTYPE |
static java.lang.String |
PROP_FILLDIRECTION |
static java.lang.String |
PROP_FILLTEXTURE |
static java.lang.String |
PROP_MODULO_Y |
static java.lang.String |
PROP_RENDERPOINTSPERMILLISECOND |
static java.lang.String |
PROP_SHOWLIMITS |
static java.lang.String |
PROP_SPECIALCOLORS |
static java.lang.String |
PROP_STAMPPSYMS |
static java.lang.String |
PROP_UPDATESPOINTSPERMILLISECOND |
static java.lang.String |
VERSION |
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 |
---|
SeriesRenderer() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptContext(int x,
int y)
Returns true if the render will accept the context for a point.
|
boolean |
acceptsDataSet(QDataSet dataSet)
return true if the dataset appears to be in a scheme accepted by this renderer.
|
void |
drawListIcon(java.awt.Graphics2D g1,
int x,
int y)
implement this to provide nice drawing of icon on printing graphics context.
|
java.lang.String |
getBackgroundThick() |
java.awt.Color |
getColor()
Getter for property color.
|
java.lang.String |
getColorByDataSetId()
Getter for property colorByDataSetId.
|
java.lang.String |
getControl()
get the string which summarizes the state of the renderer.
|
int |
getDataSetSizeLimit()
Getter for property dataSetSizeLimit.
|
org.w3c.dom.Element |
getDOMElement(org.w3c.dom.Document document) |
ErrorBarType |
getErrorBarType() |
java.awt.Color |
getFillColor()
Getter for property fillReference.
|
java.lang.String |
getFillDirection() |
FillStyle |
getFillStyle()
how each plot symbol is filled.
|
java.lang.String |
getFillTexture() |
int |
getFirstIndex() |
int |
getLastIndex() |
double |
getLineWidth() |
javax.swing.Icon |
getListIcon()
get an Icon representing the trace.
|
java.lang.String |
getListLabel()
return a
String that will help the user
identify this item when choosing from a list. |
Datum |
getModuloY() |
PlotSymbol |
getPsym()
Getter for property psym.
|
PsymConnector |
getPsymConnector() |
Datum |
getReference()
Getter for property reference.
|
double |
getRenderPointsPerMillisecond() |
java.lang.String |
getSpecialColors() |
double |
getSymSize()
Getter for property symsize.
|
double |
getUpdatesPointsPerMillisecond() |
protected void |
installRenderer() |
boolean |
isAdditionalClip() |
boolean |
isAntiAliased()
Getter for property antiAliased.
|
boolean |
isCadenceCheck() |
boolean |
isDrawError() |
boolean |
isFillToReference()
Getter for property fillToReference.
|
boolean |
isHistogram() |
boolean |
isResetDebugCounters()
Getter for property resetDebugCounters.
|
boolean |
isShowLimits() |
boolean |
isSimplifyPaths()
Getter for property simplifyPaths.
|
boolean |
isStampPsyms() |
void |
render(java.awt.Graphics2D g,
DasAxis xAxis,
DasAxis yAxis)
render the dataset by delegating to internal components such as the symbol connector and error bars.
|
java.awt.Shape |
selectionArea()
like accept context, but provides a shape to indicate selection.
|
void |
setActive(boolean active)
set the active property, when false the renderer will not be drawn.
|
void |
setAdditionalClip(boolean additionalClip)
this will clip all connecting lines outside of the plot boundaries.
|
void |
setAntiAliased(boolean antiAliased)
Setter for property antiAliased.
|
void |
setBackgroundThick(java.lang.String backgroundThick)
set the width of background lines, for example "2em" is twice the
thickness of the line.
|
void |
setCadenceCheck(boolean cadenceCheck)
If true, then use a cadence estimate to determine and indicate data gaps.
|
void |
setColor(java.awt.Color color)
Setter for property color.
|
void |
setColorBar(DasColorBar cb)
Setter for property colorBar.
|
void |
setColorByDataSetId(java.lang.String colorByDataSetId)
The dataset plane to use to get colors.
|
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 |
setDataSetSizeLimit(int dataSetSizeLimit)
Setter for property dataSetSizeLimit.
|
void |
setDrawError(boolean drawError) |
void |
setErrorBarType(ErrorBarType errorBarType) |
void |
setFillColor(java.awt.Color color)
Setter for property fillReference.
|
void |
setFillDirection(java.lang.String fillDirection) |
void |
setFillStyle(FillStyle fillStyle)
how each plot symbol is filled.
|
void |
setFillTexture(java.lang.String fillTexture) |
void |
setFillToReference(boolean fillToReference)
Setter for property fillToReference.
|
void |
setHistogram(boolean b) |
void |
setLineWidth(double f)
set the width of the connecting lines.
|
void |
setListIconSymSize(float newSize) |
void |
setModuloY(Datum modulo)
set the distance the data exist within, for example "24hr" for Magnetic Local Time
|
void |
setPsym(PlotSymbol psym)
Setter for property psym.
|
void |
setPsymConnector(PsymConnector p) |
void |
setReference(Datum reference)
Setter for property reference.
|
void |
setRenderPointsPerMillisecond(double newrenderPointsPerMillisecond) |
void |
setResetDebugCounters(boolean resetDebugCounters)
Setter for property resetDebugCounters.
|
void |
setShowLimits(boolean showLimits)
if the dataset contains metadata describing nominal and warning ranges, display them.
|
void |
setSimplifyPaths(boolean simplifyPaths)
Setter for property simplifyPaths.
|
void |
setSpecialColors(java.lang.String specialColors) |
void |
setStampPsyms(boolean newstampPsyms) |
void |
setSymSize(double symSize)
Setter for property symsize.
|
void |
setUpdatesPointsPerMillisecond(double newupdatesPointsPerMillisecond) |
protected void |
uninstallRenderer() |
void |
updatePlotImage(DasAxis xAxis,
DasAxis yAxis,
ProgressMonitor monitor)
Do the same as updatePlotImage, but use AffineTransform to implement axis transform.
|
addPropertyChangeListener, addPropertyChangeListener, addToStats, decodeDatum, decodeFillStyle, decodePlotSymbolConnectorControl, decodePlotSymbolControl, 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, 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, setBottomDecorator, setDataSetDescriptor, setDataSetID, setDataSetLoader, setDrawLegendLabel, setDumpDataSet, setException, setId, setLastException, setLegendLabel, setParent, setStatsFile, setTopDecorator, setUpFont, setUpFont, update, updateCacheImage, updateImmediately
public static java.lang.String VERSION
public static final java.lang.String CONTROL_KEY_BACKGROUND_THICK
public static final java.lang.String CONTROL_KEY_FILL_STYLE
public static final java.lang.String PROP_SHOWLIMITS
public static final java.lang.String PROP_SPECIALCOLORS
public static final java.lang.String PROP_FILLTEXTURE
public static final java.lang.String PROP_ADDITIONALCLIP
public static final java.lang.String PROP_DRAWERROR
public static final java.lang.String PROP_BACKGROUNDWIDTH
public static final java.lang.String PROP_FILLDIRECTION
public static final java.lang.String PROP_ERRORBARTYPE
public static final java.lang.String PROP_MODULO_Y
public static final java.lang.String PROP_STAMPPSYMS
public static final java.lang.String PROP_UPDATESPOINTSPERMILLISECOND
public static final java.lang.String PROP_RENDERPOINTSPERMILLISECOND
protected boolean cadenceCheck
public static final java.lang.String PROP_CADENCECHECK
public void setDataSet(QDataSet ds)
Renderer
setDataSet
in class Renderer
public boolean isShowLimits()
public void setShowLimits(boolean showLimits)
showLimits
- public java.lang.String getSpecialColors()
public void setSpecialColors(java.lang.String specialColors)
public java.lang.String getFillTexture()
public void setFillTexture(java.lang.String fillTexture)
public void setControl(java.lang.String s)
Renderer
setControl
in class Renderer
s
- the controletc
public java.lang.String getControl()
Renderer
getControl
in class Renderer
public void setActive(boolean active)
Renderer
public boolean isAdditionalClip()
public void setAdditionalClip(boolean additionalClip)
additionalClip
- public void render(java.awt.Graphics2D g, DasAxis xAxis, DasAxis yAxis)
public void updatePlotImage(DasAxis xAxis, DasAxis yAxis, ProgressMonitor monitor)
updatePlotImage
in class Renderer
xAxis
- the x axisyAxis
- the y axismonitor
- progress monitor is used to provide feedbackprotected void installRenderer()
installRenderer
in class Renderer
protected void uninstallRenderer()
uninstallRenderer
in class Renderer
public org.w3c.dom.Element getDOMElement(org.w3c.dom.Document document)
public javax.swing.Icon getListIcon()
getListIcon
in interface Displayable
getListIcon
in class Renderer
public void drawListIcon(java.awt.Graphics2D g1, int x, int y)
Displayable
drawListIcon
in interface Displayable
drawListIcon
in class Renderer
g1
- the graphics context.x
- the x position, typically 0.y
- the y position, typically 0.public void setListIconSymSize(float newSize)
public java.lang.String getListLabel()
Displayable
String
that will help the user
identify this item when choosing from a list.getListLabel
in interface Displayable
getListLabel
in class Renderer
public PsymConnector getPsymConnector()
public void setPsymConnector(PsymConnector p)
public PlotSymbol getPsym()
public void setPsym(PlotSymbol psym)
psym
- New value of property psym.public boolean isDrawError()
public void setDrawError(boolean drawError)
public double getSymSize()
public void setSymSize(double symSize)
symSize
- New value of property symsize.public java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- New value of property color.public double getLineWidth()
public void setLineWidth(double f)
f
- public java.lang.String getBackgroundThick()
public void setBackgroundThick(java.lang.String backgroundThick)
backgroundThick
- public boolean isAntiAliased()
public void setAntiAliased(boolean antiAliased)
antiAliased
- New value of property antiAliased.public boolean isHistogram()
public void setHistogram(boolean b)
public java.awt.Color getFillColor()
public void setFillColor(java.awt.Color color)
color
- the colorpublic java.lang.String getFillDirection()
public void setFillDirection(java.lang.String fillDirection)
public java.lang.String getColorByDataSetId()
public void setColorByDataSetId(java.lang.String colorByDataSetId)
colorByDataSetId
- New value of property colorByDataSetId.public void setColorBar(DasColorBar cb)
setColorBar
in class Renderer
cb
- New value of property colorBar.public boolean isFillToReference()
public void setFillToReference(boolean fillToReference)
fillToReference
- New value of property fillToReference.public Datum getReference()
public void setReference(Datum reference)
reference
- New value of property reference.public ErrorBarType getErrorBarType()
public void setErrorBarType(ErrorBarType errorBarType)
public Datum getModuloY()
public void setModuloY(Datum modulo)
modulo
- public boolean isResetDebugCounters()
public void setResetDebugCounters(boolean resetDebugCounters)
resetDebugCounters
- New value of property resetDebugCounters.public boolean isSimplifyPaths()
public void setSimplifyPaths(boolean simplifyPaths)
simplifyPaths
- New value of property simplifyPaths.public boolean isStampPsyms()
public void setStampPsyms(boolean newstampPsyms)
public FillStyle getFillStyle()
public void setFillStyle(FillStyle fillStyle)
fillStyle
- public java.awt.Shape selectionArea()
public boolean acceptContext(int x, int y)
Renderer
acceptContext
in class Renderer
x
- the x coordinate in the canvas coordinate system.y
- the y coordinate in the canvas coordinate system.public int getDataSetSizeLimit()
public void setDataSetSizeLimit(int dataSetSizeLimit)
dataSetSizeLimit
- New value of property dataSetSizeLimit.public double getUpdatesPointsPerMillisecond()
public void setUpdatesPointsPerMillisecond(double newupdatesPointsPerMillisecond)
public double getRenderPointsPerMillisecond()
public void setRenderPointsPerMillisecond(double newrenderPointsPerMillisecond)
public int getFirstIndex()
public int getLastIndex()
public boolean isCadenceCheck()
public void setCadenceCheck(boolean cadenceCheck)
cadenceCheck
- public boolean acceptsDataSet(QDataSet dataSet)
Renderer
acceptsDataSet
in class Renderer