com.jstatcom.equation
Class CoeffTable
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JTable
-
- com.jstatcom.table.BorderTable
-
- com.jstatcom.table.JSCAbstractDataTable
-
- com.jstatcom.table.JSCNArrayTable
-
- com.jstatcom.equation.CoeffTable
-
- All Implemented Interfaces:
- NumberDisplayTable, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.event.CellEditorListener, javax.swing.event.ListSelectionListener, javax.swing.event.RowSorterListener, javax.swing.event.TableColumnModelListener, javax.swing.event.TableModelListener, javax.swing.Scrollable
public final class CoeffTable extends JSCNArrayTable
SpecialJSCNArrayTableto display coefficients of a model. Usually aCoeffTableis part of anEqTermand displayed in aEqPanel.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.JTable
javax.swing.JTable.DropLocation, javax.swing.JTable.PrintMode
-
-
Field Summary
-
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
-
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
-
Constructor Summary
Constructors Constructor and Description CoeffTable()Default constructor.CoeffTable(int subsetIndex)Creates a CoeffTable with an index denoting the part in the equation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description JSCNArraygetJSCNArraySubsetRes()Gets the data object storing the subset restrictions ornullif no subset restrictions are set.SubMatModelgetSubMatModel()Gets the underlyingSubMatModel.java.lang.StringgetSymbolNameSubsetRes()Gets the symbolname for the subset restrictions ornullif none was set.voidsetColumnCount(int arg)Sets the column count of this table.voidsetColumnModel(javax.swing.table.TableColumnModel newModel)Sets the column model for all columns of this table.voidsetIndex(int arg)Sets the index denoting the part in the equation for this table.voidsetSymbolNameSubsetRes(java.lang.String newSymbolNameSubsetRes)Sets the symbol name of the subset restrictions that correspond to the coefficients displayed in this table.voidsetVisible(boolean aFlag)Extends the super method by firering the (boolean) property change "visible".voidtableChanged(javax.swing.event.TableModelEvent e)Manages visibility of this table on table changed events.-
Methods inherited from class com.jstatcom.table.JSCNArrayTable
getJSCNArray, getNumberRange, getPrecision, setModelForJSCData, setModelForSymbolName, setNumberRange, setPrecision
-
Methods inherited from class com.jstatcom.table.JSCAbstractDataTable
addNotify, createDefaultColumnsFromModel, getCellRenderer, getIntSelectionIndex, getJSCData, getMouseListener, getRowSelectionMode, getSymbolName, getSymbolNameSelRows, getSymbolScope, getSymbolTable, getTablePopup, isEditable, setCellRenderer, setColEditable, setEditable, setJSCData, setModel, setMouseListener, setRowEditable, setRowSelectionMode, setSymbolName, setSymbolNameSelRows, setSymbolScope, setSymbolTable, setTablePopup, updateUI, valueChanged
-
Methods inherited from class com.jstatcom.table.BorderTable
columnAtPoint, getCellRect, getColumnWidth, getMaximumColumnWidth, getMaximumSize, getMinimumColumnWidth, getMinimumSize, getPreferredSize, isDynamicColumnWidth, maxCellLength, rowAtPoint, setBorder, setColumnWidth, setDynamicColumnWidth, setIntercellSpacing, setMaximumColumnWidth, setMinimumColumnWidth, sizeColumnsToFit
-
Methods inherited from class javax.swing.JTable
addColumn, addColumnSelectionInterval, addRowSelectionInterval, changeSelection, clearSelection, columnAdded, columnMarginChanged, columnMoved, columnRemoved, columnSelectionChanged, convertColumnIndexToModel, convertColumnIndexToView, convertRowIndexToModel, convertRowIndexToView, createScrollPaneForTable, doLayout, editCellAt, editCellAt, editingCanceled, editingStopped, getAccessibleContext, getAutoCreateColumnsFromModel, getAutoCreateRowSorter, getAutoResizeMode, getCellEditor, getCellEditor, getCellRenderer, getCellSelectionEnabled, getColumn, getColumnClass, getColumnCount, getColumnModel, getColumnName, getColumnSelectionAllowed, getDefaultEditor, getDefaultRenderer, getDragEnabled, getDropLocation, getDropMode, getEditingColumn, getEditingRow, getEditorComponent, getFillsViewportHeight, getGridColor, getIntercellSpacing, getModel, getPreferredScrollableViewportSize, getPrintable, getRowCount, 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, isCellEditable, isCellSelected, isColumnSelected, isEditing, isRowSelected, moveColumn, prepareEditor, prepareRenderer, print, print, print, print, print, removeColumn, removeColumnSelectionInterval, removeEditor, removeNotify, removeRowSelectionInterval, selectAll, setAutoCreateColumnsFromModel, setAutoCreateRowSorter, setAutoResizeMode, setCellEditor, setCellSelectionEnabled, setColumnSelectionAllowed, setColumnSelectionInterval, setDefaultEditor, setDefaultRenderer, setDragEnabled, setDropMode, setEditingColumn, setEditingRow, setFillsViewportHeight, setGridColor, setPreferredScrollableViewportSize, setRowHeight, setRowHeight, setRowMargin, setRowSelectionAllowed, setRowSelectionInterval, setRowSorter, setSelectionBackground, setSelectionForeground, setSelectionMode, setSelectionModel, setShowGrid, setShowHorizontalLines, setShowVerticalLines, setSurrendersFocusOnKeystroke, setTableHeader, setUI, setUpdateSelectionOnSort, setValueAt, sizeColumnsToFit, sorterChanged
-
Methods inherited from class javax.swing.JComponent
addAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
-
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, 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, 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, transferFocusUpCycle
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.jstatcom.table.NumberDisplayTable
getCellRenderer, setCellRenderer
-
-
-
-
Constructor Detail
-
CoeffTable
public CoeffTable()
Default constructor.
-
CoeffTable
public CoeffTable(int subsetIndex)
Creates a CoeffTable with an index denoting the part in the equation.- Parameters:
subsetIndex- inded of equation part
-
-
Method Detail
-
getJSCNArraySubsetRes
public JSCNArray getJSCNArraySubsetRes()
Gets the data object storing the subset restrictions ornullif no subset restrictions are set.- Returns:
- data object with subset restrictions
-
getSubMatModel
public SubMatModel getSubMatModel()
Gets the underlyingSubMatModel.- Returns:
- sub matrix model
-
getSymbolNameSubsetRes
public java.lang.String getSymbolNameSubsetRes()
Gets the symbolname for the subset restrictions ornullif none was set.- Returns:
- symbol name
-
setColumnCount
public void setColumnCount(int arg)
Sets the column count of this table.- Parameters:
arg- number of cols
-
setColumnModel
public void setColumnModel(javax.swing.table.TableColumnModel newModel)
Sets the column model for all columns of this table. Works only, if a submatrix model was set before.- Overrides:
setColumnModelin classjavax.swing.JTable- Parameters:
newModel- the table model- Throws:
java.lang.IllegalStateException-if (subMatrixModel != null)
-
setIndex
public void setIndex(int arg)
Sets the index denoting the part in the equation for this table.- Parameters:
arg- equation index
-
setSymbolNameSubsetRes
public void setSymbolNameSubsetRes(java.lang.String newSymbolNameSubsetRes)
Sets the symbol name of the subset restrictions that correspond to the coefficients displayed in this table. How the restrictions affect the behaviour of this table is determined by the cell renderer, mouse listener, editor and table popup.- Parameters:
newSymbolNameSubsetRes-- Throws:
java.lang.IllegalArgumentException- ifnewSymbolNameSubsetResis not a valid name for a symbol
-
setVisible
public void setVisible(boolean aFlag)
Extends the super method by firering the (boolean) property change "visible".- Overrides:
setVisiblein classjavax.swing.JComponent- Parameters:
aFlag- true to make the component visible
-
tableChanged
public void tableChanged(javax.swing.event.TableModelEvent e)
Manages visibility of this table on table changed events.- Specified by:
tableChangedin interfacejavax.swing.event.TableModelListener- Overrides:
tableChangedin classJSCAbstractDataTable- Parameters:
e- the table model event
-
-
DMelt 3.0 © DataMelt by jWork.ORG