Examples of EmbedScalingGridValueProblem


Examples of org.apache.flex.compiler.problems.EmbedScalingGridValueProblem

            else if (EmbedAttribute.SCALE_GRID_BOTTOM.equals(key))
            {
                Integer intValue = Integer.parseInt(value);
                if (intValue.intValue() < 0)
                {
                    problems.add(new EmbedScalingGridValueProblem(location, EmbedAttribute.SCALE_GRID_BOTTOM, intValue.intValue()));
                    hadError = true;
                }
                else
                {
                    intValue *= ISWFConstants.TWIPS_PER_PIXEL;
                    attributes.put(EmbedAttribute.SCALE_GRID_BOTTOM, intValue);
                }
            }
            else if (EmbedAttribute.SCALE_GRID_LEFT.equals(key))
            {
                Integer intValue = Integer.parseInt(value);
                if (intValue.intValue() < 0)
                {
                    problems.add(new EmbedScalingGridValueProblem(location, EmbedAttribute.SCALE_GRID_LEFT, intValue.intValue()));
                    hadError = true;
                }
                else
                {
                    intValue *= ISWFConstants.TWIPS_PER_PIXEL;
                    attributes.put(EmbedAttribute.SCALE_GRID_LEFT, intValue);
                }
            }
            else if (EmbedAttribute.SCALE_GRID_RIGHT.equals(key))
            {
                Integer intValue = Integer.parseInt(value);
                if (intValue.intValue() < 0)
                {
                    problems.add(new EmbedScalingGridValueProblem(location, EmbedAttribute.SCALE_GRID_RIGHT, intValue.intValue()));
                    hadError = true;
                }
                else
                {
                    intValue *= ISWFConstants.TWIPS_PER_PIXEL;
                    attributes.put(EmbedAttribute.SCALE_GRID_RIGHT, intValue);
                }
            }
            else if (EmbedAttribute.SCALE_GRID_TOP.equals(key))
            {
                Integer intValue = Integer.parseInt(value);
                if (intValue.intValue() < 0)
                {
                    problems.add(new EmbedScalingGridValueProblem(location, EmbedAttribute.SCALE_GRID_TOP, intValue.intValue()));
                    hadError = true;
                }
                else
                {
                    intValue *= ISWFConstants.TWIPS_PER_PIXEL;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.