Changeset 16252 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/NodeElement.java
- Timestamp:
- 2020-04-11T08:54:12+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/NodeElement.java
r14193 r16252 24 24 import org.openstreetmap.josm.spi.preferences.Config; 25 25 import org.openstreetmap.josm.tools.CheckParameterUtil; 26 import org.openstreetmap.josm.tools.ColorHelper; 26 27 import org.openstreetmap.josm.tools.Logging; 27 28 import org.openstreetmap.josm.tools.RotationAngle; … … 168 169 169 170 mapImage.alpha = Utils.clamp(Config.getPref().getInt("mappaint.icon-image-alpha", 255), 0, 255); 170 Integer pAlpha = Utils.colorFloat2int(c.get(keys[ICON_OPACITY_IDX], null, float.class));171 Integer pAlpha = ColorHelper.float2int(c.get(keys[ICON_OPACITY_IDX], null, float.class)); 171 172 if (pAlpha != null) { 172 173 mapImage.alpha = pAlpha; … … 213 214 Stroke stroke = null; 214 215 if (strokeColor != null && strokeWidth != null) { 215 Integer strokeAlpha = Utils.colorFloat2int(c.get("symbol-stroke-opacity", null, Float.class));216 Integer strokeAlpha = ColorHelper.float2int(c.get("symbol-stroke-opacity", null, Float.class)); 216 217 if (strokeAlpha != null) { 217 218 strokeColor = new Color(strokeColor.getRed(), strokeColor.getGreen(), … … 227 228 228 229 if (fillColor != null) { 229 Integer fillAlpha = Utils.colorFloat2int(c.get("symbol-fill-opacity", null, Float.class));230 Integer fillAlpha = ColorHelper.float2int(c.get("symbol-fill-opacity", null, Float.class)); 230 231 if (fillAlpha != null) { 231 232 fillColor = new Color(fillColor.getRed(), fillColor.getGreen(),
Note:
See TracChangeset
for help on using the changeset viewer.