public class MouseOpEvent<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.util.EventObject
Constructor and Description |
---|
MouseOpEvent(@NotNull MapView<G,A,R> mapView)
Creates an empty instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getButton()
Returns the mouse button that changed.
|
int |
getClickCount() |
int |
getId()
Returns the event type.
|
@NotNull MapControl<G,A,R> |
getMapControl() |
@NotNull MapCursor<G,A,R> |
getMapCursor() |
java.awt.Point |
getMapLocation() |
@NotNull MapView<G,A,R> |
getMapView()
Returns the map view on which this event occurred.
|
int |
getModifiers() |
void |
setButton(int button)
Sets the mouse button that changed.
|
void |
setClickCount(int clickCount) |
void |
setId(int id)
Sets the event type.
|
void |
setMapLocation(java.awt.Point mapLocation) |
void |
setModifiers(int modifiers) |
@NotNull public @NotNull MapView<G,A,R> getMapView()
public java.awt.Point getMapLocation()
public int getModifiers()
public int getClickCount()
public int getButton()
public void setButton(int button)
button
- the mouse button that changedpublic void setMapLocation(java.awt.Point mapLocation)
public void setModifiers(int modifiers)
public void setClickCount(int clickCount)
@NotNull public @NotNull MapControl<G,A,R> getMapControl()
public int getId()
AWTEvent.getID()
public void setId(int id)
id
- the event type