/** * Set the text to the elevation text. * * @param elevation elevation of the point in meters. */ public void setElevation(int elevation) { // m - ft conversion if (elevation < -100) text.setData("No Data Here"); else { int elevation_ft = (int) ((float) elevation * 3.280840f); text.setData(elevation + " m / " + elevation_ft + " ft"); } }