org.das2.graph.DataGeneralPathBuilder

introduce class to handle the task of creating GeneralPaths from a series of data points. We notice that creating the GeneralPath is plenty fast, and it's rendering it that is slow, so this will allow for future optimizations.


PROP_HISTOGRAM_MODE


finishThought

finishThought( ) → void

Returns:

void (returns nothing)

search for examples view on GitHub view source


getCadenceDouble

getCadenceDouble( ) → double

return the x cadence used as a double. This is should interpreted with the xaxis units and with isCadenceRatiometric.

Returns:

the cadence as a double, or 1e38 if there is no cadence.

search for examples view on GitHub view source


getGeneralPath

getGeneralPath( ) → GeneralPath

get the generalPath for drawing. This may affect the path, when histogramMode is true.

Returns:

the generalPath for drawing.

search for examples view on GitHub view source


getPathIterator

getPathIterator( ) → PathIterator

get the path iterator.

Returns:

the path iterator.

search for examples view on GitHub view source


getPenPosition

getPenPosition( ) → Point2D

this is added so that the fill-to-zero code can add the returns.

Returns:

java.awt.geom.Point2D

search for examples view on GitHub view source


insertLineTo

insertLineTo( double x, double y ) → void

allow client to insert a point. This is used when trying to implement the fill-to-zero.

Parameters

x - pixel position
y - pixel position

Returns:

void (returns nothing)

search for examples view on GitHub view source


isCadenceRatiometric

isCadenceRatiometric( ) → boolean

return true if the spacing in x has been identified as ratiometric (linearly spaced on a log axis). Note this is for the data, which is not necessarily the x axis setting.

Returns:

true if the data has been marked as ratiometric.

search for examples view on GitHub view source


isHistogramMode

isHistogramMode( ) → boolean

Returns:

boolean

search for examples view on GitHub view source


setCadence

setCadence( Datum sw ) → void

set the limit where two points are considered adjacent, or null if no check should be done.

Parameters

sw -

Returns:

void (returns nothing)

search for examples view on GitHub view source


setHistogramFillFlag

setHistogramFillFlag( ) → void

kludge to tell the builder to subtract a half cadence from the next point

Returns:

void (returns nothing)

search for examples view on GitHub view source


setHistogramMode

setHistogramMode( boolean histogramMode ) → void

Returns:

void (returns nothing)

search for examples view on GitHub view source