public class TLcdFixedHeightProvider extends Object implements ILcdHeightProvider
ILcdHeightProvider
interface that
returns a constant given height for any given point. The bounds are not taken
into account.Constructor and Description |
---|
TLcdFixedHeightProvider(double aHeight,
ILcdBounds aBounds)
Creates a height provider that always returns the given height and the
bounds.
|
Modifier and Type | Method and Description |
---|---|
ILcdBounds |
getBounds()
Returns the bounds.
|
double |
retrieveHeightAt(ILcdPoint aPoint)
Returns the same height for every point.
|
public TLcdFixedHeightProvider(double aHeight, ILcdBounds aBounds)
aHeight
- the height to return.aBounds
- the bounds.public double retrieveHeightAt(ILcdPoint aPoint)
retrieveHeightAt
in interface ILcdHeightProvider
aPoint
- a 2D point.public ILcdBounds getBounds()
getBounds
in interface ILcdBounded