Package org.noos.xing.mydoggy

Examples of org.noos.xing.mydoggy.FloatingTypeDescriptor


      Component content = getContentContainer();
      content.setVisible(true);
      window.getContentPane().add(content, "1,1,FULL,FULL");

      if (lastBounds == null) {
        FloatingTypeDescriptor typeDescriptor = (FloatingTypeDescriptor) descriptor.getTypeDescriptor(ToolWindowType.FLOATING);

        // Set Size
        if (typeDescriptor.getSize() == null) {
          Window windowAnchestor = descriptor.getWindowAnchestor();
          window.setSize(windowAnchestor.getWidth() / 2, (int) (windowAnchestor.getHeight() / 1.5));
        } else {
          window.setSize(typeDescriptor.getSize());
        }

        // Set Location
        if (typeDescriptor.getLocation() == null) {
          if (content.getX() == 0 || content.getY() == 0)
            SwingUtil.centrePositionOnScreen(window);
        } else
          window.setLocation(typeDescriptor.getLocation());
      } else {
        window.setBounds(lastBounds);
        lastBounds = null;
      }
View Full Code Here


          window.setModal((Boolean) evt.getNewValue());
        }
      }
    });

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

    new FloatingToolTransparencyListener(this, descriptor, window);
  }
View Full Code Here

    new FloatingToolTransparencyListener(this, descriptor, window);
  }


  private void configureFloatingIcons() {
    FloatingTypeDescriptor typeDescriptor = (FloatingTypeDescriptor) descriptor.getTypeDescriptor(ToolWindowType.FLOATING);

    if (typeDescriptor.isModal()) {
      setPinVisible(false);
      setFloatingVisible(false);
      setDockedVisible(false);
    } else {
      setPinVisible(true);
View Full Code Here

      this.originalBounds = window.getBounds();
      window.setBounds(new Rectangle(originalBounds.x + (originalBounds.width / 2),
                       originalBounds.y + (originalBounds.height / 2),
                       0, 0));

      FloatingTypeDescriptor typeDescriptor = (FloatingTypeDescriptor) descriptor.getTypeDescriptor(ToolWindowType.FLOATING);
      window.setModal(typeDescriptor.isModal());
      window.setVisible(true);
      window.getContentPane().setVisible(true);
    }
View Full Code Here

//        assert descriptor.getToolWindow().isVisible();
        assert(descriptor.getToolWindow().getType() == ToolWindowType.FLOATING ||
               descriptor.getToolWindow().getType() == ToolWindowType.FLOATING_FREE);

        if ("active".equals(evt.getPropertyName())) {
            FloatingTypeDescriptor typeDescriptor = (FloatingTypeDescriptor) descriptor.getTypeDescriptor(ToolWindowType.FLOATING);
            if (typeDescriptor.isTransparentMode()) {
                if (evt.getNewValue() == Boolean.FALSE) {
                    timer = new Timer(typeDescriptor.getTransparentDelay(), this);
                    timer.start();
                } else {
                    synchronized (transparencyManager) {
                        transparencyAnimation.hide();
                        transparencyManager.setAlphaModeRatio(window, 0.0f);
View Full Code Here

            if (!descriptor.getToolWindow().isVisible()
                || (descriptor.getToolWindow().getType() != ToolWindowType.FLOATING &&
                    descriptor.getToolWindow().getType() != ToolWindowType.FLOATING_FREE))
                return;

            FloatingTypeDescriptor typeDescriptor = (FloatingTypeDescriptor) descriptor.getTypeDescriptor(ToolWindowType.FLOATING);
            synchronized (transparencyManager) {
                transparencyAnimation.setAlpha(typeDescriptor.getTransparentRatio());
                transparencyAnimation.show();
//                transparencyManager.setAlphaModeRatio(window, typeDescriptor.getTransparentRatio());
            }
        }
    }
View Full Code Here

TOP

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

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.