source: osm/applications/editors/josm/plugins/mapillary/src/org/openstreetmap/josm/plugins/mapillary/commands/MapillaryCommand.java@ 31257

Last change on this file since 31257 was 31257, checked in by nokutu, 10 years ago

New history dialog

File size: 611 bytes
Line 
1package org.openstreetmap.josm.plugins.mapillary.commands;
2
3import java.util.List;
4
5import org.openstreetmap.josm.plugins.mapillary.MapillaryAbstractImage;
6
7/**
8 * Abstract class for any Mapillary command.
9 *
10 * @author nokutu
11 *
12 */
13public abstract class MapillaryCommand {
14 protected List<MapillaryAbstractImage> images;
15
16 public abstract void undo();
17
18 public abstract void redo();
19
20 public abstract void sum(MapillaryCommand command);
21
22 public void checkModified() {
23 for (MapillaryAbstractImage image : images)
24 image.isModified = (image.tempLatLon == image.latLon || image.tempCa == image.ca);
25 }
26}
Note: See TracBrowser for help on using the repository browser.