Here you can find the source of toPixelWidth(float width)
public static float toPixelWidth(float width)
//package com.java2s; public class Main { public static final int WIDTH = 800; public static float toPixelWidth(float width) { return WIDTH * width / 100.0f; }//from w ww. j a v a 2 s.co m }