public class DataPointRecorderNew
extends javax.swing.JPanel
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<QDataSet> |
dataPoints
Deprecated.
|
protected java.lang.String[] |
defaultNamesArray
Deprecated.
|
protected Units[] |
defaultUnitsArray
Deprecated.
|
protected javax.swing.table.AbstractTableModel |
myTableModel
Deprecated.
|
protected java.lang.String[] |
namesArray
Deprecated.
array of names that are also the column headers.
|
protected javax.swing.JScrollPane |
scrollPane
Deprecated.
|
protected javax.swing.JTable |
table
Deprecated.
|
protected Units[] |
unitsArray
Deprecated.
units[index]==null if HashMap contains non-datum object.
|
protected javax.swing.JButton |
updateButton
Deprecated.
|
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
DataPointRecorderNew()
Deprecated.
Creates a new instance of DataPointRecorder
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDataPoint(Datum x,
Datum y)
Deprecated.
add just the x and y values.
|
void |
addDataPoint(Datum x,
Datum y,
java.util.Map<java.lang.String,java.lang.Object> planes)
Deprecated.
add the data point, along with metadata such as the key press.
|
void |
addDataPoint(Datum x,
Datum y,
java.lang.Object meta)
Deprecated.
add the x and y values with unnamed metadata.
|
void |
addDataPoint(QDataSet rec)
Deprecated.
add the record to the collection of records.
|
void |
addDataPointSelectionListener(DataPointSelectionListener listener)
Deprecated.
Registers DataPointSelectionListener to receive events.
|
void |
addDataSetUpdateListener(DataSetUpdateListener listener)
Deprecated.
|
void |
addSelectedDataSetUpdateListener(DataSetUpdateListener listener)
Deprecated.
|
void |
appendDataSet(VectorDataSet ds)
Deprecated.
|
static DataPointRecorderNew |
createFramed()
Deprecated.
|
void |
deleteInterval(DatumRange range)
Deprecated.
delete all the points within the interval.
|
void |
deleteRow(int row)
Deprecated.
delete the specified row.
|
void |
deleteRows(int[] selectedRows)
Deprecated.
delete the specified rows.
|
DataSetUpdateListener |
getAppendDataSetUpListener()
Deprecated.
this adds all the points in the DataSet to the list.
|
java.io.File |
getCurrentFile()
Deprecated.
shows the current name for the file.
|
QDataSet |
getDataSet()
Deprecated.
returns a data set of the table data.
|
QDataSet |
getSelectedDataSet()
Deprecated.
returns a data set of the selected table data.
|
Datum |
getXTagWidth()
Deprecated.
Getter for property xTagWidth.
|
boolean |
isModified()
Deprecated.
return true when the data point recorder has been modified.
|
boolean |
isSnapToGrid()
Deprecated.
Getter for property snapToGrid.
|
boolean |
isSorted()
Deprecated.
Getter for property sorted.
|
void |
loadFromFile(java.io.File file)
Deprecated.
load the dataset from the file.
|
void |
removeDataPointSelectionListener(DataPointSelectionListener listener)
Deprecated.
Removes DataPointSelectionListener from the list of listeners.
|
void |
removeDataSetUpdateListener(DataSetUpdateListener listener)
Deprecated.
|
void |
removeSelectedDataSetUpdateListener(DataSetUpdateListener listener)
Deprecated.
|
boolean |
save()
Deprecated.
|
boolean |
saveAs()
Deprecated.
return true if the file was saved, false if cancel
|
boolean |
saveBeforeExit()
Deprecated.
return true if the file was saved or "don't save" was pressed by the user.
|
void |
saveToFile(java.io.File file)
Deprecated.
This should be called off the event thread.
|
void |
select(DatumRange xrange,
DatumRange yrange)
Deprecated.
Selects all the points where the first column is within xrange and
the second column is within yrange.
|
void |
setActive(boolean active)
Deprecated.
active=true means fire off events on any change.
|
void |
setColumn(int i,
java.lang.String name,
Units units,
Datum deft)
Deprecated.
identify the name and unit for each column.
|
void |
setColumn(int i,
java.lang.String name,
Units units,
double deft)
Deprecated.
identify the name and unit for each column.
|
void |
setColumn(int i,
java.lang.String name,
Units units,
java.lang.String deft)
Deprecated.
identify the name and unit for each column.
|
void |
setColumnCount(int count)
Deprecated.
explicitly declare the number of columns.
|
void |
setSnapToGrid(boolean snapToGrid)
Deprecated.
Setter for property snapToGrid.
|
void |
setSorted(boolean sorted)
Deprecated.
Setter for property sorted.
|
void |
setXTagWidth(Datum xTagWidth)
Deprecated.
bins for the data, when xTagWidth is non-zero.
|
void |
update()
Deprecated.
Notify listeners that the dataset has updated.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleprotected javax.swing.JTable table
protected javax.swing.JScrollPane scrollPane
protected javax.swing.JButton updateButton
protected final transient java.util.List<QDataSet> dataPoints
protected transient Units[] unitsArray
protected transient Units[] defaultUnitsArray
protected transient java.lang.String[] namesArray
protected transient java.lang.String[] defaultNamesArray
protected javax.swing.table.AbstractTableModel myTableModel
public DataPointRecorderNew()
public void deleteInterval(DatumRange range)
range - range to delete, end time is exclusive.public void deleteRow(int row)
row - the row, where zero is the first element.public void deleteRows(int[] selectedRows)
selectedRows - the rows, where zero is the first element..public QDataSet getDataSet()
public QDataSet getSelectedDataSet()
which selects part of the dataset.public void select(DatumRange xrange, DatumRange yrange)
xrange - the range constraint (non-null).yrange - the range constraint (non-null).
return the selected index, or -1 if no elements are found.public void saveToFile(java.io.File file)
throws java.io.IOException
file - java.io.IOExceptionpublic void loadFromFile(java.io.File file)
throws java.io.IOException
file - java.io.IOExceptionpublic void setActive(boolean active)
active - public boolean saveAs()
public boolean save()
public java.io.File getCurrentFile()
public boolean saveBeforeExit()
public void update()
public static DataPointRecorderNew createFramed()
public void setColumnCount(int count)
count - the number of columns.public void setColumn(int i,
java.lang.String name,
Units units,
Datum deft)
i - the column numbername - a Java identifier for the column, e.g. "StartTime"units - units for the column, or null for dimensionless.deft - default value to use when data is not provided.public void setColumn(int i,
java.lang.String name,
Units units,
java.lang.String deft)
throws java.text.ParseException
i - the column numbername - a Java identifier for the column, e.g. "StartTime"units - units units for the column, or null for dimensionless.deft - default value to use when data is not provided, which must be parseable by units.java.text.ParseExceptionpublic void setColumn(int i,
java.lang.String name,
Units units,
double deft)
i - the column numbername - a Java identifier for the column, e.g. "StartTime"units - units units for the column, or null for dimensionless.deft - default value to use when data is not provided.public void addDataPoint(Datum x, Datum y)
x - the x positiony - the y positionpublic void addDataPoint(Datum x, Datum y, java.lang.Object meta)
x - the x positiony - the y positionmeta - any metadata (String, Double, etc ) to be recorded along with the data point.public void addDataPoint(Datum x, Datum y, java.util.Map<java.lang.String,java.lang.Object> planes)
x - the x positiony - the y positionplanes - null or additional planes. Note LinkedHashMap will keep the order of the tabs.public void addDataPoint(QDataSet rec)
dpr=DataPointRecorder() dpr.addDataPoint( createEvent( '2014-04-23/P1D', 0xFF0000, 'alert' ) )
rec - rank 1 qdataset, or 1-record rank 2 dataset (ds[1,n])public void appendDataSet(VectorDataSet ds)
public DataSetUpdateListener getAppendDataSetUpListener()
DataSetUpdateEventpublic void addDataSetUpdateListener(DataSetUpdateListener listener)
public void removeDataSetUpdateListener(DataSetUpdateListener listener)
public void addSelectedDataSetUpdateListener(DataSetUpdateListener listener)
public void removeSelectedDataSetUpdateListener(DataSetUpdateListener listener)
public boolean isSorted()
public void setSorted(boolean sorted)
sorted - New value of property sorted.public void addDataPointSelectionListener(DataPointSelectionListener listener)
listener - The listener to register.public void removeDataPointSelectionListener(DataPointSelectionListener listener)
listener - The listener to remove.public Datum getXTagWidth()
public void setXTagWidth(Datum xTagWidth)
xTagWidth - New value of property xTagWidth.public boolean isSnapToGrid()
public void setSnapToGrid(boolean snapToGrid)
snapToGrid - New value of property snapToGrid.public boolean isModified()