Class DjNetViewer
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
fr.esrf.tangoatk.widget.util.interlock.NetEditor
fr.esrf.tangoatk.widget.util.interlock.examples.DjNetViewer
- All Implemented Interfaces:
NetEditorListener,MouseListener,MouseMotionListener,ImageObserver,MenuContainer,Serializable,EventListener
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
Fields inherited from class fr.esrf.tangoatk.widget.util.interlock.NetEditor
CREATE_BUBBLE, CREATE_LINK, CREATE_NONE, CREATE_TEXTFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelCreate(NetEditor src) Triggered when the creation mode is canceled only if the editor is editable.voidlinkClicked(NetEditor src, NetObject obj, int childIdx, MouseEvent e) Trigerred when the user click on a link if the editor is not editable.voidLoad a Network file (net or xpss format) into the editor.voidobjectClicked(NetEditor src, NetObject obj, MouseEvent e) Trigerred when the user click on an object only if the editor is not editable.voidpaintLinks(Graphics2D g2) Customized link paitingvoidsizeChanged(NetEditor src, Dimension d) Trigerred when the scheme size change, after a load or a call to computePreferredSize.voidvalueChanged(NetEditor src) Trigerred when the scheme change, it means that when the user do something that affects the scheme currently edited, this function is called.Methods inherited from class fr.esrf.tangoatk.widget.util.interlock.NetEditor
addEditorListener, addObject, canRedo, canUndo, clearEditorListener, clearObjects, computePreferredSize, copySelection, createBubbleObject, cutSelection, deleteSelection, getAntialiasFont, getFileExtension, getFileName, getGridSize, getNeedToSaveState, getNetObjectAt, getNetObjectNumber, getParentFrame, getRedoActionName, getUndoActionName, isEditable, isShowingArrow, mouseClicked, mouseClickedB1, mouseClickedB3, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mousePressedB1, mousePressedB3, mouseReleased, newAll, paint, paintObjects, pasteSelection, redo, removeEditorListener, removeObject, saveCurrent, saveNetFile, selectAll, setAntialiasFont, setCreateMode, setEditable, setFileExtension, setGridSize, setMoveableBubble, setNetEditorDialog, setNetObjectDialog, setShowArrow, showOpenFileDialog, showOptionDialog, showSaveFileDialog, undo, unselectAllMethods 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, getUI, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, 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, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUIMethods 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, transferFocusDownCycle, validate, validateTreeMethods 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, getAccessibleContext, 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, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Method Details
-
loadFile
Description copied from class:NetEditorLoad a Network file (net or xpss format) into the editor. Trigger sizeChanged() and valueChanged() on success.- Overrides:
loadFilein classNetEditor- Parameters:
fileName- filename to load- Throws:
IOException- in case of failure (Contains the error message)- See Also:
-
paintLinks
Customized link paiting- Overrides:
paintLinksin classNetEditor- Parameters:
g2- Graphics object- See Also:
-
valueChanged
Description copied from interface:NetEditorListenerTrigerred when the scheme change, it means that when the user do something that affects the scheme currently edited, this function is called. This is also true when load/saveFile or showOpen/SaveFileDialg are called.- Specified by:
valueChangedin interfaceNetEditorListener- Parameters:
src- NetEditor that has trigerred the event.- See Also:
-
objectClicked
Description copied from interface:NetEditorListenerTrigerred when the user click on an object only if the editor is not editable.- Specified by:
objectClickedin interfaceNetEditorListener- Parameters:
src- NetEditor that has trigerred the event.obj- Clicked object.e- Original MouseEvent- See Also:
-
linkClicked
Description copied from interface:NetEditorListenerTrigerred when the user click on a link if the editor is not editable.- Specified by:
linkClickedin interfaceNetEditorListener- Parameters:
src- NetEditor that has trigerred the event.obj- Clicked object.childIdx- Child index.e- Original MouseEvent- See Also:
-
sizeChanged
Description copied from interface:NetEditorListenerTrigerred when the scheme size change, after a load or a call to computePreferredSize. It the editor component is within a JSCrollPane, a call to revalidate on this scrollPane may be needed. This is the main purpose of this function.- Specified by:
sizeChangedin interfaceNetEditorListener- Parameters:
src- NetEditor that has trigerred the event.d- New dimension (in pixel coordinates)- See Also:
-
cancelCreate
Description copied from interface:NetEditorListenerTriggered when the creation mode is canceled only if the editor is editable.- Specified by:
cancelCreatein interfaceNetEditorListener- Parameters:
src- NetEditor that has trigerred the event.- See Also:
-