Changeset 6889 in josm for trunk/src/org/openstreetmap/josm/gui/layer/Layer.java
- Timestamp:
- 2014-02-27T01:41:49+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/Layer.java
r6830 r6889 48 48 * @author imi 49 49 */ 50 abstract publicclass Layer implements Destroyable, MapViewPaintable, ProjectionChangeListener {50 public abstract class Layer implements Destroyable, MapViewPaintable, ProjectionChangeListener { 51 51 52 52 public interface LayerAction { … … 59 59 } 60 60 61 62 61 /** 63 62 * Special class that can be returned by getMenuEntries when JSeparator needs to be created … … 80 79 } 81 80 82 static public final String VISIBLE_PROP = Layer.class.getName() + ".visible";83 static public final String OPACITY_PROP = Layer.class.getName() + ".opacity";84 static public final String NAME_PROP = Layer.class.getName() + ".name";85 86 static public final int ICON_SIZE = 16;81 public static final String VISIBLE_PROP = Layer.class.getName() + ".visible"; 82 public static final String OPACITY_PROP = Layer.class.getName() + ".opacity"; 83 public static final String NAME_PROP = Layer.class.getName() + ".name"; 84 85 public static final int ICON_SIZE = 16; 87 86 88 87 /** keeps track of property change listeners */ … … 142 141 */ 143 142 @Override 144 abstract public void paint(Graphics2D g, MapView mv, Bounds box); 143 public abstract void paint(Graphics2D g, MapView mv, Bounds box); 144 145 145 /** 146 146 * Return a representative small image for this layer. The image must not 147 147 * be larger than 64 pixel in any dimension. 148 148 */ 149 abstract publicIcon getIcon();149 public abstract Icon getIcon(); 150 150 151 151 /** … … 162 162 * @return A small tooltip hint about some statistics for this layer. 163 163 */ 164 abstract publicString getToolTipText();164 public abstract String getToolTipText(); 165 165 166 166 /** … … 171 171 * mergeFrom should be one of the last things to do with a layer. 172 172 */ 173 abstract publicvoid mergeFrom(Layer from);173 public abstract void mergeFrom(Layer from); 174 174 175 175 /** … … 177 177 * @return Whether the other layer can be merged into this layer. 178 178 */ 179 abstract publicboolean isMergable(Layer other);180 181 abstract publicvoid visitBoundingBox(BoundingXYVisitor v);182 183 abstract publicObject getInfoComponent();179 public abstract boolean isMergable(Layer other); 180 181 public abstract void visitBoundingBox(BoundingXYVisitor v); 182 183 public abstract Object getInfoComponent(); 184 184 185 185 /** … … 200 200 * 201 201 */ 202 abstract publicAction[] getMenuEntries();202 public abstract Action[] getMenuEntries(); 203 203 204 204 /**
Note:
See TracChangeset
for help on using the changeset viewer.