impement onMeasure in GraphView for good measure calculation