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 Details

    • postEdgeAdded

      void postEdgeAdded​(GraphEvent e)
      Called after an edge has been added to the graph.
      Parameters:
      e - the GraphEvent detailing the changes.
    • postEdgeRemoved

      void postEdgeRemoved​(GraphEvent e)
      Called after an edge has been removed from the graph.
      Parameters:
      e - the GraphEvent detailing the changes.
    • postGraphCleared

      void postGraphCleared​(GraphEvent e)
      Called after method clear() has been called on a graph. No other events (like remove events) are generated.
      Parameters:
      e - the GraphEvent detailing the changes.
    • postNodeAdded

      void postNodeAdded​(GraphEvent e)
      Called after an edge has been added to the graph.
      Parameters:
      e - the GraphEvent detailing the changes.
    • postNodeRemoved

      void postNodeRemoved​(GraphEvent e)
      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

      void preEdgeAdded​(GraphEvent e)
      Called just before an edge is added to the graph.
      Parameters:
      e - the GraphEvent detailing the changes.
    • preEdgeRemoved

      void preEdgeRemoved​(GraphEvent e)
      Called just before an edge is removed from the graph.
      Parameters:
      e - the GraphEvent detailing the changes.
    • preGraphCleared

      void preGraphCleared​(GraphEvent e)
      Called before method clear() is called on a graph. No other events (like remove events) are generated.
      Parameters:
      e - the GraphEvent detailing the changes.
    • preNodeAdded

      void preNodeAdded​(GraphEvent e)
      Called just before a node is added to the graph.
      Parameters:
      e - the GraphEvent detailing the changes.
    • preNodeRemoved

      void preNodeRemoved​(GraphEvent e)
      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.