Package com.lightcrafts.ui.mode

Examples of com.lightcrafts.ui.mode.ModeOverlay


        Box buttons = Box.createHorizontalBox();
        buttons.add(inButton);
        buttons.add(outButton);

        ModeOverlay overlay = new ModeOverlay(panel);

        CenteringScrollPane scroll = new CenteringScrollPane(overlay);

        Mode mode = new ScrollMode(scroll);

        overlay.pushMode(mode);

        overlay.addMouseWheelListener(
            new MouseWheelListener() {
                public void mouseWheelMoved(MouseWheelEvent e) {
                    System.out.println("wheel moved " + e.getWheelRotation());
                }
            }
View Full Code Here


        this.crop = crop;

        // Instantiate the UI elements:

        Component image = engine.getComponent();
        overlay = new ModeOverlay(image);

        imageScroll = new CenteringScrollPane(overlay);
        imageScroll.setHorizontalScrollBarPolicy(
            JScrollPane.HORIZONTAL_SCROLLBAR_NEVER
        );
View Full Code Here

    // This method was cloned from the regular Editor constructor, with
    // dummy data substituted for Document data.

    Editor() {
        final Component image = new JLabel();     // JLabel is not opaque
        overlay = new ModeOverlay(image);

        imageScroll = new CenteringScrollPane(overlay);
        imageScroll.setHorizontalScrollBarPolicy(
            JScrollPane.HORIZONTAL_SCROLLBAR_NEVER
        );
View Full Code Here

TOP

Related Classes of com.lightcrafts.ui.mode.ModeOverlay

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.