public class MatrixPopupMenu extends JPopupMenu
JPopupMenu.AccessibleJPopupMenu, JPopupMenu.SeparatorJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected JFileChooser |
fileChooser
File chooser.
|
protected MatrixEditor |
matrixEditor
Matrix editor where this menu is attached.
|
protected JMenu |
sendToClipBoard
Send to clip board menu item.
|
protected Action |
sendToClipBoardAllCopyAction
Copy all matrix action.
|
protected Action |
sendToClipBoardAllPasteAction
Paste all matrix action.
|
protected Action |
sendToClipBoardCurrentPasteAction
Paste selection matrix action.
|
protected Action |
sendToClipBoardSelectionCopyAction
Copy selection matrix action.
|
protected JMenu |
sendToFile
Send to file menu item.
|
protected Action |
sendToFileAllCopyAction
Export all matrix to file action.
|
protected Action |
sendToFileAllPasteAction
Import all matrix from file.
|
protected Action |
sendToFileCurrentPasteAction
Import selection from file.
|
protected Action |
sendToFileSelectionCopyAction
Export selection to file.
|
protected JCheckBoxMenuItem |
withSemantics
Export with semantics checkbox.
|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
MatrixPopupMenu(MatrixEditor matrixEditor)
Init popop menu.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
dataFillValuePerformed()
Ask user for new value to fill into matrix.
|
protected void |
dataIdentityPerformed()
Fill editor matrix with identity matrix.
|
protected void |
firePopupMenuWillBecomeVisible()
Desactive le menu si la matrice ne supporte pas le mode CSV.
|
protected JMenu |
getApplyDataAction()
Init export to file action.
|
protected Reader |
getClipBoardReader()
Init import from clip board reader.
|
protected Writer |
getClipBoardWriter()
Init export to clip board writer.
|
protected int[] |
getCoordinatesFirstCellSelectedMatrix()
Get matrix first selection coordinates.
|
protected JFileChooser |
getFileChooser()
Get file chooser to csv file (import/export).
|
protected Reader |
getFileChooserReader()
Init import from file reader.
|
protected Writer |
getFileChooserWriter()
Init export to file writer.
|
protected MatrixND |
getMatrix()
Get matrix in matrix editor.
|
protected MatrixND |
getSelectedMatrix()
Get selected matrix in editor.
|
protected JMenu |
getSendToClipBoard()
Init send to clip board action.
|
protected Action |
getSendToClipBoardAllCopyAction()
Init emport to clip board action.
|
protected Action |
getSendToClipBoardAllPasteAction()
Init import from clip board action.
|
Action |
getSendToClipBoardCurrentPasteAction()
Init import selection from clip board action.
|
protected Action |
getSendToClipBoardSelectionCopyAction()
Init emport selection to clip board action.
|
protected JMenu |
getSendToFile()
Init export to file action.
|
protected Action |
getSendToFileAllCopyAction()
Init export to file action.
|
protected Action |
getSendToFileAllPasteAction()
Init import from file action.
|
protected Action |
getSendToFileCurrentPasteAction()
Init import selection from file action.
|
protected Action |
getSendToFileSelectionCopyAction()
Init export selection to file action.
|
protected void |
sendToClipBoardAllCopyPerformed()
Export matrix to clip board.
|
protected void |
sendToClipBoardAllPastePerformed()
Import matrix from clip board.
|
protected void |
sendToClipBoardCurrentPastePerformed()
Import from clip board.
|
protected void |
sendToClipBoardSelectionCopyPerformed()
Export selection to clip board.
|
protected void |
sendToFileAllCopyPerformed()
Export to file.
|
protected void |
sendToFileAllPastePerformed()
Import from file.
|
protected void |
sendToFileCurrentPastePerformed()
Import selection from file.
|
protected void |
sendToFileSelectionCopyPerformed()
Export selection to file.
|
add, add, add, addMenuKeyListener, addPopupMenuListener, addSeparator, createActionChangeListener, createActionComponent, firePopupMenuCanceled, firePopupMenuWillBecomeInvisible, getAccessibleContext, getComponent, getComponentAtIndex, getComponentIndex, getDefaultLightWeightPopupEnabled, getInvoker, getLabel, getMargin, getMenuKeyListeners, getPopupMenuListeners, getSelectionModel, getSubElements, getUI, getUIClassID, insert, insert, isBorderPainted, isLightWeightPopupEnabled, isPopupTrigger, isVisible, menuSelectionChanged, pack, paintBorder, paramString, processFocusEvent, processKeyEvent, processKeyEvent, processMouseEvent, remove, removeMenuKeyListener, removePopupMenuListener, setBorderPainted, setDefaultLightWeightPopupEnabled, setInvoker, setLabel, setLightWeightPopupEnabled, setLocation, setPopupSize, setPopupSize, setSelected, setSelectionModel, setUI, setVisible, show, updateUIaddAncestorListener, 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, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, 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, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, updateadd, 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, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, 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, isEnabled, 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, 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, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleprotected MatrixEditor matrixEditor
protected JFileChooser fileChooser
protected JMenu sendToClipBoard
protected JMenu sendToFile
protected JCheckBoxMenuItem withSemantics
protected Action sendToClipBoardAllCopyAction
protected Action sendToClipBoardAllPasteAction
protected Action sendToClipBoardSelectionCopyAction
protected Action sendToClipBoardCurrentPasteAction
protected Action sendToFileAllCopyAction
protected Action sendToFileAllPasteAction
protected Action sendToFileSelectionCopyAction
protected Action sendToFileCurrentPasteAction
public MatrixPopupMenu(MatrixEditor matrixEditor)
matrixEditor - matrix editor where menu is attachedprotected JMenu getSendToClipBoard()
protected JMenu getSendToFile()
protected JMenu getApplyDataAction()
protected Writer getFileChooserWriter() throws IOException
IOExceptionprotected Writer getClipBoardWriter()
protected Reader getFileChooserReader() throws IOException
IOExceptionprotected Reader getClipBoardReader() throws UnsupportedFlavorException, IOException
IOExceptionUnsupportedFlavorExceptionprotected void firePopupMenuWillBecomeVisible()
firePopupMenuWillBecomeVisible in class JPopupMenuprotected MatrixND getMatrix()
protected MatrixND getSelectedMatrix()
protected int[] getCoordinatesFirstCellSelectedMatrix()
protected JFileChooser getFileChooser()
protected Action getSendToClipBoardAllCopyAction()
protected Action getSendToClipBoardAllPasteAction()
protected Action getSendToClipBoardSelectionCopyAction()
public Action getSendToClipBoardCurrentPasteAction()
protected void sendToClipBoardAllCopyPerformed()
protected void sendToClipBoardAllPastePerformed()
protected void sendToClipBoardSelectionCopyPerformed()
protected void sendToClipBoardCurrentPastePerformed()
protected Action getSendToFileAllCopyAction()
protected Action getSendToFileAllPasteAction()
protected Action getSendToFileSelectionCopyAction()
protected Action getSendToFileCurrentPasteAction()
protected void sendToFileAllCopyPerformed()
protected void sendToFileAllPastePerformed()
protected void sendToFileSelectionCopyPerformed()
protected void sendToFileCurrentPastePerformed()
protected void dataIdentityPerformed()
protected void dataFillValuePerformed()
Copyright © 2004-2011 CodeLutin. All Rights Reserved.