psdi.workflow.diagram

Class DiagramEvent

  • java.lang.Object
    • java.util.EventObject
      • psdi.workflow.diagram.DiagramEvent
  • All Implemented Interfaces:
    java.io.Serializable


    public class DiagramEvent
    extends java.util.EventObject

    This class defines diagram events

    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int ACTION 
      static int ADD 
      protected java.awt.event.MouseEvent e 
      protected java.awt.Point location 
      static int MOVE 
      protected java.lang.Object object 
      static int SELECTION 
      protected int type 
      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor and Description
      DiagramEvent(java.lang.Object source, int type, java.lang.Object object, java.awt.event.MouseEvent e)
      Constructs the DiagramEvent
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.awt.Point getLocation()
      Gets the location if any
      java.awt.event.MouseEvent getMouseEvent()
      Gets the mouse event
      java.lang.Object getObject()
      Gets the object
      int getType()
      Gets the event type
      void setLocation(java.awt.Point location)
      Sets the location
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DiagramEvent

        public DiagramEvent(java.lang.Object source,
                            int type,
                            java.lang.Object object,
                            java.awt.event.MouseEvent e)
        Constructs the DiagramEvent
        Parameters:
        source - The event source
        type - The event type
        object - The object affected - node/relationship/diagram
        e - The original mouse event
    • Method Detail

      • getType

        public int getType()
        Gets the event type
        Returns:
        The event type
      • getLocation

        public java.awt.Point getLocation()
        Gets the location if any
        Returns:
        The location
      • setLocation

        public void setLocation(java.awt.Point location)
        Sets the location
        Parameters:
        location - The location
      • getObject

        public java.lang.Object getObject()
        Gets the object
        Returns:
        The object
      • getMouseEvent

        public java.awt.event.MouseEvent getMouseEvent()
        Gets the mouse event
        Returns:
        The mouse event