Package org.apache.flex.compiler.internal.fxg.dom

Examples of org.apache.flex.compiler.internal.fxg.dom.GraphicNode


        this.extraTags = extraTags;
        graphicClass = new FXGSymbolClass();
        graphicClass.setPackageName(packageName);
        graphicClass.setClassName(className);
       
        GraphicNode node = (GraphicNode)fxgNode;
        DefineSpriteTag sprite = createDefineSpriteTag("Graphic");
        spriteStack.push(sprite);
       
        // Process mask (if present)
        if (node.mask != null)
            mask(node, sprite);

        // Handle 'scale 9' grid definition
        if (node.definesScaleGrid())
        {
            DefineScalingGridTag grid = createDefineScalingGridTag(node.getScalingGrid());
            grid.setCharacter(sprite);
            extraTags.put(sprite, grid);
            //sprite.scalingGrid = grid;
        }
View Full Code Here


                if (group.children != null)
                    clipDepth = getSpriteDepth(parentSprite) + group.children.size();
            }
            else if (node instanceof GraphicNode)
            {
                GraphicNode graphic = (GraphicNode)node;
                if (graphic.children != null)
                    clipDepth = getSpriteDepth(parentSprite) + graphic.children.size();
            }
            // ... otherwise, just clip the shape itself.
            else
View Full Code Here

        buf.append("    public function ").append(className).append("()\n");
        buf.append("    {\n");
        buf.append("        super();\n");
        if (node instanceof GraphicNode)
        {
            GraphicNode graphicNode = (GraphicNode)node;
            if (!Double.isNaN(graphicNode.viewWidth))
                buf.append("        viewWidth = ").append(graphicNode.viewWidth).append(";\n");

            if (!Double.isNaN(graphicNode.viewHeight))
                buf.append("        viewHeight = ").append(graphicNode.viewHeight).append(";\n");

            if (graphicNode.getMaskType() == MaskType.ALPHA && graphicNode.mask != null)
            {
                int maskIndex = graphicNode.mask.getMaskIndex();
                buf.append("        this.cacheAsBitmap = true;\n");
                buf.append("        this.mask = this.getChildAt(").append(maskIndex).append(");\n");
            }
View Full Code Here

TOP

Related Classes of org.apache.flex.compiler.internal.fxg.dom.GraphicNode

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.