| 1 |
/* |
| 2 |
* @(#)Positionable.java |
| 3 |
* |
| 4 |
* 2002 - 2012 JIDE Software Incorporated. All rights reserved. |
| 5 |
* Copyright (c) 2005 - 2012 Catalysoft Limited. All rights reserved. |
| 6 |
*/ |
| 7 |
|
| 8 |
package com.jidesoft.range; |
| 9 |
|
| 10 |
/** |
| 11 |
* The idea of being positionable is to place a point somewhere along a one-dimensional axis |
| 12 |
* This is very natural for numerical data, but can be applied to categorical data too. |
| 13 |
* @author Simon White ([email protected]) |
| 14 |
*/ |
| 15 |
public interface Positionable extends Comparable<Positionable> { |
| 16 |
/** |
| 17 |
* Map the <code>Positionable</code> object to a numeric value (a double) so that it can be positioned on an axis. |
| 18 |
* @return the position of the object |
| 19 |
*/ |
| 20 |
double position(); |
| 21 |
} |