Package org.noos.xing.mydoggy

Examples of org.noos.xing.mydoggy.ToolWindowAnchor


                String toolId = lastToolWindowContainer.getName().substring(21);
                ToolWindow destToolWindow = descriptor.getManager().getToolWindow(toolId);
                assert destToolWindow != null;

                ToolWindowAnchor anchor = destToolWindow.getAnchor();

                boolean oldAM = toolWindow.isAggregateMode();
                try {
                    toolWindow.setAggregateMode(true);
                    toolWindow.setAnchor(anchor,
View Full Code Here


    public void dragMouseMoved(DragSourceDragEvent dsde) {
        if (!checkStatus())
            return;

        // Obtain anchor for location
        ToolWindowAnchor newAnchor = manager.getToolWindowAnchor(dsde.getLocation());

        // updated the ghost image
        if (newAnchor != lastAnchor) {
            if (!SwingUtil.getBoolean(MyDoggyKeySpace.DRAG_USE_DEFAULT_ICON, false)) {
                resetGhostImage();
View Full Code Here

            } else if (toolWindow.getType() == ToolWindowType.SLIDING)
                floatingMode.setVisible(((FloatingTypeDescriptor) descriptor.getTypeDescriptor(ToolWindowType.FLOATING)).isEnabled());
        }

        protected void enableMoveToItem() {
            ToolWindowAnchor anchor = toolWindow.getAnchor();
            if (anchor == LEFT) {
                left.setVisible(false);
                right.setVisible(true);
                top.setVisible(true);
                bottom.setVisible(true);
View Full Code Here

            SwingUtilities.convertPointFromScreen(p, glassPane);
            glassPane.setPoint(p);

            p = (Point) dsde.getLocation().clone();
            SwingUtilities.convertPointFromScreen(p, descriptor.getManager());
            ToolWindowAnchor newAnchor = descriptor.getToolWindowAnchor(p);

            if (newAnchor != lastAnchor) {
                Rectangle dirtyRegion = glassPane.getRepaintRect();
                glassPane.setDraggingImage(null);
                glassPane.repaint(dirtyRegion);
View Full Code Here

        return content;
    }

    public JComponent getRepresentativeAnchor(Component parent) {
        if (representativeAnchor == null) {
            ToolWindowAnchor anchor = getAnchor();

            String labelText = SwingUtil.getUserString(content.getRepresentativeAnchorDescriptor().getTitle());
            Icon toolIcon = content.getIcon();

            switch (anchor) {
View Full Code Here

        return true;
    }

    public void updateRepresentativeAnchor() {
        if (representativeAnchor != null) {
            ToolWindowAnchor anchor = getAnchor();

            String labelText = SwingUtil.getUserString(content.getRepresentativeAnchorDescriptor().getTitle());
            Icon toolIcon = content.getIcon();

            JLabel representativeLabel = (JLabel) representativeAnchor;
View Full Code Here

                }
            }

            p = (Point) dsde.getLocation().clone();
            SwingUtilities.convertPointFromScreen(p, descriptor.getManager());
            ToolWindowAnchor newAnchor = descriptor.getToolWindowAnchor(p);

            if (newAnchor != lastAnchor) {
                Rectangle dirtyRegion = glassPane.getRepaintRect();

                if (newAnchor == null) {
View Full Code Here

                String toolId = lastToolWindowContainer.getName().substring(21);
                ToolWindow destToolWindow = descriptor.getManager().getToolWindow(toolId);
                assert destToolWindow != null;

                ToolWindowAnchor anchor = destToolWindow.getAnchor();

                boolean oldAM = toolWindow.isAggregateMode();
                try {
                    toolWindow.setAggregateMode(true);
                    toolWindow.setAnchor(anchor,
View Full Code Here

            } else if (toolWindow.getType() == ToolWindowType.SLIDING)
                floatingMode.setVisible(((FloatingTypeDescriptor) descriptor.getTypeDescriptor(ToolWindowType.FLOATING)).isEnabled());
        }

        protected void enableMoveToItem() {
            ToolWindowAnchor anchor = toolWindow.getAnchor();
            if (anchor == LEFT) {
                left.setVisible(false);
                right.setVisible(true);
                top.setVisible(true);
                bottom.setVisible(true);
View Full Code Here

            SwingUtilities.convertPointFromScreen(p, glassPane);
            glassPane.setPoint(p);

            p = (Point) dsde.getLocation().clone();
            SwingUtilities.convertPointFromScreen(p, descriptor.getManager());
            ToolWindowAnchor newAnchor = descriptor.getToolWindowAnchor(p);

            if (newAnchor != lastAnchor) {
                Rectangle dirtyRegion = glassPane.getRepaintRect();
                glassPane.setDraggingImage(null);
                glassPane.repaint(dirtyRegion);
View Full Code Here

TOP

Related Classes of org.noos.xing.mydoggy.ToolWindowAnchor

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.