Package org.noos.xing.mydoggy.plaf.ui.cmp.event

Examples of org.noos.xing.mydoggy.plaf.ui.cmp.event.FloatingMoveMouseInputHandler


            innerPane.setFocusable(true);
            innerPane.setLayout(null);
            innerPane.setOpaque(true);
            innerPane.setBackground(Color.BLUE);

            FloatingMoveMouseInputHandler floatingMoveMouseInputHandler = new FloatingMoveMouseInputHandler(this);
            innerPane.addMouseListener(floatingMoveMouseInputHandler);
            innerPane.addMouseMotionListener(floatingMoveMouseInputHandler);
            innerPane.addMouseListener(new PopupMouseInput());

            add(innerPane, "1,1,FULL,FULL");
View Full Code Here


        FloatingTypeDescriptor typeDescriptor = (FloatingTypeDescriptor) descriptor.getTypeDescriptor(ToolWindowType.FLOATING);
        typeDescriptor.addPropertyChangeListener(this);

        new FloatingToolTransparencyListener(this, descriptor, window);
        resizeMouseInputHandler = new FloatingResizeMouseInputHandler(window);
        moveMouseInputHandler = new FloatingMoveMouseInputHandler(window);

        window.addComponentListener(new ComponentAdapter() {
            public void componentResized(ComponentEvent e) {
                valueAdjusting = true;
                try {
View Full Code Here

        });

        descriptor.getTypeDescriptor(ToolWindowType.FLOATING_LIVE).addPropertyChangeListener(this);

        resizeMouseInputHandler = new FloatingResizeMouseInputHandler(sheet);
        moveMouseInputHandler = new FloatingMoveMouseInputHandler(sheet);
    }
View Full Code Here

                    }
                    window.setBounds(oldWindow.getBounds());
                    window.setName("toolWindow.floating.window." + toolWindow.getId());
                    window.setContentPane(oldWindow.getContentPane());
                    resizeMouseInputHandler = new FloatingResizeMouseInputHandler(window.getWindow());
                    moveMouseInputHandler = new FloatingMoveMouseInputHandler(window.getWindow());
                    window.getWindow().addMouseMotionListener(resizeMouseInputHandler);
                    window.getWindow().addMouseListener(resizeMouseInputHandler);
                    window.getWindow().addComponentListener(windowComponentAdapter);

                    // Dispose old
                    oldWindow.getWindow().dispose();

                    // Show new
                    window.setVisible(true);

                    if (focusOwner != null)
                        SwingUtil.requestFocus(focusOwner);
                } else {
                    ModalWindow oldWindow = window;

                    // Clean old window
                    oldWindow.getWindow().removeComponentListener(windowComponentAdapter);
                    oldWindow.getWindow().removeMouseMotionListener(resizeMouseInputHandler);
                    oldWindow.getWindow().removeMouseListener(resizeMouseInputHandler);

                    // Prepare for new
                    if ((Boolean) evt.getNewValue()) {
                        window = new JModalFrame(toolWindow,
                                                 resourceManager,
                                                 resourceManager.getBoolean("dialog.owner.enabled", true) ? descriptor.getWindowAnchestor() : null,
                                                 null,
                                                 false);
                    } else {
                        window = new JModalWindow(resourceManager,
                                                  resourceManager.getBoolean("dialog.owner.enabled", true) ? descriptor.getWindowAnchestor() : null,
                                                  null,
                                                  false);
                    }

                    window.setName("toolWindow.floating.window." + toolWindow.getId());
                    window.setContentPane(oldWindow.getContentPane());
                    resizeMouseInputHandler = new FloatingResizeMouseInputHandler(window.getWindow());
                    moveMouseInputHandler = new FloatingMoveMouseInputHandler(window.getWindow());
                    window.getWindow().addMouseMotionListener(resizeMouseInputHandler);
                    window.getWindow().addMouseListener(resizeMouseInputHandler);
                    window.getWindow().addComponentListener(new WindowComponentAdapter());

                    // Finalize clean
View Full Code Here

        contentPane.setBorder(BorderFactory.createLineBorder(Color.GRAY));
        window.setContentPane(contentPane);

        new FloatingToolTransparencyListener(this, descriptor, window.getWindow());
        resizeMouseInputHandler = new FloatingResizeMouseInputHandler(window.getWindow());
        moveMouseInputHandler = new FloatingMoveMouseInputHandler(window.getWindow());

        window.getWindow().addComponentListener(windowComponentAdapter = new WindowComponentAdapter());

        if (!settedListener)
            initWindowListeners();
View Full Code Here

        protected int lensPosition;

        public LensPanel() {
            setOpaque(false);

            FloatingMoveMouseInputHandler floatingMoveMouseInputHandler = new FloatingMoveMouseInputHandler(this) {
                public void mouseReleased(MouseEvent ev) {
                    super.mouseReleased(ev);
                    SwingUtil.repaint(LensPanel.this);
                }
            };
View Full Code Here

            innerPane.setFocusable(true);
            innerPane.setLayout(null);
            innerPane.setOpaque(true);
            innerPane.setBackground(Color.BLUE);

            FloatingMoveMouseInputHandler floatingMoveMouseInputHandler = new FloatingMoveMouseInputHandler(this);
            innerPane.addMouseListener(floatingMoveMouseInputHandler);
            innerPane.addMouseMotionListener(floatingMoveMouseInputHandler);
            innerPane.addMouseListener(new PopupMouseInput());

            add(innerPane, "1,1,FULL,FULL");
View Full Code Here

                }
            }
        });

        // Init window listeners
        moveMouseInputHandler = new FloatingMoveMouseInputHandler(null);
        windowComponentAdapter = new WindowComponentAdapter();
    }
View Full Code Here

        // Animation listener
        floatingAnimation.removeAnimationListener(animationListener);

        // Init window listeners
        moveMouseInputHandler = new FloatingMoveMouseInputHandler(null);
        windowComponentAdapter = new WindowComponentAdapter();
    }
View Full Code Here

        // Init floating live type desrciptor properties listeners
        PropertyChangeEventSource floatingLiveTypeDescriptorSource = (PropertyChangeEventSource) descriptor.getToolWindow().getTypeDescriptor(FloatingLiveTypeDescriptor.class);
        floatingLiveTypeDescriptorSource.addPlafPropertyChangeListener(propertyChangeListener, "location", "size", "enabled", "visible");

        moveMouseInputHandler = new FloatingMoveMouseInputHandler(null);
        livePanelComponentListener = new LivePanelComponentListener();
    }
View Full Code Here

TOP

Related Classes of org.noos.xing.mydoggy.plaf.ui.cmp.event.FloatingMoveMouseInputHandler

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.