org.das2.components.DataPointRecorder

DataPointRecorder is a GUI for storing data points selected by the user. The columns are set dynamically as the data arrives (via addDataPoint). This replaces DataPointRecorderNew. (DataPointRecorderNew replaced an older DataPointerRecorder whose name has been reclaimed.)


addAccessory

addAccessory( javax.swing.JComponent c ) → void

add a small component to the lower-right portion of the DataPointRecorder. It should be roughly the size of a button.

Parameters

c - the component.

Returns:

void (returns nothing)

search for examples view on GitHub view source


addDataPoint

addDataPoint( QDataSet ds ) → void

add a record, which should be a rank 1 bundle.

Parameters

ds -

Returns:

void (returns nothing)

search for examples view on GitHub view source


addDataPoints

addDataPoints( QDataSet ds ) → void

append the rank 2 data. The data should be rank 2, without DEPEND_0. Note earlier versions of this code assumed there would be a DEPEND_0.

Parameters

ds - rank 2 bundle dataset.

Returns:

void (returns nothing)

See Also:

addDataPoint(QDataSet)


search for examples view on GitHub view source


addDataSetUpdateListener

addDataSetUpdateListener( org.das2.dataset.DataSetUpdateListener listener ) → void

Returns:

void (returns nothing)

search for examples view on GitHub view source


addSelectedDataSetUpdateListener

addSelectedDataSetUpdateListener( org.das2.dataset.DataSetUpdateListener listener ) → void

Returns:

void (returns nothing)

search for examples view on GitHub view source


appendDataSet

Deprecated: see #addDataPoints, which does not use DEPEND_0.

deleteInterval

deleteInterval( DatumRange range ) → void

delete all the points within the interval. This was introduced to support the case where we are going to reprocess an interval, as with the RBSP digitizer.

Parameters

range - range to delete, end time is exclusive.

Returns:

void (returns nothing)

search for examples view on GitHub view source


deleteRow

deleteRow( int row ) → void

delete the specified row.

Parameters

row - the row, where zero is the first element.

Returns:

void (returns nothing)

search for examples view on GitHub view source


deleteRows

deleteRows( int[] selectedRows ) → void

delete the specified rows.

Parameters

selectedRows - the rows, where zero is the first element..

Returns:

void (returns nothing)

search for examples view on GitHub view source


getAppendDataSetUpListener

getAppendDataSetUpListener( ) → DataSetUpdateListener

this adds all the points in the DataSet to the list. This will also check the dataset for the special property "comment" and add it as a comment.

Returns:

the listener to receive data set updates

See Also:

org.das2.dataset.DataSetUpdateEvent


search for examples view on GitHub view source


getBundleDataSet

getBundleDataSet( ) → QDataSet

return ds[n,m] with n rows and m columns, where ds[:,0] is the x, ds[:,1] is the y, and ds[:,2:] are the additional data.

Returns:

a rank 2 dataset of the table data.

search for examples view on GitHub view source


getDataPoints

getDataPoints( ) → QDataSet

returns a entire set of data points as a rank 2 bundle. This is the same as getBundleDataSet.

Returns:

org.das2.qds.QDataSet

search for examples view on GitHub view source


getSelectedDataPoints

getSelectedDataPoints( ) → QDataSet

return the subset of the data points which are selected, as a rank 2 bundle.

Returns:

org.das2.qds.QDataSet

search for examples view on GitHub view source


getSelectedDataSet

getSelectedDataSet( ) → QDataSet

returns a data set of the selected table data. Warning: this used to return a bundle dataset with Y,plane1,plane2,etc that had DEPEND_0 for X. This now returns a bundle ds[n,m] where m is the number of columns and n is the number of records.

Returns:

a data set of the selected table data.

See Also:

select(org.das2.datum.DatumRange, org.das2.datum.DatumRange) which selects part of the dataset.


search for examples view on GitHub view source


getTimeFormat

getTimeFormat( ) → String

Get the value of timeFormat

Returns:

the value of timeFormat

search for examples view on GitHub view source


getXTagWidth

getXTagWidth( ) → Datum

Getter for property xTagWidth. When xTagWidth is zero, this implies there is no binning.

Returns:

Value of property xTagWidth.

search for examples view on GitHub view source


isModified

isModified( ) → boolean

return true when the data point recorder has been modified.

Returns:

true when the data point recorder has been modified.

search for examples view on GitHub view source


isSnapToGrid

isSnapToGrid( ) → boolean

Getter for property snapToGrid.

Returns:

Value of property snapToGrid.

search for examples view on GitHub view source


isSorted

isSorted( ) → boolean

Getter for property sorted.

Returns:

Value of property sorted.

search for examples view on GitHub view source


loadFromFile

loadFromFile( java.io.File file ) → void

Returns:

void (returns nothing)

search for examples view on GitHub view source


removeDataSetUpdateListener

removeDataSetUpdateListener( org.das2.dataset.DataSetUpdateListener listener ) → void

Returns:

void (returns nothing)

search for examples view on GitHub view source


removeSelectedDataSetUpdateListener

removeSelectedDataSetUpdateListener( org.das2.dataset.DataSetUpdateListener listener ) → void

Returns:

void (returns nothing)

search for examples view on GitHub view source


save

save( ) → boolean

Returns:

boolean

search for examples view on GitHub view source


saveBeforeExit

saveBeforeExit( ) → boolean

return true if the file was saved or "don't save" was pressed by the user.

Returns:

true if the file was saved or "don't save" was pressed by the user.

search for examples view on GitHub view source


saveToFile

saveToFile( java.io.File file ) → void

Returns:

void (returns nothing)

search for examples view on GitHub view source


select

select( DatumRange xrange, DatumRange yrange ) → int

Selects all the points in the GUI where the first column is within xrange and the second column is within yrange. Returns the first of the selected indices, or -1 if no elements are found.

Parameters

xrange - the range constraint (non-null).
yrange - the range constraint or null if no constraint.

Returns:

the first of the selected indices, or -1 if no elements are found.

See Also:

getSelectedDataSet()


search for examples view on GitHub view source


setActive

setActive( boolean active ) → void

active=true means fire off events on any change. false= wait for update button.

Parameters

active - true means fire off events on any change

Returns:

void (returns nothing)

search for examples view on GitHub view source


setSnapToGrid

setSnapToGrid( boolean snapToGrid ) → void

Setter for property snapToGrid. true indicates the xtag will be reset so that the tags are equally spaced, each xTagWidth apart.

Parameters

snapToGrid - New value of property snapToGrid.

Returns:

void (returns nothing)

search for examples view on GitHub view source


setSorted

setSorted( boolean sorted ) → void

Setter for property sorted.

Parameters

sorted - New value of property sorted.

Returns:

void (returns nothing)

search for examples view on GitHub view source


setTimeFormat

setTimeFormat( String timeFormat ) → void

Set the value of timeFormat

Parameters

timeFormat - new value of timeFormat

Returns:

void (returns nothing)

search for examples view on GitHub view source


setXTagWidth

setXTagWidth( Datum xTagWidth ) → void

bins for the data, when xTagWidth is non-zero.

Parameters

xTagWidth - New value of property xTagWidth.

Returns:

void (returns nothing)

search for examples view on GitHub view source


update

update( ) → void

Notify listeners that the dataset has updated. Pressing the "Update" button calls this.

Returns:

void (returns nothing)

search for examples view on GitHub view source