Package org.apache.pivot.wtk

Examples of org.apache.pivot.wtk.ActivityIndicator


    implements ActivityIndicatorListener {
    @Override
    public void install(Component component) {
        super.install(component);

        ActivityIndicator activityIndicator = (ActivityIndicator)component;
        activityIndicator.getActivityIndicatorListeners().add(this);
    }
View Full Code Here


        return 128;
    }

    @Override
    public void paint(Graphics2D graphics) {
        ActivityIndicator activityIndicator = (ActivityIndicator)getComponent();

        int width = getWidth();
        int height = getHeight();

        if (backgroundColor != null) {
            graphics.setColor(backgroundColor);
            graphics.fillRect(0, 0, width, height);
        }

        if (activityIndicator.isActive()) {
            graphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                RenderingHints.VALUE_ANTIALIAS_ON);

            // Translate/scale to fit
            if (width > height) {
View Full Code Here

    implements ActivityIndicatorListener {
    @Override
    public void install(Component component) {
        super.install(component);

        ActivityIndicator activityIndicator = (ActivityIndicator)component;
        activityIndicator.getActivityIndicatorListeners().add(this);
    }
View Full Code Here

        activityIndicator.getActivityIndicatorListeners().add(this);
    }

    @Override
    public void uninstall() {
        ActivityIndicator activityIndicator = (ActivityIndicator)getComponent();
        activityIndicator.getActivityIndicatorListeners().remove(this);

        super.uninstall();
    }
View Full Code Here

TOP

Related Classes of org.apache.pivot.wtk.ActivityIndicator

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.