source: josm/trunk/src/org/openstreetmap/josm/gui/layer/AbstractOsmDataLayer.java@ 14206

Last change on this file since 14206 was 13951, checked in by Don-vip, 6 years ago

better implementation of AbstractOsmDataLayer

  • Property svn:eol-style set to native
File size: 787 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.layer;
3
4import org.openstreetmap.josm.data.osm.OsmData;
5
6/**
7 * Abstraction of {@link OsmDataLayer}.
8 * @since 13926
9 */
10public abstract class AbstractOsmDataLayer extends AbstractModifiableLayer {
11
12 protected AbstractOsmDataLayer(String name) {
13 super(name);
14 }
15
16 /**
17 * Returns the {@link OsmData} behind this layer.
18 * @return the {@link OsmData} behind this layer.
19 */
20 public abstract OsmData<?, ?, ?, ?> getDataSet();
21
22 @Override
23 public void lock() {
24 getDataSet().lock();
25 }
26
27 @Override
28 public void unlock() {
29 getDataSet().unlock();
30 }
31
32 @Override
33 public boolean isLocked() {
34 return getDataSet().isLocked();
35 }
36}
Note: See TracBrowser for help on using the repository browser.