Package com.explodingpixels.painter

Examples of com.explodingpixels.painter.GradientPainter


    // Private methods. ///////////////////////////////////////////////////////////////////////////

    private void createAndInstallBackgroundPainter() {
        Painter<Component> focusedPainter =
                new GradientPainter(
                        MacColorUtils.OS_X_BOTTOM_BAR_ACTIVE_TOP_COLOR,
                        MacColorUtils.OS_X_BOTTOM_BAR_ACTIVE_BOTTOM_COLOR);
        Painter<Component> unfocusedPainter =
                new GradientPainter(
                        MacColorUtils.OS_X_BOTTOM_BAR_INACTIVE_TOP_COLOR,
                        MacColorUtils.OS_X_BOTTOM_BAR_INACTIVE_BOTTOM_COLOR);
        Painter<Component> painter = new FocusStatePainter(focusedPainter, focusedPainter,
                unfocusedPainter);
        fBottomBar.setBackgroundPainter(painter);
View Full Code Here

TOP

Related Classes of com.explodingpixels.painter.GradientPainter

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.