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