20 package net.sf.gridarta.gui.map.event;
22 import java.awt.Point;
23 import java.util.EventObject;
30 import org.jetbrains.annotations.NotNull;
96 mapCursor = mapView.getMapCursor();
97 mapControl = mapView.getMapControl();
void setButton(final int button)
Sets the mouse button that changed.
Graphical User Interface of Gridarta.
MapControl< G, A, R > getMapControl()
void setClickCount(final int clickCount)
MapCursor provides methods to move and drag on map.
int modifiers
The modifiers during this event.
final MapControl< G, A, R > mapControl
The map control for this event.
Base package of all Gridarta classes.
final MapCursor< G, A, R > mapCursor
The cursor to use for this event.
Reflects a game object (object on a map).
int getButton()
Return the mouse button that changed.
MouseOpEvent(@NotNull final MapView< G, A, R > mapView)
Create an empty MouseOpEvent.
void setMapLocation(final Point mapLocation)
GameObjects are the objects based on Archetypes found on maps.
Point mapLocation
The location of the point on the map model.
void setId(final int id)
Sets the event type.
Base classes for rendering maps.
MapCursor< G, A, R > getMapCursor()
Currently nothing more than a marker interface for unification.
A MouseOpEvent is an event triggered for a MouseOpListener.
A map view consists of a map grid and a map cursor, and is attached to a map control.
MapView< G, A, R > getMapView()
Returns the map view on which this event occurred.
final MapView< G, A, R > mapView
The map view on which this event occurred.
int clickCount
The number of consecutive mouse clicks (only valid for click events).
void setModifiers(final int modifiers)
static final long serialVersionUID
The serial version UID.
int button
The pressed mouse button.
int getId()
Returns the event type.
Interface for MapArchObjects.