|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.nuiton.math.matrix.gui.MatrixEditor
org.nuiton.math.matrix.gui.MatrixPanelEditor
public class MatrixPanelEditor
JPanel contenant une JTable pour afficher une Matrice a une ou deux dimension. TODO: Une methode permettant de retourne la sous matrice de la selection que la matrice soit reprensentée en lineaire ou non. (avoir un mapping cellule de table vers element de matrice Created: 29 oct. 2004
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
javax.swing.JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected javax.swing.JButton |
bEdit
|
protected boolean |
dimensionEdit
Boolean to autorize matrice dimension changes. |
protected javax.swing.JScrollPane |
editArea
|
protected boolean |
enabled
Deprecated. since 2.0.0 : duplicate field from parent for nothing! |
protected boolean |
linearModel
if true, use linear representation of matrix |
protected boolean |
linearModelShowDefault
if false don't show default value in matrix (ex: 0) |
protected org.nuiton.util.ListenerSet<MatrixPanelListener> |
listeners
|
protected MatrixND |
m
|
protected MatrixPopupMenu |
popupMenu
|
protected javax.swing.JTable |
table
|
protected MatrixTableModel |
tableModel
|
protected boolean |
visible
Deprecated. since 2.0.0 : duplicate field from parent for nothing! |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, 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 |
|---|
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 | |
|---|---|
MatrixPanelEditor()
Construct a new JPanel to edit matrix. |
|
MatrixPanelEditor(boolean dimensionEdit)
Construct a new JPanel to edit matrix. |
|
MatrixPanelEditor(boolean dimensionEdit,
int width,
int height)
Construct a new JPanel to edit matrix. |
|
MatrixPanelEditor(MatrixND m,
boolean dimensionEdit)
Construct a new JPanel to edit matrix. |
|
| Method Summary | |
|---|---|
void |
addMatrixListener(MatrixPanelListener l)
Deprecated. since 2.0.0 : this is not a valid listener adder |
void |
addMatrixPanelListener(MatrixPanelListener l)
|
protected void |
fireEvent()
|
javax.swing.JButton |
getButtonEdit()
|
protected MatrixFactory |
getFactory()
|
MatrixND |
getMatrix()
|
MatrixPanelListener[] |
getMatrixPanelListeners()
|
javax.swing.JTable |
getTable()
|
protected void |
initDimensionEdit()
|
protected void |
initObject(MatrixND m)
|
protected void |
initObjet()
|
boolean |
isDimensionEdit()
Get the value of dimensionEdit. |
boolean |
isEnabled()
|
java.lang.Boolean |
isLinearModel()
|
java.lang.Boolean |
isLinearModelShowDefault()
|
boolean |
isVisible()
|
static void |
main(java.lang.String[] args)
Une petite fonction main pour le test... |
void |
removeMatrixPanelListener(MatrixPanelListener l)
|
void |
setDimensionEdit(boolean v)
Set the value of dimensionEdit. |
void |
setEnabled(boolean enabled)
Enable the matrix to be edited. |
void |
setLinearModel(java.lang.Boolean linearModel)
|
void |
setLinearModelShowDefault(java.lang.Boolean linearModelShowDefault)
|
void |
setMatrix(MatrixND m)
|
void |
setVisible(boolean visible)
Set the matrix visible. |
void |
tableChanged(javax.swing.event.TableModelEvent e)
|
| Methods inherited from class org.nuiton.math.matrix.gui.MatrixEditor |
|---|
setEnabled, setVisible |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
|---|
addAncestorListener, 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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, 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, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
|---|
add, 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, transferFocusBackward, 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, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, 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, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected org.nuiton.util.ListenerSet<MatrixPanelListener> listeners
protected javax.swing.JTable table
protected MatrixND m
protected MatrixTableModel tableModel
protected javax.swing.JScrollPane editArea
protected MatrixPopupMenu popupMenu
protected boolean linearModel
protected boolean linearModelShowDefault
@Deprecated protected boolean enabled
@Deprecated protected boolean visible
protected boolean dimensionEdit
protected javax.swing.JButton bEdit
| Constructor Detail |
|---|
public MatrixPanelEditor(MatrixND m,
boolean dimensionEdit)
m - the matrix to edit.dimensionEdit - to enabled matrix dimension changes.
public MatrixPanelEditor(boolean dimensionEdit,
int width,
int height)
dimensionEdit - to enabled matrix dimension changes.width - width prefered for the componentheight - height prefered for the componentpublic MatrixPanelEditor(boolean dimensionEdit)
dimensionEdit - to enabled matrix dimension changes.public MatrixPanelEditor()
| Method Detail |
|---|
protected MatrixFactory getFactory()
@Deprecated public void addMatrixListener(MatrixPanelListener l)
l - listener to addpublic void addMatrixPanelListener(MatrixPanelListener l)
l - listener to addpublic void removeMatrixPanelListener(MatrixPanelListener l)
l - listener to removepublic MatrixPanelListener[] getMatrixPanelListeners()
protected void initObjet()
public javax.swing.JButton getButtonEdit()
getButtonEdit in class MatrixEditorpublic java.lang.Boolean isLinearModel()
isLinearModel in class MatrixEditorpublic void setLinearModel(java.lang.Boolean linearModel)
setLinearModel in class MatrixEditorlinearModel - The linearModel to set.public java.lang.Boolean isLinearModelShowDefault()
isLinearModelShowDefault in class MatrixEditorpublic void setLinearModelShowDefault(java.lang.Boolean linearModelShowDefault)
setLinearModelShowDefault in class MatrixEditorlinearModelShowDefault - The linearModelShowDefault to set.public boolean isDimensionEdit()
public void setDimensionEdit(boolean v)
v - Value to assign to dimensionEdit.protected void initDimensionEdit()
protected void initObject(MatrixND m)
public javax.swing.JTable getTable()
getTable in class MatrixEditor
public void setMatrix(MatrixND m)
throws MatrixException
setMatrix in class MatrixEditorMatrixExceptionpublic MatrixND getMatrix()
getMatrix in class MatrixEditorpublic void setEnabled(boolean enabled)
setEnabled in class javax.swing.JComponentpublic boolean isEnabled()
isEnabled in class java.awt.Componentpublic void setVisible(boolean visible)
setVisible in class javax.swing.JComponentvisible - public boolean isVisible()
isVisible in class java.awt.Componentpublic void tableChanged(javax.swing.event.TableModelEvent e)
tableChanged in interface javax.swing.event.TableModelListenerprotected void fireEvent()
fireEvent in class MatrixEditorpublic static void main(java.lang.String[] args)
args -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||