Package adams.gui.event
Class PlotPanelPanningEvent
- java.lang.Object
-
- java.util.EventObject
-
- adams.gui.event.PlotPanelPanningEvent
-
- All Implemented Interfaces:
Serializable
public class PlotPanelPanningEvent extends EventObject
Event that gets sent in case of a panning event in thePlotPanel
.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PlotPanelPanningEvent.PanningEventType
The type of panning event.
-
Field Summary
Fields Modifier and Type Field Description protected PlotPanelPanningEvent.PanningEventType
m_EventType
the event type.-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description PlotPanelPanningEvent(PlotPanel source, PlotPanelPanningEvent.PanningEventType type)
Initializes the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlotPanelPanningEvent.PanningEventType
getEventType()
Returns the event type.PlotPanel
getPlotPanel()
Returns the plot panel that triggered the event.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Field Detail
-
m_EventType
protected PlotPanelPanningEvent.PanningEventType m_EventType
the event type.
-
-
Constructor Detail
-
PlotPanelPanningEvent
public PlotPanelPanningEvent(PlotPanel source, PlotPanelPanningEvent.PanningEventType type)
Initializes the event.- Parameters:
source
- the source of the eventtype
- the event type
-
-
Method Detail
-
getPlotPanel
public PlotPanel getPlotPanel()
Returns the plot panel that triggered the event.- Returns:
- the plot panel
-
getEventType
public PlotPanelPanningEvent.PanningEventType getEventType()
Returns the event type.- Returns:
- the type
-
-