Package org.openstreetmap.josm.gui.mappaint.mapcss.Instruction

Examples of org.openstreetmap.josm.gui.mappaint.mapcss.Instruction.RelativeFloat


                width = getWidth(c, WIDTH, getWidth(c_def, WIDTH, null));
                break;
            case CASING:
                Float casingWidth = c.get(type.prefix + WIDTH, null, Float.class, true);
                if (casingWidth == null) {
                    RelativeFloat rel_casingWidth = c.get(type.prefix + WIDTH, null, RelativeFloat.class, true);
                    if (rel_casingWidth != null) {
                        casingWidth = rel_casingWidth.val / 2;
                    }
                }
                if (casingWidth == null)
View Full Code Here


            if (Keyword.THINNEST.equals(widthKW))
                return 0f;
            if (Keyword.DEFAULT.equals(widthKW))
                return (float) MapPaintSettings.INSTANCE.getDefaultSegmentWidth();
            if (relativeTo != null) {
                RelativeFloat width_rel = c.get(key, null, RelativeFloat.class, true);
                if (width_rel != null)
                    return relativeTo + width_rel.val;
            }
        }
        return null;
View Full Code Here

TOP

Related Classes of org.openstreetmap.josm.gui.mappaint.mapcss.Instruction.RelativeFloat

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.