## Interface DrawingPanel.DPMouseEventHandler

- Enclosing class:
    DrawingPanel
  Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

      @FunctionalInterface
      public static interface DrawingPanel.DPMouseEventHandler

  This functional interface is provided to allow Java 8 clients to write lambda functions to handle mouse events that occur in a DrawingPanel.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `onMouseEvent(int x, int y)` Called when a mouse event occurs at the given (x, y) position in the drawing panel window.

- - ### Method Detail

    - #### onMouseEvent

          void onMouseEvent(int x,
                            int y)

      Called when a mouse event occurs at the given (x, y) position in the drawing panel window.
      Parameters:
        `x` - x-coordinate at which the event occurred
        `y` - y-coordinate at which the event occurred