Back to project page Flight-Computer-Android-Flightradar24.
The source code is released under:
GNU General Public License
If you think the Android project Flight-Computer-Android-Flightradar24 listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.flightcomputer; import java.util.ArrayList; import javax.microedition.khronos.opengles.GL10; import com.nutiteq.components.MapPos; public class RouteLine { private boolean visible = false; private ArrayList<MapPos> routePos=null; ArrayList<Integer> routecolor=null; openGlUtils glUtil=new openGlUtils(); float width;//from w w w . j av a 2 s . co m public RouteLine() { } public void draw(GL10 gl){ if(!visible){ return; } try{ openGlUtils.drawPoints2D(gl,routePos,routecolor,width); }catch(Exception e){} } public void setVisible(boolean visible) { this.visible = visible; } public void setRoute(ArrayList<MapPos> mapPos,ArrayList<Integer> colorlist,float width) { this.routePos=mapPos; this.routecolor=colorlist; this.width=width; } }