public class DragListener extends Object implements EventPlotListener, GlimpseMouseAllListener
Constructor and Description |
---|
DragListener(EventPlotInfo info) |
Modifier and Type | Method and Description |
---|---|
void |
eventsClicked(GlimpseMouseEvent e,
Set<EventSelection> events,
TimeStamp time)
Indicates the mouse clicked on the Events contained in the EventSelection Set.
|
void |
eventsEntered(GlimpseMouseEvent e,
Set<EventSelection> events,
TimeStamp time)
Indicates the mouse moved into of the Events contained in the EventSelection Set.
|
void |
eventsExited(GlimpseMouseEvent e,
Set<EventSelection> events,
TimeStamp time)
Indicates the mouse moved outside of the events contained in the EventSelection Set.
|
void |
eventsHovered(GlimpseMouseEvent e,
Set<EventSelection> events,
TimeStamp time)
Indicates that the mouse moved while inside the Events contained in the EventSelection Set.
|
void |
eventUpdated(GlimpseMouseEvent e,
Event event)
Indicates that the provided Event was updated by the user.
|
boolean |
isEnabled() |
void |
mouseEntered(GlimpseMouseEvent event) |
void |
mouseExited(GlimpseMouseEvent event) |
void |
mouseMoved(GlimpseMouseEvent e) |
void |
mousePressed(GlimpseMouseEvent event) |
void |
mouseReleased(GlimpseMouseEvent event) |
void |
mouseWheelMoved(GlimpseMouseEvent e) |
void |
reset() |
void |
setEnabled(boolean enabled) |
public DragListener(EventPlotInfo info)
public boolean isEnabled()
public void setEnabled(boolean enabled)
public void reset()
public void mouseMoved(GlimpseMouseEvent e)
mouseMoved
in interface GlimpseMouseMotionListener
public void eventsClicked(GlimpseMouseEvent e, Set<EventSelection> events, TimeStamp time)
EventPlotListener
eventsClicked
in interface EventPlotListener
EventPlotListener.eventsExited(GlimpseMouseEvent, Set, TimeStamp)
public void mouseReleased(GlimpseMouseEvent event)
mouseReleased
in interface GlimpseMouseListener
public void eventsHovered(GlimpseMouseEvent e, Set<EventSelection> events, TimeStamp time)
EventPlotListener
eventsHovered
in interface EventPlotListener
EventPlotListener.eventsExited(GlimpseMouseEvent, Set, TimeStamp)
public void eventsExited(GlimpseMouseEvent e, Set<EventSelection> events, TimeStamp time)
EventPlotListener
eventsExited
in interface EventPlotListener
e
- the original MouseEvent which caused this eventsExited callevents
- the events which the mouse moved outside oftime
- the time corresponding to the mouse's current positionpublic void eventsEntered(GlimpseMouseEvent e, Set<EventSelection> events, TimeStamp time)
EventPlotListener
eventsEntered
in interface EventPlotListener
EventPlotListener.eventsExited(GlimpseMouseEvent, Set, TimeStamp)
public void eventUpdated(GlimpseMouseEvent e, Event event)
EventPlotListener
Indicates that the provided Event was updated by the user. If enabled, the user can click and drag to change the start and/or end time of Events. When the user does this, eventUpdated is called.
If the update was caused by user mouse actions, the GlimpseMouseEvent argument will contain the mouse event which moved the event. If the event was modified programatically, then the GlimpseMouseEvent will be null.
eventUpdated
in interface EventPlotListener
e
- The GlimpseMouseEvent which caused the Event update, or null if the Event was updated programaticallyevent
- The updated Eventpublic void mouseEntered(GlimpseMouseEvent event)
mouseEntered
in interface GlimpseMouseListener
public void mouseExited(GlimpseMouseEvent event)
mouseExited
in interface GlimpseMouseListener
public void mousePressed(GlimpseMouseEvent event)
mousePressed
in interface GlimpseMouseListener
public void mouseWheelMoved(GlimpseMouseEvent e)
mouseWheelMoved
in interface GlimpseMouseWheelListener
Copyright © 2016 Metron, Inc.. All rights reserved.