Class WidgetAction.WidgetMouseEvent

java.lang.Object
org.netbeans.api.visual.action.WidgetAction.WidgetMouseEvent
All Implemented Interfaces:
WidgetAction.WidgetEvent, WidgetAction.WidgetLocationEvent
Enclosing interface:
WidgetAction

public static final class WidgetAction.WidgetMouseEvent extends Object implements WidgetAction.WidgetLocationEvent
Represents a mouse event.
  • Constructor Details

    • WidgetMouseEvent

      public WidgetMouseEvent(long id, MouseEvent event)
      Creates a mouse event.
      Parameters:
      id - the event id
      event - the Swing event
  • Method Details

    • getEventID

      public long getEventID()
      Returns an event id.
      Specified by:
      getEventID in interface WidgetAction.WidgetEvent
      Returns:
      the event id
    • getPoint

      public Point getPoint()
      Returns stored location.
      Specified by:
      getPoint in interface WidgetAction.WidgetLocationEvent
      Returns:
      the location
    • setPoint

      public void setPoint(Point point)
      Sets a new location. This is called by a event provider only. Do not call this method unless you know what it does exactly.
      Specified by:
      setPoint in interface WidgetAction.WidgetLocationEvent
      Parameters:
      point - the new location
    • translatePoint

      public void translatePoint(int x, int y)
      Translates the stored location. Do not call this method unless you know what it does exactly.
      Specified by:
      translatePoint in interface WidgetAction.WidgetLocationEvent
      Parameters:
      x - the x-axis addition
      y - the y-axis addition
    • getClickCount

      public int getClickCount()
      See Also:
    • getButton

      public int getButton()
      See Also:
    • isPopupTrigger

      public boolean isPopupTrigger()
      See Also:
    • isShiftDown

      public boolean isShiftDown()
      See Also:
    • isControlDown

      public boolean isControlDown()
      See Also:
    • isMetaDown

      public boolean isMetaDown()
      See Also:
    • isAltDown

      public boolean isAltDown()
      See Also:
    • isAltGraphDown

      public boolean isAltGraphDown()
      See Also:
    • getWhen

      public long getWhen()
      See Also:
    • getModifiers

      public int getModifiers()
      See Also:
    • getModifiersEx

      public int getModifiersEx()
      See Also: