Package org.graffiti.event
Interface GraphListener
- All Superinterfaces:
EventListener
,TransactionListener
- All Known Subinterfaces:
GraphView
,ValueEditComponent
,View
,View2D
,View3D
- All Known Implementing Classes:
AbstractDialogableEditComponent
,AbstractGraphListener
,AbstractValueEditComponent
,AbstractView
,ArrowShapeEditComponent
,BooleanEditComponent
,ButtonOverlayView
,ByteEditComponent
,ChartAttributeEditor
,ChartColorAttributeEditor
,ChartsColumnAttributeEditor
,ClusterColorAttributeEditor
,ColorChooserEditComponent
,ComboBoxEditComponent
,CompoundImageAttributeEditor
,CompoundImagePositionAttributeEditor
,DockingAttributeEditor
,DoubleEditComponent
,EdgeArrowShapeEditComponent
,EdgeEditComponent
,EdgeShapeEditComponent
,EnhDoubleEditComponent
,FastView
,FloatEditComponent
,FontAttributeEditor
,GradientFillAttributeEditor
,GraffitiView
,GraphAdapter
,GraphComponentEditComponent
,GraphConstraintChecker
,IntegerEditComponent
,IPKGraffitiView
,JComponentParameterEditor
,KeggGroupPartAttributeEditor
,KeggReactionIdAttributeEditor
,KeggReactionTypeAttributeEditor
,KeggRelationSubTypeAttributeEditor
,KeggRelationTypeAttributeEditor
,KeggTypeAttributeEditor
,LabelAlignmentAttributeEditor
,LabelFontAttributeEditor
,LabelStyleAttributeEditor
,LandmarkSliderComponent
,LineModeAttributeEditor
,LineModeEditComponent
,LongEditComponent
,MatrixModel
,MatrixView
,MultiFileSelectionEditComponent
,NavigationComponentView
,NodeEditComponent
,NodePathwayLinkVisualizationAttributeEditor
,NodeShapeEditComponent
,NullView
,NumberEditComponent
,ObjectListComponent
,ShortEditComponent
,SingleGraphElementEditComponent
,SliderComponent
,SpinnerEditComponent
,StandardValueEditComponent
,StatusBar
,StringEditComponent
,TextAreaEditComponent
,ThicknessAttributeEditor
,URLAttributeEditor
,ValueEditComponentAdapter
,XMLAttributeEditor
public interface GraphListener extends TransactionListener
Interface that contains methods which are called when a graph is changed.
- Version:
- $Revision: 1.4 $
-
Method Summary
Modifier and Type Method Description 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
postGraphCleared(GraphEvent e)
Called after methodclear()
has been called on a graph.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
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
preGraphCleared(GraphEvent e)
Called before methodclear()
is called on a graph.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.Methods inherited from interface org.graffiti.event.TransactionListener
transactionFinished, transactionStarted
-
Method Details
-
postEdgeAdded
Called after an edge has been added to the graph.- Parameters:
e
- the GraphEvent detailing the changes.
-
postEdgeRemoved
Called after an edge has been removed from the graph.- Parameters:
e
- the GraphEvent detailing the changes.
-
postGraphCleared
Called after methodclear()
has been called on a graph. No other events (like remove events) are generated.- Parameters:
e
- the GraphEvent detailing the changes.
-
postNodeAdded
Called after an edge has been added to the graph.- Parameters:
e
- the GraphEvent detailing the changes.
-
postNodeRemoved
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).- Parameters:
e
- the GraphEvent detailing the changes.
-
preEdgeAdded
Called just before an edge is added to the graph.- Parameters:
e
- the GraphEvent detailing the changes.
-
preEdgeRemoved
Called just before an edge is removed from the graph.- Parameters:
e
- the GraphEvent detailing the changes.
-
preGraphCleared
Called before methodclear()
is called on a graph. No other events (like remove events) are generated.- Parameters:
e
- the GraphEvent detailing the changes.
-
preNodeAdded
Called just before a node is added to the graph.- Parameters:
e
- the GraphEvent detailing the changes.
-
preNodeRemoved
Called just before a node is removed from the graph. This method is called before the incident edges are deleted.- Parameters:
e
- the GraphEvent detailing the changes.
-