Class PathwayModelEvent

java.lang.Object
org.pathvisio.libgpml.model.PathwayModelEvent

public class PathwayModelEvent
extends java.lang.Object
Used to notify listeners of changes to the model, i.e a Pathway or PathwayElement. This can mean the addition or removal of whole elements, or just a modification to one of the properties of an existing element. This event is currently used both by PathwayListener's and PathwayElementListener's. That may change in the future.
Author:
unknown
  • Field Summary

    Fields
    Modifier and Type Field Description
    static int ADDED  
    private PathwayObject affectedData  
    static int DELETED  
    static int RESIZED  
    private int type  
  • Constructor Summary

    Constructors
    Constructor Description
    PathwayModelEvent​(PathwayObject pathwayObject, int t)
    Instantiates a pathway model event.
  • Method Summary

    Modifier and Type Method Description
    PathwayObject getAffectedData()
    Returns the affected data.
    int getType()
    Returns the type.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • PathwayModelEvent

      public PathwayModelEvent​(PathwayObject pathwayObject, int t)
      Instantiates a pathway model event.
      Parameters:
      pathwayObject - the pathway object.
      t - the integer for type.
  • Method Details

    • getAffectedData

      public PathwayObject getAffectedData()
      Returns the affected data.
      Returns:
      the pathway object affected.
    • getType

      public int getType()
      Returns the type.
      Returns:
      the integer type.