|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.das2.graph.Renderer
org.das2.graph.SeriesRenderer
public class SeriesRenderer
SeriesRender is a high-performance replacement for the SymbolLineRenderer. The SymbolLineRenderer is limited to about 30,000 points, beyond which contracts for speed start breaking degrading usability. The goal of the SeriesRenderer is to plot 1,000,000 points without breaking the contracts.
Field Summary | |
---|---|
protected boolean |
cadenceCheck
|
protected java.lang.String |
legendLabel
|
static java.lang.String |
PROP_CADENCECHECK
|
static java.lang.String |
PROP_LEGENDLABEL
If non-null and non-zero-length, use this label to describe the renderer in the plot's legend. |
static java.lang.String |
PROP_RENDERPOINTSPERMILLISECOND
|
static java.lang.String |
PROP_STAMPPSYMS
|
static java.lang.String |
PROP_UPDATESPOINTSPERMILLISECOND
|
static java.lang.String |
PROPERTY_X_DELTA_MINUS
|
static java.lang.String |
PROPERTY_X_DELTA_PLUS
|
static java.lang.String |
PROPERTY_Y_DELTA_MINUS
|
static java.lang.String |
PROPERTY_Y_DELTA_PLUS
|
Fields inherited from class org.das2.graph.Renderer |
---|
ds, lastException, logger, propertyChangeSupport, renderException |
Constructor Summary | |
---|---|
SeriesRenderer()
|
Method Summary | |
---|---|
boolean |
acceptContext(int x,
int y)
Returns true if the render thinks it can provide the context for a point. |
java.awt.Color |
getColor()
Getter for property color. |
DasColorBar |
getColorBar()
Getter for property colorBar. |
VectorDataSet |
getColorByDataSet()
Getter for property colorByDataSet. |
java.lang.String |
getColorByDataSetId()
Getter for property colorByDataSetId. |
int |
getDataSetSizeLimit()
Getter for property dataSetSizeLimit. |
org.w3c.dom.Element |
getDOMElement(org.w3c.dom.Document document)
|
java.awt.Color |
getFillColor()
Getter for property fillReference. |
FillStyle |
getFillStyle()
|
int |
getFirstIndex()
|
int |
getLastIndex()
|
java.lang.String |
getLegendLabel()
|
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. |
PlotSymbol |
getPsym()
Getter for property psym. |
PsymConnector |
getPsymConnector()
|
Datum |
getReference()
Getter for property reference. |
double |
getRenderPointsPerMillisecond()
|
double |
getSymSize()
Getter for property symsize. |
double |
getUpdatesPointsPerMillisecond()
|
protected void |
installRenderer()
|
boolean |
isAntiAliased()
Getter for property antiAliased. |
boolean |
isCadenceCheck()
|
boolean |
isFillToReference()
Getter for property fillToReference. |
boolean |
isHistogram()
|
boolean |
isResetDebugCounters()
Getter for property resetDebugCounters. |
boolean |
isSelected()
Getter for property selected. |
boolean |
isSimplifyPaths()
Getter for property simplifyPaths. |
boolean |
isStampPsyms()
|
void |
render(java.awt.Graphics g,
DasAxis xAxis,
DasAxis yAxis,
ProgressMonitor mon)
Render is called whenever the image needs to be refreshed or the content has changed. |
void |
setAntiAliased(boolean antiAliased)
Setter for property antiAliased. |
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 colorBar)
Setter for property colorBar. |
void |
setColorByDataSet(VectorDataSet colorByDataSet)
Setter for property colorByDataSet. |
void |
setColorByDataSetId(java.lang.String colorByDataSetId)
The dataset plane to use to get colors. |
void |
setDataSetSizeLimit(int dataSetSizeLimit)
Setter for property dataSetSizeLimit. |
void |
setFillColor(java.awt.Color color)
Setter for property fillReference. |
void |
setFillStyle(FillStyle fillStyle)
|
void |
setFillToReference(boolean fillToReference)
Setter for property fillToReference. |
void |
setHistogram(boolean b)
|
void |
setLegendLabel(java.lang.String legendLabel)
|
void |
setLineWidth(double f)
|
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 |
setSelected(boolean selected)
Setter for property selected. |
void |
setSimplifyPaths(boolean simplifyPaths)
Setter for property simplifyPaths. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROPERTY_X_DELTA_PLUS
public static final java.lang.String PROPERTY_X_DELTA_MINUS
public static final java.lang.String PROPERTY_Y_DELTA_PLUS
public static final java.lang.String PROPERTY_Y_DELTA_MINUS
public static final java.lang.String PROP_STAMPPSYMS
public static final java.lang.String PROP_LEGENDLABEL
protected java.lang.String legendLabel
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
Constructor Detail |
---|
public SeriesRenderer()
Method Detail |
---|
public void render(java.awt.Graphics g, DasAxis xAxis, DasAxis yAxis, ProgressMonitor mon)
Renderer
render
in class Renderer
public void updatePlotImage(DasAxis xAxis, DasAxis yAxis, ProgressMonitor monitor)
updatePlotImage
in class Renderer
protected void installRenderer()
installRenderer
in class Renderer
protected void uninstallRenderer()
uninstallRenderer
in class Renderer
public org.w3c.dom.Element getDOMElement(org.w3c.dom.Document document)
getDOMElement
in class Renderer
public javax.swing.Icon getListIcon()
getListIcon
in interface Displayable
public java.lang.String getListLabel()
Displayable
String
that will help the user
identify this item when choosing from a list.
getListLabel
in interface Displayable
public PsymConnector getPsymConnector()
public void setPsymConnector(PsymConnector p)
public PlotSymbol getPsym()
public void setPsym(PlotSymbol psym)
psym
- New value of property psym.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)
public boolean isAntiAliased()
public void setAntiAliased(boolean antiAliased)
antiAliased
- New value of property antiAliased.public boolean isHistogram()
public void setHistogram(boolean b)
public boolean isSelected()
public void setSelected(boolean selected)
selected
- New value of property selected.public java.awt.Color getFillColor()
public void setFillColor(java.awt.Color color)
fillReference
- New value of property fillReference.public java.lang.String getColorByDataSetId()
public void setColorByDataSetId(java.lang.String colorByDataSetId)
colorByDataSetId
- New value of property colorByDataSetId.public DasColorBar getColorBar()
public void setColorBar(DasColorBar colorBar)
colorBar
- 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 VectorDataSet getColorByDataSet()
public void setColorByDataSet(VectorDataSet colorByDataSet)
colorByDataSet
- New value of property colorByDataSet.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)
public java.lang.String getLegendLabel()
public void setLegendLabel(java.lang.String legendLabel)
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
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |