public final class ConstantHeightMap extends AbstractHeightMap
name, seed| Constructor and Description | 
|---|
| ConstantHeightMap(double height) | 
| ConstantHeightMap(java.lang.String name,
                 double height) | 
| Modifier and Type | Method and Description | 
|---|---|
| double | getConstantValue()If the height map is  constant: returns the constant
 value that would be returned for any location fromHeightMap.getHeight(int, int)andHeightMap.getHeight(float, float). | 
| double | getHeight() | 
| double | getHeight(float x,
         float y)Get the height of the height map at a particular location. | 
| double | getHeight(int x,
         int y)Get the height of the height map at a particular location. | 
| javax.swing.Icon | getIcon()Get a 16x16 icon representing this height map. | 
| double[] | getRange()Get the range of this height map, i.e. | 
| boolean | isConstant()Indicate whether the height map is constant, i.e. | 
clone, getBaseHeight, getColour, getExtent, getName, getParent, getSeed, setName, setSeedpublic ConstantHeightMap(double height)
public ConstantHeightMap(java.lang.String name,
                         double height)
public double getHeight()
public double getHeight(int x,
                        int y)
HeightMapgetHeight in interface HeightMapgetHeight in class AbstractHeightMapx - The X coordinate of the location of which to get the height.y - The Y coordinate of the location of which to get the height.public double getHeight(float x,
                        float y)
HeightMapgetHeight in interface HeightMapgetHeight in class AbstractHeightMapx - The X coordinate of the location of which to get the height.y - The Y coordinate of the location of which to get the height.public boolean isConstant()
HeightMapisConstant in interface HeightMapisConstant in class AbstractHeightMaptrue if the height map is constant.public double getConstantValue()
HeightMapconstant: returns the constant
 value that would be returned for any location from
 HeightMap.getHeight(int, int) and HeightMap.getHeight(float, float). If the
 height map is not constant the behaviour is undefined.getConstantValue in interface HeightMapgetConstantValue in class AbstractHeightMapHeightMap.isConstant().public javax.swing.Icon getIcon()
HeightMappublic double[] getRange()
HeightMapHeightMap.getBaseHeight()) and the upper bound in
 index 1.