com.jstatcom.equation
Class CoeffTable

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JTable
                  extended by com.jstatcom.table.BorderTable
                      extended by com.jstatcom.table.JSCAbstractDataTable
                          extended by com.jstatcom.table.JSCNArrayTable
                              extended by 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

Special JSCNArrayTable to display coefficients of a model. Usually a CoeffTable is part of an EqTerm and displayed in a EqPanel.

Author:
Alexander Benkwitz, Markus Kraetzig
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JTable
javax.swing.JTable.DropLocation, javax.swing.JTable.PrintMode
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.BaselineResizeBehavior
 
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
 
Fields inherited from class java.awt.Component
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
CoeffTable()
          Default constructor.
CoeffTable(int subsetIndex)
          Creates a CoeffTable with an index denoting the part in the equation.
 
Method Summary
 JSCNArray getJSCNArraySubsetRes()
          Gets the data object storing the subset restrictions or null if no subset restrictions are set.
 SubMatModel getSubMatModel()
          Gets the underlying SubMatModel.
 java.lang.String getSymbolNameSubsetRes()
          Gets the symbolname for the subset restrictions or null if none was set.
 void setColumnCount(int arg)
          Sets the column count of this table.
 void setColumnModel(javax.swing.table.TableColumnModel newModel)
          Sets the column model for all columns of this table.
 void setIndex(int arg)
          Sets the index denoting the part in the equation for this table.
 void setSymbolNameSubsetRes(java.lang.String newSymbolNameSubsetRes)
          Sets the symbol name of the subset restrictions that correspond to the coefficients displayed in this table.
 void setVisible(boolean aFlag)
          Extends the super method by firering the (boolean) property change "visible".
 void tableChanged(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, 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, transferFocusBackward, 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, hide, 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, 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 or null if no subset restrictions are set.

Returns:
data object with subset restrictions

getSubMatModel

public SubMatModel getSubMatModel()
Gets the underlying SubMatModel.

Returns:
sub matrix model

getSymbolNameSubsetRes

public java.lang.String getSymbolNameSubsetRes()
Gets the symbolname for the subset restrictions or null if 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:
setColumnModel in class javax.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 - if newSymbolNameSubsetRes is 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:
setVisible in class javax.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:
tableChanged in interface javax.swing.event.TableModelListener
Overrides:
tableChanged in class JSCAbstractDataTable
Parameters:
e - the table model event