Here you can find the source of toPixelLength(float number)
public static int toPixelLength(float number)
//package com.java2s; //License from project: Open Source License public class Main { public static int toPixelLength(float number) { return (int) (number * 16); }//w w w . j a v a 2 s . c o m }