org.das2.graph.VectorPlotRenderer

Draw vectors as arrows, from a dataset[:,4] where dataset[0,:] is x,y,dx,dy.

VectorPlotRenderer( )


PROP_SCALE

property name for the scale.


acceptsData

acceptsData( QDataSet ds ) → boolean

return true if the renderer accepts data in this form. This renderer needs rank 2 data with 4 columns,

Parameters

ds - a QDataSet

Returns:

a boolean

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


doAutorange

doAutorange( QDataSet ds ) → QDataSet

autorange on the data, returning a rank 2 bounds for the dataset.

Parameters

ds - the dataset to autorange.

Returns:

a bounds dataset, where result[0,:] is the xrange and result[1,:] is the yrange.

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


getScale

getScale( ) → double

get the scale relating the length of the vector (dx and dy, the last two columns) to the positions of the vector (in the first two columns).

Returns:

the scale

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


render

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

Parameters

g1 - a Graphics2D
xAxis - a DasAxis
yAxis - a DasAxis

Returns:

void (returns nothing)

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


setScale

setScale( double scale ) → void

set the scale relating the length of the vector (dx and dy, the last two columns) to the positions of the vector (in the first two columns). Default is 1.

Parameters

scale - the new scale

Returns:

void (returns nothing)

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