Package com.lightcrafts.ui

Examples of com.lightcrafts.ui.ActivityMeter


    public static void main(String[] args) throws IOException {

        RenderedImage image = ImageIO.read(new File(args[0]));
        JComponent comp = new ImageComponent(image);

        final ActivityMeter meter = new ActivityMeter(comp);

        Thread thread = new Thread(
            new Runnable() {
                public void run() {
                    try {
                        for (int n=100; n>=0; n--) {
                            Thread.sleep(100);
                            meter.engineActive(n);
                        }
                    }
                    catch (InterruptedException e) {
                        e.printStackTrace();
                    }
View Full Code Here


            JScrollPane.VERTICAL_SCROLLBAR_NEVER
        );

        imageScroll.setBorder(LightZoneSkin.getImageBorder());

        imagePane = new ActivityMeter(new PannerOverlay(imageScroll));
        engine.addEngineListener(imagePane);

        // Mode initializations:

        regionMode = regions.getMode();
View Full Code Here

            JScrollPane.HORIZONTAL_SCROLLBAR_NEVER
        );
        imageScroll.setVerticalScrollBarPolicy(
            JScrollPane.VERTICAL_SCROLLBAR_NEVER
        );
        imagePane = new ActivityMeter(new PannerOverlay(imageScroll));

        opControls = new EditorControls();

        // Need a RegionManager to initialize the (disabled) regionButton:
        regions = new RegionManager();
View Full Code Here

    // to pick an image to automatically open for editing.
    private Object lastKey;

    DisabledEditor(Listener listener) {
        images = new DisabledImages(listener);
        imagePane = new ActivityMeter(images);

        images.setBorder(LightZoneSkin.getImageBorder());
    }
View Full Code Here

TOP

Related Classes of com.lightcrafts.ui.ActivityMeter

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.