Package org.noos.xing.mydoggy

Examples of org.noos.xing.mydoggy.ToolWindowAnchor


                publicEvent = false;

                setAvailable(false);

                ToolWindowAnchor oldAnchor = this.anchor;
                this.anchor = anchor;
                this.lastAnchorIndex = anchor.getIndex();

                setAvailable(true);
                if (tempActive)
                    setActive(true);
                else if (tempVisible)
                    setVisible(true);

                publicEvent = true;

                fireAnchorEvent(oldAnchor, anchor);
            } else {
                ToolWindowAnchor oldAnchor = this.anchor;
                this.anchor = anchor;
                this.lastAnchorIndex = anchor.getIndex();

                fireAnchorEvent(oldAnchor, anchor);
            }
View Full Code Here


        return content;
    }

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

            String labelText = getResourceManager().getUserString(content.getId());
            Icon toolIcon = content.getIcon();

            switch (anchor) {
View Full Code Here

        return getToolBar().getRepresentativeAnchorIndex(representativeAnchor);
    }

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

            String labelText = getResourceManager().getUserString(content.getId());
            Icon toolIcon = content.getIcon();

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

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

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

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

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

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

            // Produce updatedGhostImage
            if (newAnchor != lastAnchor) {
View Full Code Here

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

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

            // Produce updatedGhostImage
            if (newAnchor != lastAnchor) {
View Full Code Here

                            resourceBundle.getString("@@tool.hide") :
                            resourceBundle.getString("@@tool.show"));
        }

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

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

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

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

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

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

        // Produce updatedGhostImage
        if (newAnchor != lastAnchor) {
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

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.