Package org.richfaces.ui.images.GradientType

Examples of org.richfaces.ui.images.GradientType.BiColor



    @Override
    protected void paintGradient(Graphics2D g2d, Dimension dim) {
        if (headerBackgroundColor != null && headerGradientColor != null) {
            BiColor biColor = new GradientType.BiColor(headerBackgroundColor, headerGradientColor);
            BiColor firstLayer = gradientType.getFirstLayerColors(biColor);
            BiColor secondLayer = gradientType.getSecondLayerColors(biColor);

            if (isHorizontal()) {
                //x -> y, y -> x
                g2d.transform(new AffineTransform(0, 1, 1, 0, 0, 0));
                dim.setSize(dim.height, dim.width);
View Full Code Here

TOP

Related Classes of org.richfaces.ui.images.GradientType.BiColor

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.