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.AccessibleJComponent
Nested 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_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
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 void
actionPerformed(ActionEvent action)
void
addMessageListener(MessageListener ml)
Adds a message listener to the view.void
attributeChanged(Attribute attr)
Called when a graphics attributes of the Graph represented by this view has changed.void
autoscroll(Point arg0)
void
close()
Closes the current view.void
completeRedraw()
Instructs the view to do completely refresh its contents.Insets
getAutoscrollInsets()
CollectionAttribute
getEdgeAttribute()
Returns the attribute, which should be available in a edge object.CollectionAttribute
getGraphAttribute()
Returns the attribute, which should be available in a graph object.CollectionAttribute
getNodeAttribute()
Returns the attribute, which should be available in a node object.JComponent
getViewComponent()
Returns the main component of the view.String
getViewName()
Returns the viewName.void
postAttributeAdded(AttributeEvent e)
Called after an attribute has been added.void
postAttributeChanged(AttributeEvent e)
Called after an attribute has been changed.void
postAttributeRemoved(AttributeEvent e)
Called after an attribute has been removed.void
postDirectedChanged(EdgeEvent e)
Called after the edge was set directed or undirected.void
postEdgeAdded(GraphEvent e)
Called after an edge has been added to the graph.void
postEdgeRemoved(GraphEvent e)
Called after an edge has been removed from the graph.void
postEdgeReversed(EdgeEvent e)
Called after the edge has been reversed.void
postGraphCleared(GraphEvent e)
Called after methodclear()
has been called on a graph.void
postInEdgeAdded(NodeEvent e)
Called just after an incoming edge has been added to the node.void
postInEdgeRemoved(NodeEvent e)
Called after an incoming edge has been removed from the node.void
postNodeAdded(GraphEvent e)
Called after an edge has been added to the graph.void
postNodeRemoved(GraphEvent e)
Called after a node has been removed from the graph.void
postOutEdgeAdded(NodeEvent e)
Called after an outgoing edge has been added to the node.void
postOutEdgeRemoved(NodeEvent e)
Called after an outgoing edge has been removed from the node.void
postSourceNodeChanged(EdgeEvent e)
Called after the source node of an edge has changed.void
postTargetNodeChanged(EdgeEvent e)
Called after the target node of an edge has changed.void
postUndirectedEdgeAdded(NodeEvent e)
Called after an (undirected) edge has been added to the node.void
postUndirectedEdgeRemoved(NodeEvent e)
Called after an (undirected) edge has been removed from the node.void
preAttributeAdded(AttributeEvent e)
Called just before an attribute is added.void
preAttributeChanged(AttributeEvent e)
Called before a change of an attribute takes place.void
preAttributeRemoved(AttributeEvent e)
Called just before an attribute is removed.void
preDirectedChanged(EdgeEvent e)
Called before the edge is set directed or undirected.void
preEdgeAdded(GraphEvent e)
Called just before an edge is added to the graph.void
preEdgeRemoved(GraphEvent e)
Called just before an edge is removed from the graph.void
preEdgeReversed(EdgeEvent e)
Called before the edge is going to be reversed.void
preGraphCleared(GraphEvent e)
Called before methodclear()
is called on a graph.void
preInEdgeAdded(NodeEvent e)
Called just before an incoming edge is added to the node.void
preInEdgeRemoved(NodeEvent e)
Called just before an incoming edge is removed from the node.void
preNodeAdded(GraphEvent e)
Called just before a node is added to the graph.void
preNodeRemoved(GraphEvent e)
Called just before a node is removed from the graph.void
preOutEdgeAdded(NodeEvent e)
Called just before an outgoing edge is added to the node.void
preOutEdgeRemoved(NodeEvent e)
Called just before an outgoing edge is removed from the node.void
preSourceNodeChanged(EdgeEvent e)
Called before a change of the source node of an edge takes place.void
preTargetNodeChanged(EdgeEvent e)
Called before a change of the target node of an edge takes place.void
preUndirectedEdgeAdded(NodeEvent e)
Called just before an (undirected) edge is added to the node.void
preUndirectedEdgeRemoved(NodeEvent e)
Called just before an (undirected) edge is removed from the node.boolean
putInScrollPane()
void
removeMessageListener(MessageListener ml)
Removes a message listener from the view.void
repaint(GraphElement ge)
Repaints the given graph elementvoid
setGraph(Graph graph)
Sets the graph this view displays.void
transactionFinished(TransactionEvent e, BackgroundTaskStatusProviderSupportingExternalCall status)
Called when a transaction has stopped.void
transactionStarted(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, zoomChanged
Methods 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, updateUI
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, 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:
getAutoscrollInsets
in interfaceAutoscroll
- Overrides:
getAutoscrollInsets
in classAbstractView
- See Also:
Autoscroll.getAutoscrollInsets()
-
getEdgeAttribute
Description copied from interface:AttributeConsumer
Returns the attribute, which should be available in a edge object. May returnnull
.- Specified by:
getEdgeAttribute
in interfaceAttributeConsumer
- Returns:
- DOCUMENT ME!
-
setGraph
Description copied from class:AbstractView
Sets the graph this view displays.- Specified by:
setGraph
in interfaceView
- Specified by:
setGraph
in classAbstractView
- Parameters:
graph
- the graph this view should display.
-
getGraphAttribute
Description copied from interface:AttributeConsumer
Returns the attribute, which should be available in a graph object. May returnnull
.- Specified by:
getGraphAttribute
in interfaceAttributeConsumer
- Returns:
- DOCUMENT ME!
-
getNodeAttribute
Description copied from interface:AttributeConsumer
Returns the attribute, which should be available in a node object. May returnnull
.- Specified by:
getNodeAttribute
in interfaceAttributeConsumer
- Returns:
- DOCUMENT ME!
-
getViewComponent
Description copied from interface:View
Returns the main component of the view.- Specified by:
getViewComponent
in interfaceView
- Overrides:
getViewComponent
in classAbstractView
- Returns:
- the main component of the view.
- See Also:
View.getViewComponent()
-
getViewName
Description copied from class:AbstractView
Returns the viewName.- Specified by:
getViewName
in interfaceView
- Overrides:
getViewName
in classAbstractView
- Returns:
- String
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
addMessageListener
Description copied from class:AbstractView
Adds a message listener to the view.- Specified by:
addMessageListener
in interfaceView
- Overrides:
addMessageListener
in classAbstractView
- Parameters:
ml
- a message listener
-
autoscroll
- Specified by:
autoscroll
in interfaceAutoscroll
- Overrides:
autoscroll
in classAbstractView
- See Also:
Autoscroll.autoscroll(Point)
-
close
public void close()Description copied from class:AbstractView
Closes the current view.- Specified by:
close
in interfaceView
- Overrides:
close
in classAbstractView
-
completeRedraw
public void completeRedraw()Description copied from interface:View
Instructs the view to do completely refresh its contents.- Specified by:
completeRedraw
in interfaceView
-
postAttributeAdded
Description copied from class:AbstractView
Called after an attribute has been added.- Specified by:
postAttributeAdded
in interfaceAttributeListener
- Overrides:
postAttributeAdded
in classAbstractView
- Parameters:
e
- the AttributeEvent detailing the changes.
-
postAttributeChanged
Description copied from class:AbstractView
Called after an attribute has been changed.- Specified by:
postAttributeChanged
in interfaceAttributeListener
- Overrides:
postAttributeChanged
in classAbstractView
- Parameters:
e
- the AttributeEvent detailing the changes.
-
postAttributeRemoved
Description copied from class:AbstractView
Called after an attribute has been removed.- Specified by:
postAttributeRemoved
in interfaceAttributeListener
- Overrides:
postAttributeRemoved
in classAbstractView
- Parameters:
e
- the AttributeEvent detailing the changes.
-
postDirectedChanged
Description copied from class:AbstractView
Called after the edge was set directed or undirected.- Specified by:
postDirectedChanged
in interfaceEdgeListener
- Overrides:
postDirectedChanged
in classAbstractView
- Parameters:
e
- the EdgeEvent detailing the changes.
-
postEdgeAdded
Description copied from class:AbstractView
Called after an edge has been added to the graph.- Specified by:
postEdgeAdded
in interfaceGraphListener
- Overrides:
postEdgeAdded
in classAbstractView
- Parameters:
e
- the GraphEvent detailing the changes.
-
postEdgeRemoved
Description copied from class:AbstractView
Called after an edge has been removed from the graph.- Specified by:
postEdgeRemoved
in interfaceGraphListener
- Overrides:
postEdgeRemoved
in classAbstractView
- Parameters:
e
- the GraphEvent detailing the changes.
-
postEdgeReversed
Description copied from class:AbstractView
Called after the edge has been reversed.- Specified by:
postEdgeReversed
in interfaceEdgeListener
- Overrides:
postEdgeReversed
in classAbstractView
- Parameters:
e
- the EdgeEvent detailing the changes.
-
postGraphCleared
Description copied from class:AbstractView
Called after methodclear()
has been called on a graph. No other events (like remove events) are generated.- Specified by:
postGraphCleared
in interfaceGraphListener
- Overrides:
postGraphCleared
in classAbstractView
- Parameters:
e
- the GraphEvent detailing the changes.
-
postInEdgeAdded
Description copied from class:AbstractView
Called just after an incoming edge has been added to the node. (For undirected edges postUndirectedEdgeAdded is called instead.)- Overrides:
postInEdgeAdded
in classAbstractView
- Parameters:
e
- The NodeEvent detailing the changes.
-
postInEdgeRemoved
Description copied from class:AbstractView
Called after an incoming edge has been removed from the node. (For undirected edges postUndirectedEdgeRemoved is called.)- Overrides:
postInEdgeRemoved
in classAbstractView
- Parameters:
e
- The NodeEvent detailing the changes.
-
postNodeAdded
Description copied from class:AbstractView
Called after an edge has been added to the graph.- Specified by:
postNodeAdded
in interfaceGraphListener
- Overrides:
postNodeAdded
in classAbstractView
- Parameters:
e
- the GraphEvent detailing the changes.
-
postNodeRemoved
Description copied from class:AbstractView
Called 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:
postNodeRemoved
in interfaceGraphListener
- Overrides:
postNodeRemoved
in classAbstractView
- Parameters:
e
- the GraphEvent detailing the changes.
-
postOutEdgeAdded
Description copied from class:AbstractView
Called after an outgoing edge has been added to the node. (For undirected edges postUndirectedEdgeAdded is called instead.)- Overrides:
postOutEdgeAdded
in classAbstractView
- Parameters:
e
- The NodeEvent detailing the changes.
-
postOutEdgeRemoved
Description copied from class:AbstractView
Called after an outgoing edge has been removed from the node. (For undirected edges postUndirectedEdgeRemoved is called.)- Overrides:
postOutEdgeRemoved
in classAbstractView
- Parameters:
e
- The NodeEvent detailing the changes.
-
postSourceNodeChanged
Description copied from class:AbstractView
Called after the source node of an edge has changed.- Specified by:
postSourceNodeChanged
in interfaceEdgeListener
- Overrides:
postSourceNodeChanged
in classAbstractView
- Parameters:
e
- the EdgeEvent detailing the changes.
-
postTargetNodeChanged
Description copied from class:AbstractView
Called after the target node of an edge has changed.- Specified by:
postTargetNodeChanged
in interfaceEdgeListener
- Overrides:
postTargetNodeChanged
in classAbstractView
- Parameters:
e
- the EdgeEvent detailing the changes.
-
postUndirectedEdgeAdded
Description copied from class:AbstractView
Called after an (undirected) edge has been added to the node. (For directed edges pre- In/Out- EdgeAdded is called.)- Specified by:
postUndirectedEdgeAdded
in interfaceNodeListener
- Overrides:
postUndirectedEdgeAdded
in classAbstractView
- Parameters:
e
- The NodeEvent detailing the changes.
-
postUndirectedEdgeRemoved
Description copied from class:AbstractView
Called after an (undirected) edge has been removed from the node. (For directed edges pre- In/Out- EdgeRemoved is called.)- Specified by:
postUndirectedEdgeRemoved
in interfaceNodeListener
- Overrides:
postUndirectedEdgeRemoved
in classAbstractView
- Parameters:
e
- The NodeEvent detailing the changes.
-
preAttributeAdded
Description copied from class:AbstractView
Called just before an attribute is added.- Specified by:
preAttributeAdded
in interfaceAttributeListener
- Overrides:
preAttributeAdded
in classAbstractView
- Parameters:
e
- the AttributeEvent detailing the changes.
-
preAttributeChanged
Description copied from class:AbstractView
Called before a change of an attribute takes place.- Specified by:
preAttributeChanged
in interfaceAttributeListener
- Overrides:
preAttributeChanged
in classAbstractView
- Parameters:
e
- the AttributeEvent detailing the changes.
-
preAttributeRemoved
Description copied from class:AbstractView
Called just before an attribute is removed.- Specified by:
preAttributeRemoved
in interfaceAttributeListener
- Overrides:
preAttributeRemoved
in classAbstractView
- Parameters:
e
- the AttributeEvent detailing the changes.
-
preDirectedChanged
Description copied from class:AbstractView
Called before the edge is set directed or undirected.- Specified by:
preDirectedChanged
in interfaceEdgeListener
- Overrides:
preDirectedChanged
in classAbstractView
- Parameters:
e
- the EdgeEvent detailing the changes.
-
preEdgeAdded
Description copied from class:AbstractView
Called just before an edge is added to the graph.- Specified by:
preEdgeAdded
in interfaceGraphListener
- Overrides:
preEdgeAdded
in classAbstractView
- Parameters:
e
- the GraphEvent detailing the changes.
-
preEdgeRemoved
Description copied from class:AbstractView
Called just before an edge is removed from the graph.- Specified by:
preEdgeRemoved
in interfaceGraphListener
- Overrides:
preEdgeRemoved
in classAbstractView
- Parameters:
e
- the GraphEvent detailing the changes.
-
preEdgeReversed
Description copied from class:AbstractView
Called before the edge is going to be reversed.- Specified by:
preEdgeReversed
in interfaceEdgeListener
- Overrides:
preEdgeReversed
in classAbstractView
- Parameters:
e
- the EdgeEvent detailing the changes.
-
preGraphCleared
Description copied from class:AbstractView
Called before methodclear()
is called on a graph. No other events (like remove events) are generated.- Specified by:
preGraphCleared
in interfaceGraphListener
- Overrides:
preGraphCleared
in classAbstractView
- Parameters:
e
- the GraphEvent detailing the changes.
-
preInEdgeAdded
Description copied from class:AbstractView
Called just before an incoming edge is added to the node. (For undirected edges preUndirectedEdgeAdded is called instead.)- Overrides:
preInEdgeAdded
in classAbstractView
- Parameters:
e
- The NodeEvent detailing the changes.
-
preInEdgeRemoved
Description copied from class:AbstractView
Called just before an incoming edge is removed from the node. (For undirected edges preUndirectedEdgeRemoved is called.)- Overrides:
preInEdgeRemoved
in classAbstractView
- Parameters:
e
- The NodeEvent detailing the changes.
-
preNodeAdded
Description copied from class:AbstractView
Called just before a node is added to the graph.- Specified by:
preNodeAdded
in interfaceGraphListener
- Overrides:
preNodeAdded
in classAbstractView
- Parameters:
e
- the GraphEvent detailing the changes.
-
preNodeRemoved
Description copied from class:AbstractView
Called just before a node is removed from the graph. This method is called before the incident edges are deleted.- Specified by:
preNodeRemoved
in interfaceGraphListener
- Overrides:
preNodeRemoved
in classAbstractView
- Parameters:
e
- the GraphEvent detailing the changes.
-
preOutEdgeAdded
Description copied from class:AbstractView
Called just before an outgoing edge is added to the node. (For undirected edges preUndirectedEdgeAdded is called instead.)- Overrides:
preOutEdgeAdded
in classAbstractView
- Parameters:
e
- The NodeEvent detailing the changes.
-
preOutEdgeRemoved
Description copied from class:AbstractView
Called just before an outgoing edge is removed from the node. (For undirected edges preUndirectedEdgeRemoved is called.)- Overrides:
preOutEdgeRemoved
in classAbstractView
- Parameters:
e
- The NodeEvent detailing the changes.
-
preSourceNodeChanged
Description copied from class:AbstractView
Called before a change of the source node of an edge takes place.- Specified by:
preSourceNodeChanged
in interfaceEdgeListener
- Overrides:
preSourceNodeChanged
in classAbstractView
- Parameters:
e
- the EdgeEvent detailing the changes.
-
preTargetNodeChanged
Description copied from class:AbstractView
Called before a change of the target node of an edge takes place.- Specified by:
preTargetNodeChanged
in interfaceEdgeListener
- Overrides:
preTargetNodeChanged
in classAbstractView
- Parameters:
e
- the EdgeEvent detailing the changes.
-
preUndirectedEdgeAdded
Description copied from class:AbstractView
Called just before an (undirected) edge is added to the node. (For directed edges pre- In/Out- EdgeAdded is called.)- Specified by:
preUndirectedEdgeAdded
in interfaceNodeListener
- Overrides:
preUndirectedEdgeAdded
in classAbstractView
- Parameters:
e
- The NodeEvent detailing the changes.
-
preUndirectedEdgeRemoved
Description copied from class:AbstractView
Called just before an (undirected) edge is removed from the node. (For directed edges pre- In/Out- EdgeRemoved is called.)- Specified by:
preUndirectedEdgeRemoved
in interfaceNodeListener
- Overrides:
preUndirectedEdgeRemoved
in classAbstractView
- Parameters:
e
- The NodeEvent detailing the changes.
-
removeMessageListener
Description copied from class:AbstractView
Removes a message listener from the view.- Specified by:
removeMessageListener
in interfaceView
- Overrides:
removeMessageListener
in classAbstractView
- Parameters:
ml
- a message listener
-
repaint
Description copied from interface:View
Repaints the given graph element -
transactionFinished
public void transactionFinished(TransactionEvent e, BackgroundTaskStatusProviderSupportingExternalCall status)Description copied from class:AbstractView
Called when a transaction has stopped.- Specified by:
transactionFinished
in interfaceTransactionListener
- Overrides:
transactionFinished
in classAbstractView
- Parameters:
e
- the EdgeEvent detailing the changes.
-
transactionStarted
Description copied from class:AbstractView
Called when a transaction has started.- Specified by:
transactionStarted
in interfaceTransactionListener
- Overrides:
transactionStarted
in classAbstractView
- Parameters:
e
- the EdgeEvent detailing the changes.
-
attributeChanged
Description copied from interface:View
Called when a graphics attributes of the Graph represented by this view has changed.- Specified by:
attributeChanged
in interfaceView
- Parameters:
attr
- the attribute that has triggered the event.
-
putInScrollPane
public boolean putInScrollPane()- Specified by:
putInScrollPane
in interfaceView
-