Examples of OverlayLayout


Examples of javax.swing.OverlayLayout

    JPanel c2 = new JPanel();
    c2.setMinimumSize(new Dimension(40, 40));
    c2.setPreferredSize(new Dimension(50, 50));
    c2.setMaximumSize(new Dimension(60, 60));
    c.add(c2);
    OverlayLayout l = new OverlayLayout(c);
    h.check(l.getLayoutAlignmentX(c), 0.5F);
  }
View Full Code Here

Examples of javax.swing.OverlayLayout

    c3.setMinimumSize(new Dimension(40, 40));
    c3.setPreferredSize(new Dimension(50, 50));
    c3.setMaximumSize(new Dimension(60, 60));
    c3.setAlignmentX(1.0F);
    c.add(c3);
    OverlayLayout l = new OverlayLayout(c);
    h.check(l.getLayoutAlignmentX(c), 0.6666666865348816F);
  }
View Full Code Here

Examples of javax.swing.OverlayLayout

  void testWrongContainer(TestHarness h)
  {
    h.checkPoint("wrongContainer");
    JPanel c1 = new JPanel();
    JPanel c2 = new JPanel();
    OverlayLayout l = new OverlayLayout(c1);
    try
      {
        h.check(l.getLayoutAlignmentX(c2), 0.5F);
        h.fail("getLayoutAlignmentX must throw AWTError when "
               + "called with wrong container.");
      }
    catch (AWTError ex)
      {
View Full Code Here

Examples of javax.swing.OverlayLayout

        basicPopupUI.uninstallUI(menu);
        basicPopupUI.installUI(menu);
        assertNotNull(menu.getLayout());
        assertNotSame(oldManager, menu.getLayout());
        basicPopupUI.uninstallUI(menu);
        oldManager = new OverlayLayout(menu);
        menu.setLayout(oldManager);
        basicPopupUI.installUI(menu);
        assertEquals(oldManager, menu.getLayout());
    }
View Full Code Here

Examples of javax.swing.OverlayLayout

  private int offsetX, offsetY;
  private Point startPress;
  private double zoom;

  public ResizePanel() {
    setLayout(new OverlayLayout(this));
    setBorder(BorderFactory.createLoweredBevelBorder());
  }
View Full Code Here

Examples of javax.swing.OverlayLayout

        this.dualViewEnabled = dualViewEnabled;
    }

    public void buildUi() {
        add(overlayPanel, BorderLayout.CENTER);
        overlayPanel.setLayout(new OverlayLayout(overlayPanel));
        overlayPanel.add(kanaOverlay);
        overlayPanel.add(strokeOverlay);
        overlayPanel.setBackground(Color.WHITE);

        JPanel optionPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 0, 0));
View Full Code Here

Examples of javax.swing.OverlayLayout

        menuBarUI.uninstallUI(menu);
        menuBarUI.installUI(menu);
        assertNotNull(menu.getLayout());
        assertNotSame(oldManager, menu.getLayout());
        menuBarUI.uninstallUI(menu);
        oldManager = new OverlayLayout(menu);
        menu.setLayout(oldManager);
        menuBarUI.installUI(menu);
        assertEquals(oldManager, menu.getLayout());
    }
View Full Code Here

Examples of javax.swing.OverlayLayout

                        m_sliderAverageTestLength));
        layout.setVerticalGroup(vGroup);

        // The right hand side has all the algorithm-specific panels overlaid.
        m_algorithmRight = new JPanel();
        OverlayLayout overlay = new OverlayLayout(m_algorithmRight);
        m_algorithmRight.setLayout(overlay);
        for (int i = 0; i < ALGORITHM_NUM; i++) {
            m_algorithmRight.add(m_panelAlgorithm[i]);
            m_panelAlgorithm[i].setVisible(i == m_nCurAlgo);
        }
View Full Code Here

Examples of javax.swing.OverlayLayout

      BlockingQueue<AppEvent> eventsBlockingQueue, GameMockup gameMockup)
  {
    this.gamePanelConfig = gamePanelConfig;
    setPreferredSize(gameMockup.getLevelMockup().getDimension());
    setBackground(gamePanelConfig.getBgColor());
    setLayout(new OverlayLayout(this));
    setDoubleBuffered(true);

    this.eventsBlockingQueue = eventsBlockingQueue;
    this.screenTimer = new Timer();
    this.levelDimension = gameMockup.getLevelMockup().getDimension();
View Full Code Here

Examples of javax.swing.OverlayLayout

    private int offsetX, offsetY;
    private Point startPress;
    private double zoom;

    public ResizePanel() {
        setLayout(new OverlayLayout(this));
        setBorder(BorderFactory.createLoweredBevelBorder());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.