Package com.adobe.fxg

Examples of com.adobe.fxg.FXGException


            if (definitions == null)
                definitions = new HashMap<String, DefinitionNode>();

            DefinitionNode node = (DefinitionNode)child;
            if (node.name == null)
                throw new FXGException(child.getStartLine(), child.getStartColumn(), "MissingDefinitionName");

            definitions.put(node.name, node);
        }
        else
        {
View Full Code Here


            copy.blueOffset = blueOffset;
            copy.greenOffset = greenOffset;
        }
        catch (CloneNotSupportedException e)
        {
            throw new FXGException(getStartLine(), getStartColumn(), "InternalProcessingError", e);
       }
        return copy;
    }
View Full Code Here

        String source = parseSource(node.source);

        if (source == null)
        {
            // Exception: Missing source attribute in <BitmapGraphic> or <BitmapFill>.
            throw new FXGException(node.getStartLine(), node.getStartColumn(), "MissingSourceAttribute");
        }
        DefineBits imageTag = createDefineBits(node, source);
       
        if ((node.visible) && (!node.isPartofClipMask))
        {
View Full Code Here

        GroupDefinitionNode groupDefinition = node.groupDefinition;
       
        if (groupDefinition == null)
        {
          //Exception:Definitions must define a single Group child node.
            throw new FXGException(node.getStartLine(), node.getStartColumn(), "MissingGroupChildNode");
        }
        spriteStack.push(definitionSprite);

        if (groupDefinition.definesScaleGrid())
        {
View Full Code Here

            return imageTag;
        }
        catch (IOException ioe)
        {
            // Exception:Error {0} occurred while embedding image {1}.
            throw new FXGException(node.getStartLine(), node.getStartColumn(), "ErrorEmbeddingImage", ioe.getMessage(), source);
        }
    }
View Full Code Here

           
            String source = parseSource(fillNode.source);
            if (source == null)
            {
                // Exception: Missing source attribute in <BitmapGraphic> or <BitmapFill>.
                throw new FXGException(fill.getStartLine(), fill.getStartColumn(), "MissingSourceAttribute");
            }
            DefineBits imageTag = createDefineBits(fill, source);

            //process the filters later to avoid masking
            List<FilterNode> filters = null;
View Full Code Here

       
        if (sourceFormatted == null)
        {
            // Source is required after FXG 1.0
            // Exception: Missing source attribute in <BitmapGraphic> or <BitmapFill>.
            throw new FXGException(fill.getStartLine(), fill.getStartColumn(), "MissingSourceAttribute");
        }

        DefineBits img = createDefineBits(fill, sourceFormatted)
        fs.bitmap = img;
       
View Full Code Here

            {
                if (isInsideScaleGrid())
                {
                    // Exception:A child Group cannot exist in a Group that
                    // defines the scale grid
                    throw new FXGException(child.getStartLine(), child.getStartColumn(), "InvalidScaleGridGroupChild");
                }
            }

            children.add(graphicContent);
        }
View Full Code Here

            super.setAttribute(name, value);
        }

        if ((definesScaleGrid) && (this.rotationSet))
        {
            throw new FXGException(getStartLine(), getStartColumn(), "InvalidScaleGridRotationAttribute");
        }

    }
View Full Code Here

        if (profile.equals(FXG_PROFILE_MOBILE))
            versionHandler = FXGVersionHandlerRegistry.getDefaultMobileHandler();
        else
            versionHandler = FXGVersionHandlerRegistry.getDefaultHandler();
        if (versionHandler == null)
            throw new FXGException("FXGVersionHandlerNotRegistered", FXGVersionHandlerRegistry.defaultVersion.asDouble());
    }
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.