com.jstatcom.equation
Class EqTermAR
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- com.jstatcom.equation.EqTerm
-
- com.jstatcom.equation.EqTermAR
-
- All Implemented Interfaces:
- SymbolListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible
public final class EqTermAR extends EqTerm implements java.beans.PropertyChangeListener, SymbolListener
Implementation ofEqTermthat represents one or more lags of a (Vector) AR model.Clients should make sure that the underlying data objects have the correct dimensions and ordering of variables for the display to be in sync with the data.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Field Summary
-
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 EqTermAR()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddNotify()Calls supermethod and updates layout in a new thread.intgetColumnWidth()Gets the column width of the alpha table.java.awt.event.MouseListenergetMouseListenerCoeff()Gets the mouse listener of the underlying coefficients tables.intgetPrecision()Gets the precision of the underlying coefficients tables.javax.swing.table.TableCellRenderergetRendererCoeff()Gets the cell renderer of the underlying coefficients tables.intgetStartLag()Gets the lag that this equation term starts with.java.lang.StringgetSymbolNameCoeff()Gets the symbolname for the coefficients.java.lang.StringgetSymbolNameLags()Gets the symbolname for the lags.java.lang.StringgetSymbolNameSubsetRes()Gets the symbolname for the subset restrictions corresponding to the coefficients.java.lang.StringgetSymbolNameVariables()Gets the symbolname for the names of the variables.javax.swing.JPopupMenugetTablePopup()Gets the popup menu for the underlying coefficients tables.booleanisEditable()Gets whether the underlying coefficients tables are editable.voidpropertyChange(java.beans.PropertyChangeEvent evt)Manages visibility of tis term.voidsetColumnWidth(int colWidth)Sets the column width of the underlying coefficients tables.voidsetEditable(boolean isEditable)Sets whether the underlying coefficients tables are editable.voidsetLeadingSignVisible(boolean isVisible)Manages visibility of the leading sign label.voidsetMouseListenerCoeff(java.awt.event.MouseListener listener)Sets the mouse listener for the underlying coefficients tables.voidsetPrecision(int precision)Sets the precision for the underlying coefficients tables.voidsetRendererCoeff(javax.swing.table.TableCellRenderer renderer)Sets the cell renderer for the underlying coefficients tables.voidsetStartLag(int startLag)Sets with which lag the equation term starts with.voidsetSymbolNameCoeff(java.lang.String symbolName)Sets the symbolname for the coefficients.voidsetSymbolNameLags(java.lang.String newSymbolNameLags)Sets the symbolname for the lags.voidsetSymbolNameSubsetRes(java.lang.String symbolName)Sets the symbolname for the subset restrictions corresponding to the coefficients.voidsetSymbolNameVariables(java.lang.String symbolName)Sets the symbolname for the names of the variables.voidsetSymbolScope(Scope scope)Sets the symbol scope, which defines which symbol table to use (local,globalorupper).voidsetTablePopup(javax.swing.JPopupMenu newTablePopup)Sets the popup menu for the underlying coefficients tables.voidvalueChanged(SymbolEvent evt)Updates layout on symbol events of the underlying lag symbol.-
Methods inherited from class com.jstatcom.equation.EqTerm
getMaximumSize, getMinimumSize, getPreferredSize, getSymbolScope, setDataAvailable, setVisible
-
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
-
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, 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, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, 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, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, 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, 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
-
-
-
-
Method Detail
-
addNotify
public void addNotify()
Calls supermethod and updates layout in a new thread. It also set the symboltables for the childs.- Overrides:
addNotifyin classjavax.swing.JComponent
-
getColumnWidth
public int getColumnWidth()
Gets the column width of the alpha table.- Returns:
- column width
-
getMouseListenerCoeff
public java.awt.event.MouseListener getMouseListenerCoeff()
Gets the mouse listener of the underlying coefficients tables.- Returns:
- java.awt.event.MouseListener
-
getPrecision
public int getPrecision()
Gets the precision of the underlying coefficients tables.- Returns:
- precision
-
getRendererCoeff
public javax.swing.table.TableCellRenderer getRendererCoeff()
Gets the cell renderer of the underlying coefficients tables.- Returns:
- javax.swing.table.TableCellRenderer
-
getStartLag
public int getStartLag()
Gets the lag that this equation term starts with. Usually this is -1.- Returns:
- int start lag
-
getSymbolNameCoeff
public java.lang.String getSymbolNameCoeff()
Gets the symbolname for the coefficients.- Returns:
- symbol name
-
getSymbolNameLags
public java.lang.String getSymbolNameLags()
Gets the symbolname for the lags. Ther underlying data must be aJSCInt.- Returns:
- symbol name
-
getSymbolNameSubsetRes
public java.lang.String getSymbolNameSubsetRes()
Gets the symbolname for the subset restrictions corresponding to the coefficients.- Returns:
- symbol name
-
getSymbolNameVariables
public java.lang.String getSymbolNameVariables()
Gets the symbolname for the names of the variables.- Returns:
- symbol name
-
getTablePopup
public javax.swing.JPopupMenu getTablePopup()
Gets the popup menu for the underlying coefficients tables.- Returns:
- popup menu
-
isEditable
public boolean isEditable()
Gets whether the underlying coefficients tables are editable.- Returns:
trueif editable
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
Manages visibility of tis term.- Specified by:
propertyChangein interfacejava.beans.PropertyChangeListener- Parameters:
evt- property change event
-
setColumnWidth
public void setColumnWidth(int colWidth)
Sets the column width of the underlying coefficients tables.- Parameters:
colWidth- column width
-
setEditable
public void setEditable(boolean isEditable)
Sets whether the underlying coefficients tables are editable.- Parameters:
isEditable-trueif editable
-
setLeadingSignVisible
public void setLeadingSignVisible(boolean isVisible)
Manages visibility of the leading sign label.- Specified by:
setLeadingSignVisiblein classEqTerm- Parameters:
isVisible-trueif visible
-
setSymbolScope
public void setSymbolScope(Scope scope)
Sets the symbol scope, which defines which symbol table to use (local,globalorupper).- Overrides:
setSymbolScopein classEqTerm- Parameters:
scope- the symbol scope- Throws:
java.lang.IllegalArgumentException-if (scope == null)
-
setMouseListenerCoeff
public void setMouseListenerCoeff(java.awt.event.MouseListener listener)
Sets the mouse listener for the underlying coefficients tables.- Parameters:
listener- java.awt.event.MouseListener
-
setPrecision
public void setPrecision(int precision)
Sets the precision for the underlying coefficients tables.- Parameters:
precision-
-
setRendererCoeff
public void setRendererCoeff(javax.swing.table.TableCellRenderer renderer)
Sets the cell renderer for the underlying coefficients tables.- Parameters:
renderer- javax.swing.table.TableCellRenderer
-
setStartLag
public void setStartLag(int startLag)
Sets with which lag the equation term starts with. Only backward lags are supported, meaning that startLag must greater or equal to zero.- Parameters:
startLag- lag to start from- Throws:
java.lang.IllegalArgumentException-if (startLag < 0)
-
setSymbolNameCoeff
public void setSymbolNameCoeff(java.lang.String symbolName)
Sets the symbolname for the coefficients.- Parameters:
symbolName- for coefficients
-
setSymbolNameLags
public void setSymbolNameLags(java.lang.String newSymbolNameLags)
Sets the symbolname for the lags. Ther underlying data must be aJSCInt.- Parameters:
newSymbolNameLags-
-
setSymbolNameSubsetRes
public void setSymbolNameSubsetRes(java.lang.String symbolName)
Sets the symbolname for the subset restrictions corresponding to the coefficients.- Parameters:
symbolName- for subset restrictions
-
setSymbolNameVariables
public void setSymbolNameVariables(java.lang.String symbolName)
Sets the symbolname for the names of the variables.- Parameters:
symbolName- for the variable names
-
setTablePopup
public void setTablePopup(javax.swing.JPopupMenu newTablePopup)
Sets the popup menu for the underlying coefficients tables.- Parameters:
newTablePopup- popup component
-
valueChanged
public void valueChanged(SymbolEvent evt)
Updates layout on symbol events of the underlying lag symbol.- Specified by:
valueChangedin interfaceSymbolListener- Parameters:
evt- symbol event
-
-
DMelt 3.0 © DataMelt by jWork.ORG