Changeset 9278 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/StyleElement.java
- Timestamp:
- 2016-01-03T15:50:53+01:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement
- Files:
-
- 1 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/StyleElement.java
r9275 r9278 1 1 // License: GPL. For details, see LICENSE file. 2 package org.openstreetmap.josm.gui.mappaint ;2 package org.openstreetmap.josm.gui.mappaint.styleelement; 3 3 4 4 import java.awt.Font; … … 10 10 import org.openstreetmap.josm.data.osm.visitor.paint.MapPaintSettings; 11 11 import org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer; 12 import org.openstreetmap.josm.gui.mappaint.Cascade; 13 import org.openstreetmap.josm.gui.mappaint.Keyword; 14 import org.openstreetmap.josm.gui.mappaint.StyleKeys; 12 15 import org.openstreetmap.josm.gui.mappaint.mapcss.Instruction.RelativeFloat; 13 16 14 public abstract class ElemStyleimplements StyleKeys {17 public abstract class StyleElement implements StyleKeys { 15 18 16 19 protected static final int ICON_IMAGE_IDX = 0; … … 30 33 // primitive; true, if it is a highlight or modifier 31 34 32 public ElemStyle(float major_z_index, float z_index, float object_z_index, boolean isModifier) {35 public StyleElement(float major_z_index, float z_index, float object_z_index, boolean isModifier) { 33 36 this.majorZIndex = major_z_index; 34 37 this.zIndex = z_index; … … 37 40 } 38 41 39 protected ElemStyle(Cascade c, float default_major_z_index) {42 protected StyleElement(Cascade c, float default_major_z_index) { 40 43 majorZIndex = c.get(MAJOR_Z_INDEX, default_major_z_index, Float.class); 41 44 zIndex = c.get(Z_INDEX, 0f, Float.class); … … 208 211 @Override 209 212 public boolean equals(Object o) { 210 if (!(o instanceof ElemStyle))213 if (!(o instanceof StyleElement)) 211 214 return false; 212 ElemStyle s = (ElemStyle) o;215 StyleElement s = (StyleElement) o; 213 216 return isModifier == s.isModifier && 214 217 majorZIndex == s.majorZIndex &&
Note:
See TracChangeset
for help on using the changeset viewer.