Package journeymap.api.v2.client.event
Class PopupMenuEvent
java.lang.Object
journeymap.api.v2.common.event.impl.JourneyMapEvent
journeymap.api.v2.common.event.impl.ClientEvent
journeymap.api.v2.client.event.PopupMenuEvent
- Direct Known Subclasses:
PopupMenuEvent.FullscreenPopupMenuEvent,PopupMenuEvent.WaypointPopupMenuEvent
This event is used for adding items to the right click menu on the fullscreen map.
It is fired when a user right-clicks on the fullscreen map before drawing the popup menu.
This event is not cancellable, when cancelled no popup will appear on right click.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis event is fired when a user right clicks anywhere on the fullscreen map that is not an overlay or waypoint.static enumstatic classThis event is fired when a user right-clicks on a waypoint icon. -
Field Summary
Fields inherited from class journeymap.api.v2.common.event.impl.ClientEvent
dimensionFields inherited from class journeymap.api.v2.common.event.impl.JourneyMapEvent
timestamp -
Constructor Summary
ConstructorsConstructorDescriptionPopupMenuEvent(ModPopupMenu popupMenu, PopupMenuEvent.Layer layer, IFullscreen fullscreen) This event is used for adding items to the right click menu on the fullscreen map. -
Method Summary
Methods inherited from class journeymap.api.v2.common.event.impl.JourneyMapEvent
cancel, isCancellable, isCancelled
-
Constructor Details
-
PopupMenuEvent
This event is used for adding items to the right click menu on the fullscreen map. It is fired when a user right-clicks on the fullscreen map before drawing the popup menu. This event is cancellable.- Parameters:
popupMenu- - The menu builder.layer- - The mapping layer which fired the event.fullscreen- - The fullscreen hook.
-
-
Method Details
-
getPopupMenu
-
getLayer
-
getFullscreen
-