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.)

DataPointRecorder( )

Creates a new instance of DataPointRecorder


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 on old javadoc] [view source]


addDataPoint

addDataPoint( QDataSet ds ) → void

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

Parameters

ds - a QDataSet

Returns:

void (returns nothing)

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

addDataPoint( Datum x, Datum y ) → void
addDataPoint( double x, double y ) → void
addDataPoint( double x, double y, java.util.Map planes ) → void
addDataPoint( Datum x, Datum y, Object meta ) → void
addDataPoint( Datum x, Datum y, java.util.Map planes ) → void

addDataPointSelectionListener

addDataPointSelectionListener( org.das2.event.DataPointSelectionListener listener ) → void

Registers DataPointSelectionListener to receive events.

Parameters

listener - The listener to register.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [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 on old javadoc] [view source]


addDataSetUpdateListener

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

Parameters

listener - a DataSetUpdateListener

Returns:

void (returns nothing)

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


addSelectedDataSetUpdateListener

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

Parameters

listener - a DataSetUpdateListener

Returns:

void (returns nothing)

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


appendDataSet

Deprecated: see #addDataPoints, which does not use DEPEND_0. appendDataSet( org.das2.dataset.VectorDataSet ds ) → void

createFramed

createFramed( ) → DataPointRecorder

Returns:

org.das2.components.DataPointRecorder

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


dataPointSelected

dataPointSelected( org.das2.event.DataPointSelectionEvent e ) → void

Parameters

e - a DataPointSelectionEvent

Returns:

void (returns nothing)

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


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 on old javadoc] [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 on old javadoc] [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 on old javadoc] [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 on old javadoc] [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 on old javadoc] [view source]


getCurrentFile

getCurrentFile( ) → File

shows the current name for the file.

Returns:

the current name for the file.

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


getDataPoints

getDataPoints( ) → QDataSet

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

Returns:

a QDataSet

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


getDataSet

Deprecated: see #getDataPoints

getSelectedDataPoints

getSelectedDataPoints( ) → QDataSet

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

Returns:

a QDataSet

[search for examples] [view on GitHub] [view on old javadoc] [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 on old javadoc] [view source]


getTimeFormat

getTimeFormat( ) → String

Get the value of timeFormat

Returns:

the value of timeFormat

[search for examples] [view on GitHub] [view on old javadoc] [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 on old javadoc] [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 on old javadoc] [view source]


isSnapToGrid

isSnapToGrid( ) → boolean

Getter for property snapToGrid.

Returns:

Value of property snapToGrid.

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


isSorted

isSorted( ) → boolean

Getter for property sorted.

Returns:

Value of property sorted.

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


loadFromFile

loadFromFile( java.io.File file ) → void

Parameters

file - a File

Returns:

void (returns nothing)

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


removeDataPointSelectionListener

removeDataPointSelectionListener( org.das2.event.DataPointSelectionListener listener ) → void

Removes DataPointSelectionListener from the list of listeners.

Parameters

listener - The listener to remove.

Returns:

void (returns nothing)

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


removeDataSetUpdateListener

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

Parameters

listener - a DataSetUpdateListener

Returns:

void (returns nothing)

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


removeSelectedDataSetUpdateListener

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

Parameters

listener - a DataSetUpdateListener

Returns:

void (returns nothing)

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


save

save( ) → boolean

Returns:

boolean

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


saveAs

saveAs( ) → boolean

return true if the file was saved, false if cancel

Returns:

true if the file was saved, false if cancel

[search for examples] [view on GitHub] [view on old javadoc] [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 on old javadoc] [view source]


saveToFile

saveToFile( java.io.File file ) → void

Parameters

file - a File

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [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 on old javadoc] [view source]

select( DatumRange xrange, DatumRange yrange, boolean xOrY ) → int

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 on old javadoc] [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 on old javadoc] [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 on old javadoc] [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 on old javadoc] [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 on old javadoc] [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 on old javadoc] [view source]