|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPointFinder
Interface for finding a
of a
ITracePoint2D
corresponding to a mouse event.
Chart2D
This is used to allow a pluggable strategy for this task which is needed by point highlighting and/or tool tips.
Method Summary | |
---|---|
ITracePoint2D |
getNearestPoint(int mouseEventX,
int mouseEventY,
Chart2D chart)
Returns the nearest to the given mouse
event's screen coordinates. |
ITracePoint2D |
getNearestPoint(java.awt.event.MouseEvent me,
Chart2D chart)
Returns the nearest to the given mouse
event's screen coordinates or null if no point was found /
service is not implemented. |
Method Detail |
---|
ITracePoint2D getNearestPoint(int mouseEventX, int mouseEventY, Chart2D chart)
ITracePoint2D
to the given mouse
event's screen coordinates.
mouseEventX
- the x pixel value relative to the chart (e.g.:
MouseEvent.getY()
).mouseEventY
- the y pixel value relative to the chart (e.g.:
MouseEvent.getY()
).chart
- to search points within.
ITracePoint2D
to the given mouse
event's screen coordinates.ITracePoint2D getNearestPoint(java.awt.event.MouseEvent me, Chart2D chart)
MouseEvent
to the given mouse
event's screen coordinates or null
if no point was found /
service is not implemented.
Simple implementations could use Manhattan distance or Euclid distance.
me
- the mouse event over the chart.chart
- to search points within.
MouseEvent
to the given mouse
event's screen coordinates or null
if no point was
found / service is not implemented.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |