Package dataPlots.mouse
Class MouseSelectionListener
java.lang.Object
dataPlots.mouse.PlotMouseAdapter
dataPlots.mouse.MouseSelectionListener
- All Implemented Interfaces:
PlotMouseListener
,PlotMouseMotionListener
Class for dealing with sleecting individual data units with a Mouse.
- Author:
- spn1
-
Field Summary
Modifier and TypeFieldDescriptiondouble
The minimum pixel distance for a mouse to be for unit to be selected -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
mouseClicked
(TDGraph tdGraph, int iPanel, MouseEvent mouseEvent, FoundDataUnit foundDataUnit) int
mouseEntered
(TDGraph tdGraph, int iPanel, MouseEvent mouseEvent, FoundDataUnit foundDataUnit) int
mouseExited
(TDGraph tdGraph, int iPanel, MouseEvent mouseEvent, FoundDataUnit foundDataUnit) int
mousePressed
(TDGraph tdGraph, int iPanel, MouseEvent mouseEvent, FoundDataUnit foundDataUnit) int
mouseReleased
(TDGraph tdGraph, int iPanel, MouseEvent mouseEvent, FoundDataUnit foundDataUnit) Methods inherited from class dataPlots.mouse.PlotMouseAdapter
mouseDragged, mouseMoved
-
Field Details
-
minPixDist
public double minPixDistThe minimum pixel distance for a mouse to be for unit to be selected
-
-
Constructor Details
-
MouseSelectionListener
public MouseSelectionListener()
-
-
Method Details
-
mouseClicked
public int mouseClicked(TDGraph tdGraph, int iPanel, MouseEvent mouseEvent, FoundDataUnit foundDataUnit) - Specified by:
mouseClicked
in interfacePlotMouseListener
- Overrides:
mouseClicked
in classPlotMouseAdapter
-
mouseEntered
public int mouseEntered(TDGraph tdGraph, int iPanel, MouseEvent mouseEvent, FoundDataUnit foundDataUnit) - Specified by:
mouseEntered
in interfacePlotMouseListener
- Overrides:
mouseEntered
in classPlotMouseAdapter
-
mouseExited
public int mouseExited(TDGraph tdGraph, int iPanel, MouseEvent mouseEvent, FoundDataUnit foundDataUnit) - Specified by:
mouseExited
in interfacePlotMouseListener
- Overrides:
mouseExited
in classPlotMouseAdapter
-
mousePressed
public int mousePressed(TDGraph tdGraph, int iPanel, MouseEvent mouseEvent, FoundDataUnit foundDataUnit) - Specified by:
mousePressed
in interfacePlotMouseListener
- Overrides:
mousePressed
in classPlotMouseAdapter
-
mouseReleased
public int mouseReleased(TDGraph tdGraph, int iPanel, MouseEvent mouseEvent, FoundDataUnit foundDataUnit) - Specified by:
mouseReleased
in interfacePlotMouseListener
- Overrides:
mouseReleased
in classPlotMouseAdapter
-