Here you can find the source of toPixelPosY(float posY)
public static float toPixelPosY(float posY)
//package com.java2s; public class Main { public static final int HEIGHT = 600; public static float toPixelPosY(float posY) { float y = HEIGHT - (1.0f * HEIGHT) * posY / 100.0f; return y; }/*from w ww. ja va 2 s .c o m*/ }