Package pivot.wtk

Examples of pivot.wtk.ActivityIndicator$ActivityIndicatorListenerList


    public int getPreferredHeight(int width) {
        return 128;
    }

    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);

            // Scale/translate 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 pivot.wtk.ActivityIndicator$ActivityIndicatorListenerList

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.