public void printDetails() {
Calendar c = new GregorianCalendar ();
System.out.println ("This is a debugging tool for dumping track point details.");
System.out.println ("Track point Position: "+position.getDegreeLatitude ()+"."+position.getMinuteLatitude ()+"."+position.getSecondLatitude ()+position.getLatOrientChar ()+", "+position.getDegreeLongitude()+"."+position.getMinuteLongitude ()+"."+position.getSecondLongitude ()+position.getLongOrientChar ());
System.out.println ("Track Point Altitude: "+altitude);
System.out.println ("Track Point Depth: "+depth);
c.setTime (time);
System.out.println ("Track Point Date: "+c.get (Calendar.MONTH)+"-"+c.get (Calendar.DAY_OF_MONTH)+"-"+c.get (Calendar.YEAR)+" "+c.get (Calendar.HOUR)+":"+c.get (Calendar.MINUTE)+":"+c.get (Calendar.SECOND)+" GMT");
if (newTrack == true)
System.out.println ("This is the start of a new track.");
System.out.println ("");
}
|