org.das2.graph.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. It should be said that five years after its introduction that it's still quite limited. The SeriesRenderer has a few additional features, such as error bars and fill-to-reference. These are implemented as "render elements" so that work is encapsulated.

SeriesRenderer( )


VERSION


CONTROL_KEY_BACKGROUND_THICK

background thick paints a thicker background color under for contrast.


CONTROL_KEY_FILL_STYLE

fill style is whether the plot symbols are filled in or not.


PROP_SHOWLIMITS


PROP_SPECIALCOLORS


PROP_FILLTEXTURE


PROP_ADDITIONALCLIP


PROP_DRAWERROR


PROP_BACKGROUNDWIDTH


PROP_FILLDIRECTION


PROP_ERRORBARTYPE


PROP_MODULO_Y


PROP_STAMPPSYMS


PROP_UPDATESPOINTSPERMILLISECOND


PROP_RENDERPOINTSPERMILLISECOND


PROP_CADENCECHECK


acceptContext

acceptContext( int x, int y ) → boolean

Parameters

x - an int
y - an int

Returns:

boolean

[search for examples] [view on GitHub] [view on old javadoc] [view source]


acceptsDataSet

acceptsDataSet( QDataSet dataSet ) → boolean

Parameters

dataSet - a QDataSet

Returns:

boolean

[search for examples] [view on GitHub] [view on old javadoc] [view source]


drawListIcon

drawListIcon( java.awt.Graphics2D g1, int x, int y ) → void

Parameters

g1 - a Graphics2D
x - an int
y - an int

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getBackgroundThick

getBackgroundThick( ) → String

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getColor

getColor( ) → java.awt.Color

Getter for property color.

Returns:

Value of property color.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getColorByDataSetId

getColorByDataSetId( ) → String

Getter for property colorByDataSetId.

Returns:

Value of property colorByDataSetId.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getControl

getControl( ) → String

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getDOMElement

getDOMElement( org.w3c.dom.Document document ) → org.w3c.dom.Element

Parameters

document - a Document

Returns:

org.w3c.dom.Element

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getDataSetSizeLimit

getDataSetSizeLimit( ) → int

Getter for property dataSetSizeLimit.

Returns:

Value of property dataSetSizeLimit.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getErrorBarType

getErrorBarType( ) → org.das2.graph.ErrorBarType

Returns:

org.das2.graph.ErrorBarType

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getFillColor

getFillColor( ) → java.awt.Color

Getter for property fillReference.

Returns:

Value of property fillReference.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getFillDirection

getFillDirection( ) → String

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getFillStyle

getFillStyle( ) → org.das2.graph.FillStyle

how each plot symbol is filled.

Returns:

an org.das2.graph.FillStyle

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getFillTexture

getFillTexture( ) → String

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getFirstIndex

getFirstIndex( ) → int

Returns:

int

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getLastIndex

getLastIndex( ) → int

Returns:

int

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getLineWidth

getLineWidth( ) → double

Returns:

double

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getListIcon

getListIcon( ) → javax.swing.Icon

get an Icon representing the trace. This will be an ImageIcon. TODO: cache the result to support use in legend.

Returns:

a javax.swing.Icon

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getListLabel

getListLabel( ) → String

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getModuloY

getModuloY( ) → Datum

Returns:

org.das2.datum.Datum

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getPsym

getPsym( ) → org.das2.graph.PlotSymbol

Getter for property psym.

Returns:

Value of property psym.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getPsymConnector

getPsymConnector( ) → org.das2.graph.PsymConnector

Returns:

org.das2.graph.PsymConnector

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getReference

getReference( ) → Datum

Getter for property reference.

Returns:

Value of property reference.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getRenderPointsPerMillisecond

getRenderPointsPerMillisecond( ) → double

Returns:

double

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getSpecialColors

getSpecialColors( ) → String

Returns:

java.lang.String

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getSymSize

getSymSize( ) → double

Getter for property symsize.

Returns:

Value of property symsize.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getUpdatesPointsPerMillisecond

getUpdatesPointsPerMillisecond( ) → double

Returns:

double

[search for examples] [view on GitHub] [view on old javadoc] [view source]


isAdditionalClip

isAdditionalClip( ) → boolean

Returns:

boolean

[search for examples] [view on GitHub] [view on old javadoc] [view source]


isAntiAliased

isAntiAliased( ) → boolean

Getter for property antiAliased.

Returns:

Value of property antiAliased.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


isCadenceCheck

isCadenceCheck( ) → boolean

Returns:

boolean

[search for examples] [view on GitHub] [view on old javadoc] [view source]


isDrawError

isDrawError( ) → boolean

Returns:

boolean

[search for examples] [view on GitHub] [view on old javadoc] [view source]


isFillToReference

isFillToReference( ) → boolean

Getter for property fillToReference.

Returns:

Value of property fillToReference.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


isHistogram

isHistogram( ) → boolean

Returns:

boolean

[search for examples] [view on GitHub] [view on old javadoc] [view source]


isResetDebugCounters

isResetDebugCounters( ) → boolean

Getter for property resetDebugCounters.

Returns:

Value of property resetDebugCounters.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


isShowLimits

isShowLimits( ) → boolean

Returns:

boolean

[search for examples] [view on GitHub] [view on old javadoc] [view source]


isSimplifyPaths

isSimplifyPaths( ) → boolean

Getter for property simplifyPaths.

Returns:

Value of property simplifyPaths.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


isStampPsyms

isStampPsyms( ) → boolean

Returns:

boolean

[search for examples] [view on GitHub] [view on old javadoc] [view source]


render

render( java.awt.Graphics2D g, org.das2.graph.DasAxis xAxis, org.das2.graph.DasAxis yAxis ) → void

render the dataset by delegating to internal components such as the symbol connector and error bars.

Parameters

g - the graphics context.
xAxis - the x axis
yAxis - the y axis

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


selectionArea

selectionArea( ) → java.awt.Shape

like accept context, but provides a shape to indicate selection. This should be roughly the same as the locus of points where acceptContext is true.

Returns:

a java.awt.Shape

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setActive

setActive( boolean active ) → void

Parameters

active - a boolean

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setAdditionalClip

setAdditionalClip( boolean additionalClip ) → void

this will clip all connecting lines outside of the plot boundaries.

Parameters

additionalClip - a boolean

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setAntiAliased

setAntiAliased( boolean antiAliased ) → void

Setter for property antiAliased.

Parameters

antiAliased - New value of property antiAliased.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setBackgroundThick

setBackgroundThick( String backgroundThick ) → void

set the width of background lines, for example "2em" is twice the thickness of the line.

Parameters

backgroundThick - a String

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setCadenceCheck

setCadenceCheck( boolean cadenceCheck ) → void

If true, then use a cadence estimate to determine and indicate data gaps.

Parameters

cadenceCheck - a boolean

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setColor

setColor( java.awt.Color color ) → void

Setter for property color.

Parameters

color - New value of property color.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setColorBar

setColorBar( org.das2.graph.DasColorBar cb ) → void

Setter for property colorBar.

Parameters

cb - New value of property colorBar.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setColorByDataSetId

setColorByDataSetId( String colorByDataSetId ) → void

The dataset plane to use to get colors. If this is null or "", then no coloring is done. (Note the default plane cannot be used to color.)

Parameters

colorByDataSetId - New value of property colorByDataSetId.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setControl

setControl( String s ) → void

Parameters

s - a String

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setDataSet

setDataSet( QDataSet ds ) → void

Parameters

ds - a QDataSet

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setDataSetSizeLimit

setDataSetSizeLimit( int dataSetSizeLimit ) → void

Setter for property dataSetSizeLimit.

Parameters

dataSetSizeLimit - New value of property dataSetSizeLimit.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setDrawError

setDrawError( boolean drawError ) → void

Parameters

drawError - a boolean

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setErrorBarType

setErrorBarType( org.das2.graph.ErrorBarType errorBarType ) → void

Parameters

errorBarType - an ErrorBarType

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setFillColor

setFillColor( java.awt.Color color ) → void

Setter for property fillReference.

Parameters

color - the color

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setFillDirection

setFillDirection( String fillDirection ) → void

Parameters

fillDirection - a String

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setFillStyle

setFillStyle( org.das2.graph.FillStyle fillStyle ) → void

how each plot symbol is filled.

Parameters

fillStyle - a FillStyle

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setFillTexture

setFillTexture( String fillTexture ) → void

Parameters

fillTexture - a String

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setFillToReference

setFillToReference( boolean fillToReference ) → void

Setter for property fillToReference.

Parameters

fillToReference - New value of property fillToReference.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setHistogram

setHistogram( boolean b ) → void

Parameters

b - a boolean

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setLineWidth

setLineWidth( double f ) → void

set the width of the connecting lines.

Parameters

f - a double

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setListIconSymSize

setListIconSymSize( float newSize ) → void

Parameters

newSize - a float

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setModuloY

setModuloY( Datum modulo ) → void

set the distance the data exist within, for example "24hr" for Magnetic Local Time

Parameters

modulo - a Datum

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setPsym

setPsym( org.das2.graph.PlotSymbol psym ) → void

Setter for property psym.

Parameters

psym - New value of property psym.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setPsymConnector

setPsymConnector( org.das2.graph.PsymConnector p ) → void

Parameters

p - a PsymConnector

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setReference

setReference( Datum reference ) → void

Setter for property reference.

Parameters

reference - New value of property reference.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setRenderPointsPerMillisecond

setRenderPointsPerMillisecond( double newrenderPointsPerMillisecond ) → void

Parameters

newrenderPointsPerMillisecond - a double

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setResetDebugCounters

setResetDebugCounters( boolean resetDebugCounters ) → void

Setter for property resetDebugCounters.

Parameters

resetDebugCounters - New value of property resetDebugCounters.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setShowLimits

setShowLimits( boolean showLimits ) → void

if the dataset contains metadata describing nominal and warning ranges, display them. Currently this is found in CDF metadata, but should become part of QDataSet.

Parameters

showLimits - a boolean

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setSimplifyPaths

setSimplifyPaths( boolean simplifyPaths ) → void

Setter for property simplifyPaths.

Parameters

simplifyPaths - New value of property simplifyPaths.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setSpecialColors

setSpecialColors( String specialColors ) → void

Parameters

specialColors - a String

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setStampPsyms

setStampPsyms( boolean newstampPsyms ) → void

Parameters

newstampPsyms - a boolean

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setSymSize

setSymSize( double symSize ) → void

Setter for property symsize.

Parameters

symSize - New value of property symsize.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setUpdatesPointsPerMillisecond

setUpdatesPointsPerMillisecond( double newupdatesPointsPerMillisecond ) → void

Parameters

newupdatesPointsPerMillisecond - a double

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


updatePlotImage

updatePlotImage( org.das2.graph.DasAxis xAxis, org.das2.graph.DasAxis yAxis, ProgressMonitor monitor ) → void

Do the same as updatePlotImage, but use AffineTransform to implement axis transform. This is the main updatePlotImage method, which will delegate to internal components of the plot, such as connector and error bar elements.

Parameters

xAxis - the x axis
yAxis - the y axis
monitor - progress monitor is used to provide feedback

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]