Package com.lightcrafts.ui.editor

Examples of com.lightcrafts.ui.editor.Editor$PanningMouseWheelListener


        System.err.println(message + ": " + t.getMessage());
        System.exit(-1);
    }

    public static void main(String[] args) {
        Editor editor;
        if (args.length == 0) {
            editor = Document.createDisabledEditor(
                new DisabledEditor.Listener() {
                    public void imageClicked(Object key) {
                        System.out.println("image clicked");
View Full Code Here


        if (newDoc != oldDoc) {
            if (oldDoc != null) {
                final RegionManager oldRegions = oldDoc.getRegionManager();
                oldRegions.removeSelectionListener(CurveSelectionListener);
                remove("regions");
                Editor editor = oldDoc.getEditor();
                EditorControls controls = editor.getToolStack();
                controls.removeOpStackListener(ToolListener);
            }
            if (newDoc != null) {
                final RegionManager newRegions = newDoc.getRegionManager();
                newRegions.addSelectionListener(CurveSelectionListener);
                put("regions", newRegions);
                Editor editor = newDoc.getEditor();
                EditorControls controls = editor.getToolStack();
                controls.addOpStackListener(ToolListener);
            }
            else {
                remove("regions");
                remove("selection");
View Full Code Here

                    // Enqueue, because this update can itself be
                    // called from a perspective change.
                    EventQueue.invokeLater(
                        new Runnable() {
                            public void run() {
                                final Editor editor = frame.getEditor();
                                editor.setMode( EditorMode.ARROW );
                                frame.showBrowserPerspective();
                            }
                        }
                    );
                }
View Full Code Here

        return 3;
    }

    public Point getLocation() {
        Document doc = frame.getDocument();
        Editor editor = doc.getEditor();
        JComponent image = editor.getImage();
        Point loc = image.getLocationOnScreen();
        Dimension size = image.getSize();
        Point p = new Point(
            loc.x + size.width - 200, loc.y + size.height - 200
        );
View Full Code Here

        return 3;
    }

    public Point getLocation() {
        Document doc = frame.getDocument();
        Editor editor = doc.getEditor();
        JComponent image = editor.getImage();
        Point loc = image.getLocationOnScreen();
        Dimension size = image.getSize();
        Point p = new Point(
            loc.x + size.width - 200, loc.y + size.height - 200
        );
View Full Code Here

        return 3;
    }

    public Point getLocation() {
        Document doc = frame.getDocument();
        Editor editor = doc.getEditor();
        JComponent image = editor.getImage();
        Point loc = image.getLocationOnScreen();
        Dimension size = image.getSize();
        Point p = new Point(
            loc.x + size.width - 200, loc.y + size.height - 200
        );
View Full Code Here

        return 3;
    }

    public Point getLocation() {
        Document doc = frame.getDocument();
        Editor editor = doc.getEditor();
        JComponent image = editor.getImage();
        Point loc = image.getLocationOnScreen();
        Dimension size = image.getSize();
        Point p = new Point(
            loc.x + size.width - 200, loc.y + size.height - 200
        );
View Full Code Here

            JMenuItem menuItem = new JMenuItem(path);
            menuItem.addActionListener(
                new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        final ComboFrame frame = getComboFrame();
                        final Editor editor = frame.getEditor();
                        editor.setMode( EditorMode.ARROW );
                        Application.open(frame, file);
                    }
                }
            );
            recentMenu.add(menuItem);
View Full Code Here

            JMenuItem menuItem = new JMenuItem(path);
            menuItem.addActionListener(
                new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        final ComboFrame frame = getComboFrame();
                        final Editor editor = frame.getEditor();
                        editor.setMode( EditorMode.ARROW );
                        Application.openRecentFolder(frame, folder);
                    }
                }
            );
            recentMenu.add(menuItem);
View Full Code Here

    public abstract void actionPerformed(ActionEvent event);

    protected void performPreAction( ActionEvent event ) {
        final ComboFrame frame = getComboFrame();
        if ( frame != null ) {
            final Editor editor = frame.getEditor();
            editor.setMode( EditorMode.ARROW );
        }
    }
View Full Code Here

TOP

Related Classes of com.lightcrafts.ui.editor.Editor$PanningMouseWheelListener

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.