Class MatrixView
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
org.graffiti.plugin.view.AbstractView
org.graffiti.plugins.views.matrix.MatrixView
- All Implemented Interfaces:
Autoscroll,ActionListener,ImageObserver,MenuContainer,Serializable,EventListener,AttributeConsumer,AttributeListener,EdgeListener,GraphListener,NodeListener,TransactionListener,View,Zoomable,ZoomListener
public class MatrixView extends AbstractView implements ActionListener, AttributeConsumer
Provides a matrix view for the given graph.
- Version:
- $Revision: 1.7 $
- See Also:
- Serialized Form
- Recent revisions:
- 2.7.0
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Component
Component.BaselineResizeBehavior -
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_WINDOWFields inherited from class java.awt.Component
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 -
Constructor Summary
Constructors Constructor Description MatrixView()Constructs a new matrix view from the given graph.MatrixView(Graph graph)Constructs a new matrix view. -
Method Summary
Modifier and Type Method Description voidactionPerformed(ActionEvent action)voidaddMessageListener(MessageListener ml)Adds a message listener to the view.voidattributeChanged(Attribute attr)Called when a graphics attributes of the Graph represented by this view has changed.voidautoscroll(Point arg0)voidclose()Closes the current view.voidcompleteRedraw()Instructs the view to do completely refresh its contents.InsetsgetAutoscrollInsets()CollectionAttributegetEdgeAttribute()Returns the attribute, which should be available in a edge object.CollectionAttributegetGraphAttribute()Returns the attribute, which should be available in a graph object.CollectionAttributegetNodeAttribute()Returns the attribute, which should be available in a node object.JComponentgetViewComponent()Returns the main component of the view.StringgetViewName()Returns the viewName.voidpostAttributeAdded(AttributeEvent e)Called after an attribute has been added.voidpostAttributeChanged(AttributeEvent e)Called after an attribute has been changed.voidpostAttributeRemoved(AttributeEvent e)Called after an attribute has been removed.voidpostDirectedChanged(EdgeEvent e)Called after the edge was set directed or undirected.voidpostEdgeAdded(GraphEvent e)Called after an edge has been added to the graph.voidpostEdgeRemoved(GraphEvent e)Called after an edge has been removed from the graph.voidpostEdgeReversed(EdgeEvent e)Called after the edge has been reversed.voidpostGraphCleared(GraphEvent e)Called after methodclear()has been called on a graph.voidpostInEdgeAdded(NodeEvent e)Called just after an incoming edge has been added to the node.voidpostInEdgeRemoved(NodeEvent e)Called after an incoming edge has been removed from the node.voidpostNodeAdded(GraphEvent e)Called after an edge has been added to the graph.voidpostNodeRemoved(GraphEvent e)Called after a node has been removed from the graph.voidpostOutEdgeAdded(NodeEvent e)Called after an outgoing edge has been added to the node.voidpostOutEdgeRemoved(NodeEvent e)Called after an outgoing edge has been removed from the node.voidpostSourceNodeChanged(EdgeEvent e)Called after the source node of an edge has changed.voidpostTargetNodeChanged(EdgeEvent e)Called after the target node of an edge has changed.voidpostUndirectedEdgeAdded(NodeEvent e)Called after an (undirected) edge has been added to the node.voidpostUndirectedEdgeRemoved(NodeEvent e)Called after an (undirected) edge has been removed from the node.voidpreAttributeAdded(AttributeEvent e)Called just before an attribute is added.voidpreAttributeChanged(AttributeEvent e)Called before a change of an attribute takes place.voidpreAttributeRemoved(AttributeEvent e)Called just before an attribute is removed.voidpreDirectedChanged(EdgeEvent e)Called before the edge is set directed or undirected.voidpreEdgeAdded(GraphEvent e)Called just before an edge is added to the graph.voidpreEdgeRemoved(GraphEvent e)Called just before an edge is removed from the graph.voidpreEdgeReversed(EdgeEvent e)Called before the edge is going to be reversed.voidpreGraphCleared(GraphEvent e)Called before methodclear()is called on a graph.voidpreInEdgeAdded(NodeEvent e)Called just before an incoming edge is added to the node.voidpreInEdgeRemoved(NodeEvent e)Called just before an incoming edge is removed from the node.voidpreNodeAdded(GraphEvent e)Called just before a node is added to the graph.voidpreNodeRemoved(GraphEvent e)Called just before a node is removed from the graph.voidpreOutEdgeAdded(NodeEvent e)Called just before an outgoing edge is added to the node.voidpreOutEdgeRemoved(NodeEvent e)Called just before an outgoing edge is removed from the node.voidpreSourceNodeChanged(EdgeEvent e)Called before a change of the source node of an edge takes place.voidpreTargetNodeChanged(EdgeEvent e)Called before a change of the target node of an edge takes place.voidpreUndirectedEdgeAdded(NodeEvent e)Called just before an (undirected) edge is added to the node.voidpreUndirectedEdgeRemoved(NodeEvent e)Called just before an (undirected) edge is removed from the node.booleanputInScrollPane()voidremoveMessageListener(MessageListener ml)Removes a message listener from the view.voidrepaint(GraphElement ge)Repaints the given graph elementvoidsetGraph(Graph graph)Sets the graph this view displays.voidtransactionFinished(TransactionEvent e, BackgroundTaskStatusProviderSupportingExternalCall status)Called when a transaction has stopped.voidtransactionStarted(TransactionEvent e)Called when a transaction has started.Methods inherited from class org.graffiti.plugin.view.AbstractView
autoresize, clearGraphElementComponentMap, closing, getAttributeComponentsForElement, getComponentElementMap, getComponentForElement, getGraph, getGraphElementComponent, getGraphElementComponentMap, getViewToolbarComponentBackground, getViewToolbarComponentBottom, getViewToolbarComponentLeft, getViewToolbarComponentRight, getViewToolbarComponentTop, getZoom, redrawActive, removeGraphElementComponent, setAttributeComponentManager, worksWithTab, zoomChangedMethods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, 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, 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, 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, setVisible, unregisterKeyboardAction, update, updateUIMethods 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, validateMethods 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, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, 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
-
Constructor Details
-
MatrixView
public MatrixView()Constructs a new matrix view from the given graph. -
MatrixView
Constructs a new matrix view.- Parameters:
graph- the graph to be displayed.
-
-
Method Details
-
getAutoscrollInsets
- Specified by:
getAutoscrollInsetsin interfaceAutoscroll- Overrides:
getAutoscrollInsetsin classAbstractView- See Also:
Autoscroll.getAutoscrollInsets()
-
getEdgeAttribute
Description copied from interface:AttributeConsumerReturns the attribute, which should be available in a edge object. May returnnull.- Specified by:
getEdgeAttributein interfaceAttributeConsumer- Returns:
- DOCUMENT ME!
-
setGraph
Description copied from class:AbstractViewSets the graph this view displays.- Specified by:
setGraphin interfaceView- Specified by:
setGraphin classAbstractView- Parameters:
graph- the graph this view should display.
-
getGraphAttribute
Description copied from interface:AttributeConsumerReturns the attribute, which should be available in a graph object. May returnnull.- Specified by:
getGraphAttributein interfaceAttributeConsumer- Returns:
- DOCUMENT ME!
-
getNodeAttribute
Description copied from interface:AttributeConsumerReturns the attribute, which should be available in a node object. May returnnull.- Specified by:
getNodeAttributein interfaceAttributeConsumer- Returns:
- DOCUMENT ME!
-
getViewComponent
Description copied from interface:ViewReturns the main component of the view.- Specified by:
getViewComponentin interfaceView- Overrides:
getViewComponentin classAbstractView- Returns:
- the main component of the view.
- See Also:
View.getViewComponent()
-
getViewName
Description copied from class:AbstractViewReturns the viewName.- Specified by:
getViewNamein interfaceView- Overrides:
getViewNamein classAbstractView- Returns:
- String
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
addMessageListener
Description copied from class:AbstractViewAdds a message listener to the view.- Specified by:
addMessageListenerin interfaceView- Overrides:
addMessageListenerin classAbstractView- Parameters:
ml- a message listener
-
autoscroll
- Specified by:
autoscrollin interfaceAutoscroll- Overrides:
autoscrollin classAbstractView- See Also:
Autoscroll.autoscroll(Point)
-
close
public void close()Description copied from class:AbstractViewCloses the current view.- Specified by:
closein interfaceView- Overrides:
closein classAbstractView
-
completeRedraw
public void completeRedraw()Description copied from interface:ViewInstructs the view to do completely refresh its contents.- Specified by:
completeRedrawin interfaceView
-
postAttributeAdded
Description copied from class:AbstractViewCalled after an attribute has been added.- Specified by:
postAttributeAddedin interfaceAttributeListener- Overrides:
postAttributeAddedin classAbstractView- Parameters:
e- the AttributeEvent detailing the changes.
-
postAttributeChanged
Description copied from class:AbstractViewCalled after an attribute has been changed.- Specified by:
postAttributeChangedin interfaceAttributeListener- Overrides:
postAttributeChangedin classAbstractView- Parameters:
e- the AttributeEvent detailing the changes.
-
postAttributeRemoved
Description copied from class:AbstractViewCalled after an attribute has been removed.- Specified by:
postAttributeRemovedin interfaceAttributeListener- Overrides:
postAttributeRemovedin classAbstractView- Parameters:
e- the AttributeEvent detailing the changes.
-
postDirectedChanged
Description copied from class:AbstractViewCalled after the edge was set directed or undirected.- Specified by:
postDirectedChangedin interfaceEdgeListener- Overrides:
postDirectedChangedin classAbstractView- Parameters:
e- the EdgeEvent detailing the changes.
-
postEdgeAdded
Description copied from class:AbstractViewCalled after an edge has been added to the graph.- Specified by:
postEdgeAddedin interfaceGraphListener- Overrides:
postEdgeAddedin classAbstractView- Parameters:
e- the GraphEvent detailing the changes.
-
postEdgeRemoved
Description copied from class:AbstractViewCalled after an edge has been removed from the graph.- Specified by:
postEdgeRemovedin interfaceGraphListener- Overrides:
postEdgeRemovedin classAbstractView- Parameters:
e- the GraphEvent detailing the changes.
-
postEdgeReversed
Description copied from class:AbstractViewCalled after the edge has been reversed.- Specified by:
postEdgeReversedin interfaceEdgeListener- Overrides:
postEdgeReversedin classAbstractView- Parameters:
e- the EdgeEvent detailing the changes.
-
postGraphCleared
Description copied from class:AbstractViewCalled after methodclear()has been called on a graph. No other events (like remove events) are generated.- Specified by:
postGraphClearedin interfaceGraphListener- Overrides:
postGraphClearedin classAbstractView- Parameters:
e- the GraphEvent detailing the changes.
-
postInEdgeAdded
Description copied from class:AbstractViewCalled just after an incoming edge has been added to the node. (For undirected edges postUndirectedEdgeAdded is called instead.)- Overrides:
postInEdgeAddedin classAbstractView- Parameters:
e- The NodeEvent detailing the changes.
-
postInEdgeRemoved
Description copied from class:AbstractViewCalled after an incoming edge has been removed from the node. (For undirected edges postUndirectedEdgeRemoved is called.)- Overrides:
postInEdgeRemovedin classAbstractView- Parameters:
e- The NodeEvent detailing the changes.
-
postNodeAdded
Description copied from class:AbstractViewCalled after an edge has been added to the graph.- Specified by:
postNodeAddedin interfaceGraphListener- Overrides:
postNodeAddedin classAbstractView- Parameters:
e- the GraphEvent detailing the changes.
-
postNodeRemoved
Description copied from class:AbstractViewCalled after a node has been removed from the graph. All edges incident to this node have already been removed (preEdgeRemoved and postEdgeRemoved have been called).- Specified by:
postNodeRemovedin interfaceGraphListener- Overrides:
postNodeRemovedin classAbstractView- Parameters:
e- the GraphEvent detailing the changes.
-
postOutEdgeAdded
Description copied from class:AbstractViewCalled after an outgoing edge has been added to the node. (For undirected edges postUndirectedEdgeAdded is called instead.)- Overrides:
postOutEdgeAddedin classAbstractView- Parameters:
e- The NodeEvent detailing the changes.
-
postOutEdgeRemoved
Description copied from class:AbstractViewCalled after an outgoing edge has been removed from the node. (For undirected edges postUndirectedEdgeRemoved is called.)- Overrides:
postOutEdgeRemovedin classAbstractView- Parameters:
e- The NodeEvent detailing the changes.
-
postSourceNodeChanged
Description copied from class:AbstractViewCalled after the source node of an edge has changed.- Specified by:
postSourceNodeChangedin interfaceEdgeListener- Overrides:
postSourceNodeChangedin classAbstractView- Parameters:
e- the EdgeEvent detailing the changes.
-
postTargetNodeChanged
Description copied from class:AbstractViewCalled after the target node of an edge has changed.- Specified by:
postTargetNodeChangedin interfaceEdgeListener- Overrides:
postTargetNodeChangedin classAbstractView- Parameters:
e- the EdgeEvent detailing the changes.
-
postUndirectedEdgeAdded
Description copied from class:AbstractViewCalled after an (undirected) edge has been added to the node. (For directed edges pre- In/Out- EdgeAdded is called.)- Specified by:
postUndirectedEdgeAddedin interfaceNodeListener- Overrides:
postUndirectedEdgeAddedin classAbstractView- Parameters:
e- The NodeEvent detailing the changes.
-
postUndirectedEdgeRemoved
Description copied from class:AbstractViewCalled after an (undirected) edge has been removed from the node. (For directed edges pre- In/Out- EdgeRemoved is called.)- Specified by:
postUndirectedEdgeRemovedin interfaceNodeListener- Overrides:
postUndirectedEdgeRemovedin classAbstractView- Parameters:
e- The NodeEvent detailing the changes.
-
preAttributeAdded
Description copied from class:AbstractViewCalled just before an attribute is added.- Specified by:
preAttributeAddedin interfaceAttributeListener- Overrides:
preAttributeAddedin classAbstractView- Parameters:
e- the AttributeEvent detailing the changes.
-
preAttributeChanged
Description copied from class:AbstractViewCalled before a change of an attribute takes place.- Specified by:
preAttributeChangedin interfaceAttributeListener- Overrides:
preAttributeChangedin classAbstractView- Parameters:
e- the AttributeEvent detailing the changes.
-
preAttributeRemoved
Description copied from class:AbstractViewCalled just before an attribute is removed.- Specified by:
preAttributeRemovedin interfaceAttributeListener- Overrides:
preAttributeRemovedin classAbstractView- Parameters:
e- the AttributeEvent detailing the changes.
-
preDirectedChanged
Description copied from class:AbstractViewCalled before the edge is set directed or undirected.- Specified by:
preDirectedChangedin interfaceEdgeListener- Overrides:
preDirectedChangedin classAbstractView- Parameters:
e- the EdgeEvent detailing the changes.
-
preEdgeAdded
Description copied from class:AbstractViewCalled just before an edge is added to the graph.- Specified by:
preEdgeAddedin interfaceGraphListener- Overrides:
preEdgeAddedin classAbstractView- Parameters:
e- the GraphEvent detailing the changes.
-
preEdgeRemoved
Description copied from class:AbstractViewCalled just before an edge is removed from the graph.- Specified by:
preEdgeRemovedin interfaceGraphListener- Overrides:
preEdgeRemovedin classAbstractView- Parameters:
e- the GraphEvent detailing the changes.
-
preEdgeReversed
Description copied from class:AbstractViewCalled before the edge is going to be reversed.- Specified by:
preEdgeReversedin interfaceEdgeListener- Overrides:
preEdgeReversedin classAbstractView- Parameters:
e- the EdgeEvent detailing the changes.
-
preGraphCleared
Description copied from class:AbstractViewCalled before methodclear()is called on a graph. No other events (like remove events) are generated.- Specified by:
preGraphClearedin interfaceGraphListener- Overrides:
preGraphClearedin classAbstractView- Parameters:
e- the GraphEvent detailing the changes.
-
preInEdgeAdded
Description copied from class:AbstractViewCalled just before an incoming edge is added to the node. (For undirected edges preUndirectedEdgeAdded is called instead.)- Overrides:
preInEdgeAddedin classAbstractView- Parameters:
e- The NodeEvent detailing the changes.
-
preInEdgeRemoved
Description copied from class:AbstractViewCalled just before an incoming edge is removed from the node. (For undirected edges preUndirectedEdgeRemoved is called.)- Overrides:
preInEdgeRemovedin classAbstractView- Parameters:
e- The NodeEvent detailing the changes.
-
preNodeAdded
Description copied from class:AbstractViewCalled just before a node is added to the graph.- Specified by:
preNodeAddedin interfaceGraphListener- Overrides:
preNodeAddedin classAbstractView- Parameters:
e- the GraphEvent detailing the changes.
-
preNodeRemoved
Description copied from class:AbstractViewCalled just before a node is removed from the graph. This method is called before the incident edges are deleted.- Specified by:
preNodeRemovedin interfaceGraphListener- Overrides:
preNodeRemovedin classAbstractView- Parameters:
e- the GraphEvent detailing the changes.
-
preOutEdgeAdded
Description copied from class:AbstractViewCalled just before an outgoing edge is added to the node. (For undirected edges preUndirectedEdgeAdded is called instead.)- Overrides:
preOutEdgeAddedin classAbstractView- Parameters:
e- The NodeEvent detailing the changes.
-
preOutEdgeRemoved
Description copied from class:AbstractViewCalled just before an outgoing edge is removed from the node. (For undirected edges preUndirectedEdgeRemoved is called.)- Overrides:
preOutEdgeRemovedin classAbstractView- Parameters:
e- The NodeEvent detailing the changes.
-
preSourceNodeChanged
Description copied from class:AbstractViewCalled before a change of the source node of an edge takes place.- Specified by:
preSourceNodeChangedin interfaceEdgeListener- Overrides:
preSourceNodeChangedin classAbstractView- Parameters:
e- the EdgeEvent detailing the changes.
-
preTargetNodeChanged
Description copied from class:AbstractViewCalled before a change of the target node of an edge takes place.- Specified by:
preTargetNodeChangedin interfaceEdgeListener- Overrides:
preTargetNodeChangedin classAbstractView- Parameters:
e- the EdgeEvent detailing the changes.
-
preUndirectedEdgeAdded
Description copied from class:AbstractViewCalled just before an (undirected) edge is added to the node. (For directed edges pre- In/Out- EdgeAdded is called.)- Specified by:
preUndirectedEdgeAddedin interfaceNodeListener- Overrides:
preUndirectedEdgeAddedin classAbstractView- Parameters:
e- The NodeEvent detailing the changes.
-
preUndirectedEdgeRemoved
Description copied from class:AbstractViewCalled just before an (undirected) edge is removed from the node. (For directed edges pre- In/Out- EdgeRemoved is called.)- Specified by:
preUndirectedEdgeRemovedin interfaceNodeListener- Overrides:
preUndirectedEdgeRemovedin classAbstractView- Parameters:
e- The NodeEvent detailing the changes.
-
removeMessageListener
Description copied from class:AbstractViewRemoves a message listener from the view.- Specified by:
removeMessageListenerin interfaceView- Overrides:
removeMessageListenerin classAbstractView- Parameters:
ml- a message listener
-
repaint
Description copied from interface:ViewRepaints the given graph element -
transactionFinished
public void transactionFinished(TransactionEvent e, BackgroundTaskStatusProviderSupportingExternalCall status)Description copied from class:AbstractViewCalled when a transaction has stopped.- Specified by:
transactionFinishedin interfaceTransactionListener- Overrides:
transactionFinishedin classAbstractView- Parameters:
e- the EdgeEvent detailing the changes.
-
transactionStarted
Description copied from class:AbstractViewCalled when a transaction has started.- Specified by:
transactionStartedin interfaceTransactionListener- Overrides:
transactionStartedin classAbstractView- Parameters:
e- the EdgeEvent detailing the changes.
-
attributeChanged
Description copied from interface:ViewCalled when a graphics attributes of the Graph represented by this view has changed.- Specified by:
attributeChangedin interfaceView- Parameters:
attr- the attribute that has triggered the event.
-
putInScrollPane
public boolean putInScrollPane()- Specified by:
putInScrollPanein interfaceView
-