Class MouseOpEvent<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>

  • All Implemented Interfaces:
    java.io.Serializable

    public class MouseOpEvent<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>
    extends java.util.EventObject
    A MouseOpEvent is an event triggered for a MouseOpListener. Note that MouseOpEvent objects may be reused.
    See Also:
    Serialized Form
    • Constructor Detail

      • MouseOpEvent

        public MouseOpEvent​(@NotNull
                            @NotNull MapView<G,​A,​R> mapView)
        Creates an empty instance.
    • Method Detail

      • getMapView

        @NotNull
        public @NotNull MapView<G,​A,​R> getMapView()
        Returns the map view on which this event occurred.
        Returns:
        the map view
      • getMapLocation

        public java.awt.Point getMapLocation()
      • getModifiers

        public int getModifiers()
      • getMapCursor

        @NotNull
        public @NotNull MapCursor<G,​A,​R> getMapCursor()
      • getClickCount

        public int getClickCount()
      • getButton

        public int getButton()
        Returns the mouse button that changed.
        Returns:
        the changed mouse button
      • setButton

        public void setButton​(int button)
        Sets the mouse button that changed.
        Parameters:
        button - the mouse button that changed
      • setMapLocation

        public void setMapLocation​(java.awt.Point mapLocation)
      • setModifiers

        public void setModifiers​(int modifiers)
      • setClickCount

        public void setClickCount​(int clickCount)
      • getMapControl

        @NotNull
        public @NotNull MapControl<G,​A,​R> getMapControl()
      • getId

        public int getId()
        Returns the event type.
        Returns:
        the event type
        See Also:
        AWTEvent.getID()
      • setId

        public void setId​(int id)
        Sets the event type.
        Parameters:
        id - the event type