Package adams.gui.event
Class HeatmapPanelSelectionEvent
- java.lang.Object
-
- java.util.EventObject
-
- adams.gui.event.HeatmapPanelSelectionEvent
-
- All Implemented Interfaces:
Serializable
public class HeatmapPanelSelectionEvent extends EventObject
Event that gets sent in case of a box selection event in theHeatmapPanel
.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Point
m_BottomRight
the bottom-right of the selection.protected int
m_ModifiersEx
the associated modifiers.protected Point
m_TopLeft
the top-left of the selection.-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description HeatmapPanelSelectionEvent(HeatmapPanel source, Point topLeft, Point bottomRight, int modifiersEx)
Initializes the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Point
getBottomRight()
Returns the bottom-right position.HeatmapPanel
getHeatmapPanel()
Returns the heatmap panel that triggered the event.int
getModifiersEx()
Returns the associated modifiers.Point
getTopLeft()
Returns the top-left position.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
HeatmapPanelSelectionEvent
public HeatmapPanelSelectionEvent(HeatmapPanel source, Point topLeft, Point bottomRight, int modifiersEx)
Initializes the event.- Parameters:
source
- the source of the eventtopLeft
- the top-left of the selectionbottomRight
- the bottom-right of the selectionmodifiersEx
- the extended modifiers associated with the event when releasing the mouse
-
-
Method Detail
-
getHeatmapPanel
public HeatmapPanel getHeatmapPanel()
Returns the heatmap panel that triggered the event.- Returns:
- the heatmap panel
-
getTopLeft
public Point getTopLeft()
Returns the top-left position.- Returns:
- the position
-
getBottomRight
public Point getBottomRight()
Returns the bottom-right position.- Returns:
- the position
-
getModifiersEx
public int getModifiersEx()
Returns the associated modifiers.- Returns:
- the modifiers
- See Also:
MouseEvent.getModifiersEx()
-
-