Package com.adobe.fxg

Examples of com.adobe.fxg.FXGException


        }
        else
        {
            // Exception:Numeric value {0} must be greater than or equal to {1}
            // and less than or equal to {2}.
            throw new FXGException(node.getStartLine(), node.getStartColumn(), "OutOfRangeValue", value, min, max);
        }
    }
View Full Code Here


        {
            return Integer.parseInt(value);
        }
        catch(NumberFormatException e)
        {
            throw new FXGException(node.getStartLine(), node.getStartColumn(), "InvalidIntegerValue", name, value);
        }            
    }
View Full Code Here

                return defaultValue;
            }
            else
            {
                // Exception:Unknown interpolation method {0}.
                throw new FXGException(node.getStartLine(), node.getStartColumn(), "UnknownInterpolationMethod", value);
            }
        }
    }
View Full Code Here

        }
        else if (((AbstractFXGNode)node).getFileVersion().equalTo(FXGVersion.v1_0))
        {
            // FXG 1.0 does not support any more maskTypes
            // Exception:Unknown maskType {0}.
            throw new FXGException(node.getStartLine(), node.getStartColumn(), "UnknownMaskType", value);           
        }
        else if (FXG_MASK_LUMINOSITY_VALUE.equals(value))
        {
            return MaskType.LUMINOSITY;
        }
        else
        {
            if (((AbstractFXGNode)node).isVersionGreaterThanCompiler())
            {
                // Warning: Minor version of this FXG file is greater than minor
                // version supported by this compiler. Use default value if an
                // attribute value is out of range.
                FXGLog.getLogger().log(FXGLogger.WARN, "DefaultAttributeValue", null, ((AbstractFXGNode)node).getDocumentName(), node.getStartLine(), node.getStartColumn(), defaultValue, name);
                return defaultValue;
            }
            else
            {
                // Exception:Unknown maskType {0}.
                throw new FXGException(node.getStartLine(), node.getStartColumn(), "UnknownMaskType", value);
            }
        }
    }
View Full Code Here

                return defaultValue;
            }
            else
            {
                // Exception:Unknown fill mode: {0}.
                throw new FXGException(node.getStartLine(), node.getStartColumn(), "UnknownFillMode", value);
            }
        }
           
    }
View Full Code Here

                return defaultValue;
            }
            else
            {
                // Exception:Unknown spreadMethod {0}.
                throw new FXGException(node.getStartLine(), node.getStartColumn(), "UnknownSpreadMethod", value);
            }
        }
    }
View Full Code Here

                return defaultValue;
            }
            else
            {
                //Exception: Invalid identifier format: {0}
                throw new FXGException(node.getStartLine(), node.getStartColumn(), "InvalidIdentifierFormat", value);
            }
        }
    }
View Full Code Here

            if (radiusX < 0)
                // RadiusX, RadiusY, TopLeftRadiusX, TopLeftRadiusY,
              // TopRightRadiusX, TopRightRadiusY, BottomRightRadiusX,
              // BottomRightRadiusY, BottomLeftRadiusX, BottomLeftRadiusX
              // must be greater than 0.
                throw new FXGException(getStartLine(), getStartColumn(), "InvalidRectRadiusXRadiusYAttribute");
        }
        else if (FXG_RADIUSY_ATTRIBUTE.equals(name))
        {
            radiusY = DOMParserHelper.parseDouble(this, value, name);
            if (radiusY < 0)
                // RadiusX, RadiusY, TopLeftRadiusX, TopLeftRadiusY,
              // TopRightRadiusX, TopRightRadiusY, BottomRightRadiusX,
              // BottomRightRadiusY, BottomLeftRadiusX, BottomLeftRadiusX
              // must be greater than 0.
                throw new FXGException(getStartLine(), getStartColumn(), "InvalidRectRadiusXRadiusYAttribute");
        }
        else if (FXG_TOPLEFTRADIUSX_ATTRIBUTE.equals(name))
        {
          topLeftRadiusX = DOMParserHelper.parseDouble(this, value, name);
            if (topLeftRadiusX < 0)
                // RadiusX and RadiusY must be greater than 0.
                throw new FXGException(getStartLine(), getStartColumn(), "InvalidRectRadiusXRadiusYAttribute");
        }
        else if (FXG_TOPLEFTRADIUSY_ATTRIBUTE.equals(name))
        {
          topLeftRadiusY = DOMParserHelper.parseDouble(this, value, name);
            if (topLeftRadiusY < 0)
                // RadiusX and RadiusY must be greater than 0.
                throw new FXGException(getStartLine(), getStartColumn(), "InvalidRectRadiusXRadiusYAttribute");
        }
        else if (FXG_TOPRIGHTRADIUSX_ATTRIBUTE.equals(name))
        {
          topRightRadiusX = DOMParserHelper.parseDouble(this, value, name);
            if (topRightRadiusX < 0)
                // RadiusX and RadiusY must be greater than 0.
                throw new FXGException(getStartLine(), getStartColumn(), "InvalidRectRadiusXRadiusYAttribute");
        }
        else if (FXG_TOPRIGHTRADIUSY_ATTRIBUTE.equals(name))
        {
          topRightRadiusY = DOMParserHelper.parseDouble(this, value, name);
            if (topRightRadiusY < 0)
                // RadiusX and RadiusY must be greater than 0.
                throw new FXGException(getStartLine(), getStartColumn(), "InvalidRectRadiusXRadiusYAttribute");
        }
        else if (FXG_BOTTOMLEFTRADIUSX_ATTRIBUTE.equals(name))
        {
          bottomLeftRadiusX = DOMParserHelper.parseDouble(this, value, name);
            if (bottomLeftRadiusX < 0)
                // RadiusX and RadiusY must be greater than 0.
                throw new FXGException(getStartLine(), getStartColumn(), "InvalidRectRadiusXRadiusYAttribute");
        }
        else if (FXG_BOTTOMLEFTRADIUSY_ATTRIBUTE.equals(name))
        {
          bottomLeftRadiusY = DOMParserHelper.parseDouble(this, value, name);
            if (bottomLeftRadiusY < 0)
                // RadiusX and RadiusY must be greater than 0.
                throw new FXGException(getStartLine(), getStartColumn(), "InvalidRectRadiusXRadiusYAttribute");
        }
        else if (FXG_BOTTOMRIGHTRADIUSX_ATTRIBUTE.equals(name))
        {
          bottomRightRadiusX = DOMParserHelper.parseDouble(this, value, name);
            if (bottomRightRadiusX < 0)
                // RadiusX and RadiusY must be greater than 0.
                throw new FXGException(getStartLine(), getStartColumn(), "InvalidRectRadiusXRadiusYAttribute");
        }
        else if (FXG_BOTTOMRIGHTRADIUSY_ATTRIBUTE.equals(name))
        {
            bottomRightRadiusY = DOMParserHelper.parseDouble(this, value, name);
            if (bottomRightRadiusY < 0)
                // RadiusX and RadiusY must be greater than 0.
                throw new FXGException(getStartLine(), getStartColumn(), "InvalidRectRadiusXRadiusYAttribute");
        }
        else
        {
            super.setAttribute(name, value);
        }
View Full Code Here

                contiguous = true;
            }
           
            if (!contiguous)
            {
              throw new FXGException(child.getStartLine(), child.getStartColumn(), "InvalidTextGraphicContent");             
            }

            content.add((TextNode)child);
        }
    }
View Full Code Here

               */
              return;
            }
            else
            {
              throw new FXGException(child.getStartLine(), child.getStartColumn(), "InvalidTextGraphicContent");
            }
        }
        else
        {
            super.addChild(child);
View Full Code Here

TOP

Related Classes of com.adobe.fxg.FXGException

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.