Class Drawing.DefaultDrawingEvent

  • All Implemented Interfaces:
    DrawingEvent
    Enclosing class:
    Drawing

    public class Drawing.DefaultDrawingEvent
    extends java.lang.Object
    implements DrawingEvent
    an implementation of DrawingEvent
    • Constructor Detail

      • DefaultDrawingEvent

        public DefaultDrawingEvent​(Element element,
                                   DrawingEvent.EventType type)
        Parameters:
        element - the changed Element
        type - the event type
    • Method Detail

      • getDrawing

        public Drawing getDrawing()
        Description copied from interface: DrawingEvent
        Return the source of this event
        Specified by:
        getDrawing in interface DrawingEvent
        Returns:
        the source of this event
      • getElement

        public Element getElement()
        Description copied from interface: DrawingEvent
        Return the graphic element that changed
        Specified by:
        getElement in interface DrawingEvent
        Returns:
        the changed Element
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string describing this event