Package info.monitorenter.gui.chart
Class ITrace2D.DistancePoint
- java.lang.Object
-
- info.monitorenter.gui.chart.ITrace2D.DistancePoint
-
- Enclosing interface:
- ITrace2D
public static final class ITrace2D.DistancePoint extends java.lang.Object
Simple struct just for allowing to return a trace point along with a weighted distance.TODO: change this to an interface and implement in abstract base class to hide constructor.
- Version:
- $Revision: 1.41 $
- Author:
- Achim Westermann
-
-
Field Summary
Fields Modifier and Type Field Description static ITrace2D.DistancePoint
EMPTY
Constant for unfound distance.
-
Constructor Summary
Constructors Constructor Description DistancePoint()
Defcon.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getDistance()
ITracePoint2D
getPoint()
void
setDistance(double manhattandistance)
void
setPoint(ITracePoint2D point)
-
-
-
Field Detail
-
EMPTY
public static final ITrace2D.DistancePoint EMPTY
Constant for unfound distance.
-
-
Method Detail
-
getDistance
public final double getDistance()
- Returns:
- the distance.
-
getPoint
public final ITracePoint2D getPoint()
- Returns:
- the point.
-
setDistance
public final void setDistance(double manhattandistance)
- Parameters:
manhattandistance
- the manhattandistance to set
-
setPoint
public final void setPoint(ITracePoint2D point)
- Parameters:
point
- the point to set
-
-