Changeset 12115 in josm for trunk/src/org


Ignore:
Timestamp:
2017-05-11T01:48:13+02:00 (8 years ago)
Author:
michael2402
Message:

Document OsmDataLayer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java

    r12028 r12115  
    134134    public final List<TestError> validationErrors = new ArrayList<>();
    135135
     136    /**
     137     * The default number of relations in the recent relations cache.
     138     * @see #getRecentRelations()
     139     */
    136140    public static final int DEFAULT_RECENT_RELATIONS_NUMBER = 20;
     141    /**
     142     * The number of relations to use in the recent relations cache.
     143     * @see #getRecentRelations()
     144     */
    137145    public static final IntegerProperty PROPERTY_RECENT_RELATIONS_NUMBER = new IntegerProperty("properties.last-closed-relations-size",
    138146            DEFAULT_RECENT_RELATIONS_NUMBER);
     147    /**
     148     * The extension that should be used when saving the OSM file.
     149     */
    139150    public static final StringProperty PROPERTY_SAVE_EXTENSION = new StringProperty("save.extension.osm", "osm");
    140151
     
    160171     * @param relation new entry for the list of recently closed relations
    161172     * @since 9668
     173     * @see #PROPERTY_RECENT_RELATIONS_NUMBER
    162174     */
    163175    public void setRecentRelation(Relation relation) {
     
    223235    }
    224236
     237    /**
     238     * A listener that counts the number of primitives it encounters
     239     */
    225240    public static final class DataCountVisitor extends AbstractVisitor {
     241        /**
     242         * Nodes that have been visited
     243         */
    226244        public int nodes;
     245        /**
     246         * Ways that have been visited
     247         */
    227248        public int ways;
     249        /**
     250         * Relations that have been visited
     251         */
    228252        public int relations;
     253        /**
     254         * Deleted nodes that have been visited
     255         */
    229256        public int deletedNodes;
     257        /**
     258         * Deleted ways that have been visited
     259         */
    230260        public int deletedWays;
     261        /**
     262         * Deleted relations that have been visited
     263         */
    231264        public int deletedRelations;
    232265
     
    256289    }
    257290
     291    /**
     292     * A listener that gets notified of command queue (undo/redo) size changes.
     293     */
    258294    @FunctionalInterface
    259295    public interface CommandQueueListener {
     296        /**
     297         * Notifies the listener about the new queue size
     298         * @param queueSize Undo stack size
     299         * @param redoSize Redo stack size
     300         */
    260301        void commandChanged(int queueSize, int redoSize);
    261302    }
Note: See TracChangeset for help on using the changeset viewer.