mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 09:17:42 +00:00
Added label to track point waypoint objects
This commit is contained in:
parent
767397bcb4
commit
206b134fce
@ -1,3 +1,5 @@
|
||||
# {0} - track name
|
||||
GEOTrack_point_label_header=Trackpoint for track: {0}
|
||||
LastKnownWaypoint_Label=Last Known Location
|
||||
Route_End_Label=End
|
||||
Route_Label=As-the-crow-flies Route
|
||||
|
@ -23,6 +23,7 @@ import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.openide.util.NbBundle.Messages;
|
||||
import org.sleuthkit.datamodel.BlackboardArtifact;
|
||||
import org.sleuthkit.datamodel.BlackboardAttribute;
|
||||
import org.sleuthkit.datamodel.blackboardutils.attributes.GeoTrackPoints;
|
||||
@ -106,9 +107,13 @@ public final class Track extends GeoPath{
|
||||
*
|
||||
* @throws GeoLocationDataException
|
||||
*/
|
||||
@Messages({
|
||||
"# {0} - track name",
|
||||
"GEOTrack_point_label_header=Trackpoint for track: {0}"
|
||||
})
|
||||
private void buildPath(List<GeoTrackPoint> points) throws GeoLocationDataException {
|
||||
for (GeoTrackPoint point : points) {
|
||||
addToPath(new TrackWaypoint(point));
|
||||
addToPath(new TrackWaypoint(Bundle.GEOTrack_point_label_header(getLabel()), point));
|
||||
}
|
||||
}
|
||||
|
||||
@ -183,8 +188,8 @@ public final class Track extends GeoPath{
|
||||
*
|
||||
* @throws GeoLocationDataException
|
||||
*/
|
||||
TrackWaypoint(GeoTrackPoint point) throws GeoLocationDataException {
|
||||
super(null, "",
|
||||
TrackWaypoint(String pointLabel, GeoTrackPoint point) throws GeoLocationDataException {
|
||||
super(null, pointLabel,
|
||||
point.getTimeStamp(),
|
||||
point.getLatitude(),
|
||||
point.getLongitude(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user