Package org.apache.flex.swf.types

Examples of org.apache.flex.swf.types.Gradient


    }

    private Gradient readGradient(TagType tagType)
    {
        bitStream.byteAlign();
        final Gradient gradient = new Gradient();
        gradient.setSpreadMode(bitStream.readUB(2));
        gradient.setInterpolationMode(bitStream.readUB(2));
        final int numGradients = bitStream.readUB(4);
        for (int i = 0; i < numGradients; i++)
        {
            gradient.getGradientRecords().add(readGradRecord(tagType));
        }
        return gradient;
    }
View Full Code Here


    protected FillStyle createFillStyle(LinearGradientFillNode node, Rect bounds)
    {
        FillStyle fs = new FillStyle();
        fs.setFillStyleType(FillStyle.LINEAR_GRADIENT_FILL);
        fs.setGradientMatrix(TypeHelper.linearGradientMatrix(node, bounds));
        Gradient gradient = new Gradient();
        populateGradient(gradient, node.entries, node.interpolationMethod, node.spreadMethod);
        fs.setGradient(gradient);

        return fs;
    }
View Full Code Here

    protected FillStyle createFillStyle(LinearGradientStrokeNode node, Rect bounds)
    {
        FillStyle fs = new FillStyle();
        fs.setFillStyleType(FillStyle.LINEAR_GRADIENT_FILL);
        fs.setGradientMatrix(TypeHelper.linearGradientMatrix(node, bounds));
        Gradient gradient = new Gradient();
        populateGradient(gradient, node.entries, node.interpolationMethod, node.spreadMethod);
        fs.setGradient(gradient);

        return fs;
    }
View Full Code Here

TOP

Related Classes of org.apache.flex.swf.types.Gradient

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.