Exemple #1
0
 public Route(Color color) {
   mColor = color;
   Points = new ArrayList<TrackPoint>();
   ArrowSprite = Sprites.Arrows.get(5);
   PointSprite = Sprites.Arrows.get(10);
   overlap = 0.9f;
 }
Exemple #2
0
 public Route(Color color, boolean isOpenRoute) {
   mIsOpenRoute = isOpenRoute;
   if (isOpenRoute) {
     ArrowSprite = new Sprite(Sprites.Arrows.get(5));
     PointSprite = new Sprite(Sprites.Arrows.get(10));
     ArrowSprite.scale(1.6f);
     PointSprite.scale(0.2f);
     overlap = 1.9f;
   } else {
     ArrowSprite = Sprites.Arrows.get(5);
     PointSprite = Sprites.Arrows.get(10);
     overlap = 0.9f;
   }
   mColor = color;
   Points = new ArrayList<TrackPoint>();
 }