Package org.opensourcephysics.tools
Class DataToolTable
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTable
org.opensourcephysics.display.DataTable
org.opensourcephysics.tools.DataToolTable
- All Implemented Interfaces:
ImageObserver
,MenuContainer
,Serializable
,EventListener
,Accessible
,CellEditorListener
,ListSelectionListener
,RowSorterListener
,TableColumnModelListener
,TableModelListener
,Scrollable
This is a DataTable that displays DataColumns and constructs
HighlightableDatasets for a plot.
- Version:
- 1.0
- Author:
- Douglas Brown
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
A table model for this table.protected class
A class to undo/redo datatable edits.Nested classes/interfaces inherited from class org.opensourcephysics.display.DataTable
DataTable.DataModel, DataTable.DataTableColumnModel, DataTable.DoubleRenderer, DataTable.NumberFormatDialog, DataTable.OSPDataTableModel, DataTable.OSPTableModel, DataTable.PrecisionRenderer, DataTable.RowNumberRenderer, DataTable.UnitRenderer
Nested classes/interfaces inherited from class javax.swing.JTable
JTable.AccessibleJTable, JTable.DropLocation, JTable.PrintMode
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final int
protected static final int
protected static final int
protected static final int
protected static String[]
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static Color
protected static Color
Fields inherited from class org.opensourcephysics.display.DataTable
clickCountToSort, dataTableModel, defaultDoubleRenderer, formatDialog, includeHeadersInCopiedData, labelColumnWidth, maximumFractionDigits, minimumDataColumnWidth, mode, MODE_APPEND_ROW, MODE_CANCEL, MODE_CELLS, MODE_CLEAR, MODE_COL_SETVISIBLE, MODE_COLUMN, MODE_CREATE, MODE_DELETE_ROW, MODE_FORMAT, MODE_FUNCTION, MODE_HEADER, MODE_HIGHLIGHT, MODE_INSERT_ROW, MODE_MODEL, MODE_PATTERN, MODE_REFRESH, MODE_SELECT, MODE_SET_TAINTED, MODE_SHOW, MODE_TAB, MODE_TRACK_CHOOSE, MODE_TRACK_DATA, MODE_TRACK_FUNCTION, MODE_TRACK_LOADED, MODE_TRACK_LOADER, MODE_TRACK_NEW, MODE_TRACK_REFRESH, MODE_TRACK_SELECT, MODE_TRACK_SELECTEDPOINT, MODE_TRACK_STATE, MODE_TRACK_STEP, MODE_TRACK_STEPS, MODE_TRACK_TRANSFORM, MODE_UNKNOWN, MODE_UPDATE_ROWS, MODE_VALUES, NO_PATTERN, PROPERTY_DATATABLE_FORMAT, rowName, rowNumberRenderer, SHIFTED, tainted
Fields inherited from class javax.swing.JTable
AUTO_RESIZE_ALL_COLUMNS, AUTO_RESIZE_LAST_COLUMN, AUTO_RESIZE_NEXT_COLUMN, AUTO_RESIZE_OFF, AUTO_RESIZE_SUBSEQUENT_COLUMNS, autoCreateColumnsFromModel, autoResizeMode, cellEditor, cellSelectionEnabled, columnModel, dataModel, defaultEditorsByColumnClass, defaultRenderersByColumnClass, editingColumn, editingRow, editorComp, gridColor, preferredViewportSize, rowHeight, rowMargin, rowSelectionAllowed, selectionBackground, selectionForeground, selectionModel, showHorizontalLines, showVerticalLines, tableHeader
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
Constructor Summary
ConstructorsConstructorDescriptionDataToolTable
(DataToolTab tab) Constructs a DataToolTable for the specified DataTooltab. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deselects all selected columns and rows.protected void
Clears the selection if it consists of only an empty end row.protected void
Clears the working data.protected void
createHeaderPopup
(int col) protected DataTable.OSPDataTableModel
Overridden in DataToolTable in order to use its own implementation of OSPDataTableModeldeleteCells
(int[] rows, HashMap<String, double[]> values) Deletes cells in a column.protected Dataset
deleteColumn
(String colName) Deletes a column.protected double[]
deletePoints
(Dataset dataset, int[] rows) Deletes points from a dataset.deleteRows
(int[] rows) Deletes rows.protected void
deleteSelectedColumns
(boolean postEdit) Deletes the selected columnsprotected void
protected void
dorepaint
(int i) protected void
getCellEditor
(int row, int col) Returns the editor for a cell specified by row and column.getCellRenderer
(int row, int col) Overrides DataTable getCellRenderer() method.protected Dataset
getDataset
(String colName) Gets the source dataset associated with table column name.getFormatDialog
(String[] names, String[] selected) Gets the format setter dialog.String[]
Gets the names of columns with visible markers.Gets the selected column names.protected HighlightableDataset
Gets the selected data.protected org.opensourcephysics.tools.DataToolTable.WorkingDataset
Gets the working data: first two data columns in x-y orderprotected org.opensourcephysics.tools.DataToolTable.WorkingDataset
getWorkingData
(String colName) Gets the working data for a specified column name.protected int
Gets the x-axis view column.protected int
Gets the y-axis view column.void
hideMarkers
(String[] hiddenColumns) Hides markers of named columns.insertCells
(int[] rows, HashMap<String, double[]> values) Inserts cells with values specified by column name.protected void
insertColumn
(Dataset data, int col) Inserts a column dataset.protected double[]
insertPoints
(Dataset dataset, int[] rows, double[] vals) Inserts points into a dataset.insertRows
(int[] rows, HashMap<String, double[]> values) Inserts rows with values specified by column name.protected boolean
isEmptyCells
(int row, ArrayList<String> columnNames) Determines if a row is empty.protected boolean
isEmptyRow
(int row) Determines if a row is empty.boolean
isFitFittable
(KnownFunction fit, boolean allowNone) void
moveColumn
(String var, int col) void
Refreshes the data functions.void
refreshTable
(int mode) Refreshes the data in the table.protected void
Refreshes the undo and redo menu items.protected void
removeWorkingData
(String colName) Removes the working data for a specified column name.protected void
renameColumn
(String oldName, String newName) Renames a column.replaceCells
(int[] rows, HashMap<String, double[]> values) Replaces cells.protected double[]
replacePoints
(Dataset dataset, int[] rows, double[] vals) Replaces points in a dataset.void
Selects all cells in the table.void
protected void
setSelectedColumnNames
(Collection<String> names) Sets the selected column names.void
setWorkingColumns
(String xColName, String yColName) Sets the working columns by name.protected void
Displays the data builder.protected boolean
trimEmptyRows
(int minSize) Trims empty rows from bottom of table up to a specified minimum.protected void
updateRowSelection
(int firstIndex, boolean isAdjusting) Overridden in DataToolTableMethods inherited from class org.opensourcephysics.display.DataTable
add, addColumn, addColumnSelectionInterval, clear, convertColumnIndexToModel, copyTable, createDefaultColumnsFromModel, dispose, findLastAddedModelIndex, getData, getFormatPattern, getFormattedColumnNames, getFormattedValueAt, getMaximumFractionDigits, getMinimumTableWidth, getModelColumnOrder, getModelRow, getPrecisionRenderer, getRowCount, getSelectedModelRows, getSelectedModelRowsBS, getSortedRow, getViewRow, haveSelectedRows, init, isRowNumberVisible, refreshColumnModel, refreshTable, refreshTable, refreshTableNow, remove, resetSort, resizeAndRepaint, scrollColumnToVisible, scrollRowToVisible, selectModelRows, selectModelRowsBS, selectTableColsBS, selectTableRowsBS, setColumnVisible, setFormatPattern, setLabelColumnWidth, setMaximumFractionDigits, setMaximumFractionDigits, setModel, setModelColumnOrder, setRefreshDelay, setRowNumberVisible, setSelectedColumnsFromModelBS, setSelectedModelRowsBS, setUnits, sort, unshiftName, updateColumnModel
Methods inherited from class javax.swing.JTable
addNotify, addRowSelectionInterval, changeSelection, columnAdded, columnAtPoint, columnMarginChanged, columnMoved, columnRemoved, columnSelectionChanged, configureEnclosingScrollPane, convertColumnIndexToView, convertRowIndexToModel, convertRowIndexToView, createDefaultColumnModel, createDefaultDataModel, createDefaultEditors, createDefaultRenderers, createDefaultSelectionModel, createDefaultTableHeader, createScrollPaneForTable, doLayout, editCellAt, editCellAt, editingCanceled, editingStopped, getAccessibleContext, getAutoCreateColumnsFromModel, getAutoCreateRowSorter, getAutoResizeMode, getCellEditor, getCellRect, getCellSelectionEnabled, getColumn, getColumnClass, getColumnCount, getColumnModel, getColumnName, getColumnSelectionAllowed, getDefaultEditor, getDefaultRenderer, getDragEnabled, getDropLocation, getDropMode, getEditingColumn, getEditingRow, getEditorComponent, getFillsViewportHeight, getGridColor, getIntercellSpacing, getModel, getPreferredScrollableViewportSize, getPrintable, getRowHeight, getRowHeight, getRowMargin, getRowSelectionAllowed, getRowSorter, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedColumn, getSelectedColumnCount, getSelectedColumns, getSelectedRow, getSelectedRowCount, getSelectedRows, getSelectionBackground, getSelectionForeground, getSelectionModel, getShowHorizontalLines, getShowVerticalLines, getSurrendersFocusOnKeystroke, getTableHeader, getToolTipText, getUI, getUIClassID, getUpdateSelectionOnSort, getValueAt, initializeLocalVars, isCellEditable, isCellSelected, isColumnSelected, isEditing, isRowSelected, moveColumn, paramString, prepareEditor, prepareRenderer, print, print, print, print, print, processKeyBinding, removeColumn, removeColumnSelectionInterval, removeEditor, removeNotify, removeRowSelectionInterval, rowAtPoint, selectAll, setAutoCreateColumnsFromModel, setAutoCreateRowSorter, setAutoResizeMode, setCellEditor, setCellSelectionEnabled, setColumnModel, setColumnSelectionAllowed, setColumnSelectionInterval, setDefaultEditor, setDefaultRenderer, setDragEnabled, setDropMode, setEditingColumn, setEditingRow, setFillsViewportHeight, setGridColor, setIntercellSpacing, setPreferredScrollableViewportSize, setRowHeight, setRowHeight, setRowMargin, setRowSelectionAllowed, setRowSelectionInterval, setRowSorter, setSelectionBackground, setSelectionForeground, setSelectionMode, setSelectionModel, setShowGrid, setShowHorizontalLines, setShowVerticalLines, setSurrendersFocusOnKeystroke, setTableHeader, setUI, setUpdateSelectionOnSort, setValueAt, sizeColumnsToFit, sizeColumnsToFit, sorterChanged, tableChanged, unconfigureEnclosingScrollPane, updateUI, valueChanged
Methods inherited from class javax.swing.JComponent
addAncestorListener, 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, 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, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, 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, validateTree
Methods inherited from class java.awt.Component
action, 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, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
RENAME_COLUMN_EDIT
protected static final int RENAME_COLUMN_EDIT- See Also:
-
INSERT_COLUMN_EDIT
protected static final int INSERT_COLUMN_EDIT- See Also:
-
DELETE_COLUMN_EDIT
protected static final int DELETE_COLUMN_EDIT- See Also:
-
INSERT_CELLS_EDIT
protected static final int INSERT_CELLS_EDIT- See Also:
-
DELETE_CELLS_EDIT
protected static final int DELETE_CELLS_EDIT- See Also:
-
REPLACE_CELLS_EDIT
protected static final int REPLACE_CELLS_EDIT- See Also:
-
INSERT_ROWS_EDIT
protected static final int INSERT_ROWS_EDIT- See Also:
-
DELETE_ROWS_EDIT
protected static final int DELETE_ROWS_EDIT- See Also:
-
DELIMITED_TEXT_EDIT
protected static final int DELIMITED_TEXT_EDIT- See Also:
-
editTypes
-
xAxisColor
-
yAxisColor
-
-
Constructor Details
-
DataToolTable
Constructs a DataToolTable for the specified DataTooltab.- Parameters:
tab
-
-
-
Method Details
-
createTableModel
Description copied from class:DataTable
Overridden in DataToolTable in order to use its own implementation of OSPDataTableModel- Overrides:
createTableModel
in classDataTable
- Returns:
-
updateRowSelection
protected void updateRowSelection(int firstIndex, boolean isAdjusting) Description copied from class:DataTable
Overridden in DataToolTable- Overrides:
updateRowSelection
in classDataTable
-
doTableMousePressed
-
doHeaderMouseClicked
-
createHeaderPopup
protected void createHeaderPopup(int col) -
dorepaint
protected void dorepaint(int i) -
getWorkingData
Gets the working data for a specified column name. The working y-data is the named table column. The working x-data is the x (yellow) table column- Parameters:
colName
- the name of the data column- Returns:
- the working dataset
-
getWorkingData
protected org.opensourcephysics.tools.DataToolTable.WorkingDataset getWorkingData()Gets the working data: first two data columns in x-y order- Returns:
- the working dataset
-
removeWorkingData
Removes the working data for a specified column name.- Parameters:
colName
- the name of the data column
-
deleteSelectedColumns
protected void deleteSelectedColumns(boolean postEdit) Deletes the selected columns- Parameters:
postEdit
- true to post an undoable edit
-
clearWorkingData
protected void clearWorkingData()Clears the working data. -
getDataset
Gets the source dataset associated with table column name.- Parameters:
colName
- the column name- Returns:
- the dataset
-
getSelectedData
Gets the selected data. The returned dataset consists of the selected rows in the first two columns of the table in x-y order. This also sets the highlights of the working data and populates the workingRows map.- Returns:
- the data in the selected rows, or all data if no rows are selected
-
getSelectedColumnNames
Gets the selected column names.- Returns:
- ArrayList of selected column names
-
setSelectedColumnNames
Sets the selected column names.- Parameters:
names
- Collection of column names to select
-
insertColumn
Inserts a column dataset.- Parameters:
data
- the dataset to insertcol
- the insertion view column number
-
deleteColumn
Deletes a column.- Parameters:
colName
- the column name to delete- Returns:
- the deleted dataset
-
insertCells
Inserts cells with values specified by column name. Existing cells are shifted down and other columns are padded with NaN at the end if needed.- Parameters:
rows
- the model rows to insertvalues
- HashMap of column name to double[] values- Returns:
- HashMap of column name to double[] inserted values
-
deleteCells
Deletes cells in a column. Remaining cells are shifted up.- Parameters:
rows
- the model rows to deletevalues
- HashMap of column name to (ignored) double[] values- Returns:
- HashMap of column name to double[] deleted values
-
replaceCells
Replaces cells.- Parameters:
rows
- the model rows to replace in ascending ordervalues
- HashMap of column name to double[] new values- Returns:
- HashMap of column name to double[] old values
-
insertRows
Inserts rows with values specified by column name. Unspecified values are set to NaN.- Parameters:
rows
- the model rows to insertvalues
- HashMap of column name to double[] values- Returns:
- HashMap of column name to double[] inserted values
-
deleteRows
Deletes rows.- Parameters:
rows
- the model rows to delete- Returns:
- the deleted values
-
isEmptyRow
protected boolean isEmptyRow(int row) Determines if a row is empty.- Parameters:
row
- the model row number- Returns:
- true if all datasets are NaN at row index
-
isEmptyCells
Determines if a row is empty.- Parameters:
row
- the model row numbercolumnNames
- a list of column names- Returns:
- true if all named columns are NaN at row index
-
getXColumn
protected int getXColumn()Gets the x-axis view column.- Returns:
- col the view column number
-
getYColumn
protected int getYColumn()Gets the y-axis view column.- Returns:
- col the view column number
-
replacePoints
Replaces points in a dataset.- Parameters:
dataset
- the datasetrows
- the rows to replace in ascending ordervals
- array of new y-values- Returns:
- array of values replaced
-
insertPoints
Inserts points into a dataset.- Parameters:
dataset
- the datasetrows
- the rows to insert in ascending ordervals
- the corresponding y-values to insert- Returns:
- array of values inserted
-
deletePoints
Deletes points from a dataset.- Parameters:
dataset
- the datasetrows
- the rows to remove in ascending order- Returns:
- the removed y-values
-
trimEmptyRows
protected boolean trimEmptyRows(int minSize) Trims empty rows from bottom of table up to a specified minimum.- Parameters:
minSize
- the minimum row count to keep- Returns:
- true if one or mmore rows were trimmed
-
clearSelectionIfEmptyEndRow
protected void clearSelectionIfEmptyEndRow()Clears the selection if it consists of only an empty end row. -
showDataBuilder
protected void showDataBuilder()Displays the data builder. -
renameColumn
Renames a column.- Parameters:
oldName
- the old namenewName
- the new name
-
refreshUndoItems
protected void refreshUndoItems()Refreshes the undo and redo menu items. -
refreshDataFunctions
public void refreshDataFunctions()Refreshes the data functions. -
selectAllCells
public void selectAllCells()Selects all cells in the table. -
clearSelection
public void clearSelection()Deselects all selected columns and rows. Overrides JTable method.- Overrides:
clearSelection
in classJTable
-
refreshTable
public void refreshTable(int mode) Refreshes the data in the table. Overrides DataTable method.- Overrides:
refreshTable
in classDataTable
-
getFormatDialog
Description copied from class:DataTable
Gets the format setter dialog.- Overrides:
getFormatDialog
in classDataTable
- Parameters:
names
- the column name choicesselected
- the initially selected names- Returns:
- the format setter dialog
-
getHiddenMarkers
Gets the names of columns with visible markers.- Returns:
- array of column names
-
hideMarkers
Hides markers of named columns.- Parameters:
hiddenColumns
- names of columns with hidden markers
-
setWorkingColumns
Sets the working columns by name.- Parameters:
xColName
- the name of the horizontal axis variableyColName
- the name of the vertical axis variable
-
setFont
- Overrides:
setFont
in classJComponent
-
getCellRenderer
Overrides DataTable getCellRenderer() method.- Overrides:
getCellRenderer
in classDataTable
- Parameters:
row
- the row numbercol
- the column number- Returns:
- the cell editor
-
getCellEditor
Returns the editor for a cell specified by row and column.- Overrides:
getCellEditor
in classJTable
- Parameters:
row
- the row numbercol
- the column number- Returns:
- the cell editor
-
isFitFittable
-
moveColumn
-