Package com.adobe.fxg

Examples of com.adobe.fxg.FXGException


          FXGLog.getLogger().log(FXGLogger.WARN, "UnknownNodeAttribute", null, getDocumentName(), startLine, startColumn, name, getNodeName());
        }
        else
        {
            // Exception:Attribute {0} not supported by node {1}.
            throw new FXGException(getStartLine(), getStartColumn(), "InvalidNodeAttribute", name, getNodeName());
        }
    }
View Full Code Here


            FXGNode node = scanner.getRootNode();
            return node;
        }
        catch (ParserConfigurationException ex)
        {
            throw new FXGException(scanner.getStartLine(), scanner.getStartColumn(), "ErrorParsingFXG", ex.getLocalizedMessage(), ex);
        }
        catch (SAXException ex)
        {
            throw new FXGException(scanner.getStartLine(), scanner.getStartColumn(), "ErrorParsingFXG", ex.getLocalizedMessage(), ex);
        }
        finally
        {
            stream.close();
        }
View Full Code Here

    {
        if (value.equals("true"))
            return true;
        else if (value.equals("false"))
            return false;
        throw new FXGException(node.getStartLine(), node.getStartColumn(), "InvalidBooleanValue", name, value);
    }
View Full Code Here

        m = rgbPattern.matcher(value);
        if (!m.matches ())
        {
            //Exception: Invalid identifier format: {0}
            throw new FXGException(node.getStartLine(), node.getStartColumn(), "InvalidColorValue", name, value);
        }   

        value = value.substring(1);

        int a = 255;
View Full Code Here

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

            {
                return parseDouble(node, doubleValue, name);   
            }
            catch(FXGException e)
            {
                throw new FXGException(node.getStartLine(), node.getStartColumn(), "InvalidPercentValue", name, value);
            }
        }
        else
        {
            return parseDouble(node, value, name);
View Full Code Here

            {
                return parseDouble(node, doubleValue, name, min, max, defaultValue);   
            }
            catch(FXGException e)
            {
                throw new FXGException(node.getStartLine(), node.getStartColumn(), "InvalidPercentValue", name, value);
            }
        }
        else
        {
            return parseDouble(node, value, name, min, max, defaultValue);
View Full Code Here

            {
                return parseDouble(node, doubleValue, name, minPercent, maxPercent, defaultValue);
            }
            catch(FXGException e)
            {
                throw new FXGException(node.getStartLine(), node.getStartColumn(), "InvalidPercentValue", name, value);
            }
        }
        else
        {
            return parseDouble(node, value, name, minNumber, maxNumber, defaultValue);
View Full Code Here

                return d;
            }
        }
        catch(NumberFormatException e)
        {
            throw new FXGException(node.getStartLine(), node.getStartColumn(), "InvalidDoubleValue", name, value);
        }

        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: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", name, value, min, max);
        }
    }
View Full Code Here

        {
            return Float.parseFloat(value);           
        }
        catch(NumberFormatException e)
        {
            throw new FXGException(node.getStartLine(), node.getStartColumn(), "InvalidFloatValue", value);
        }      
    }
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.